FearmyyJoin Date: 2013-12-14 Post Count: 68 |
Hey so i was wondering. How do i create a rock that comes down when i say for example "rockdown" and then the rock comes down and theres a passage? |
|
|
KekodekoJoin Date: 2015-07-27 Post Count: 1676 |
No really -_- |
|
FearmyyJoin Date: 2013-12-14 Post Count: 68 |
Well anyone knows how when i say something a part becomes transperant and cancollide is turned off? |
|
FearmyyJoin Date: 2013-12-14 Post Count: 68 |
Bump |
|
|
Umm u use the chatted event I believe and when u say something, you make the cancollide false and transparency = 1 |
|
|
|
Door = game.Workspace.YOURDOOR
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(message)
processCommand(player, message)
if message == "Rock Open" then
Door.CanCollide = False
Door.Transparency = 1
end)
end
This might work bud im not sure. |
|
|
And if you want to make that rock going down I suggest using vectors and learning about them on the wiki. Or c frame. |
|
FearmyyJoin Date: 2013-12-14 Post Count: 68 |
Yeah that script dont work... I just want a cancollide off a part when i say something like "open" |
|
|
|
groans fine
local rock = game.Workspace.RockDoor -- change to where your door or whatever is
local keyword == "open" -- change to what you say to open it
local keyword2 == "close" -- change to what you say to close it
game.Players.PlayerAdded:connect(function(plr)
plr.Chatted:connect(function(msg)
if msg == keyword then
rock.CanCollide = true
rock.Transparency = 0
elseif msg == keyword2 then
rock.CanCollide = true
rock.Transparency = 0
end
end)
end)
bee do |
|
|
oops
local rock = game.Workspace.RockDoor -- change to where your door or whatever is
local keyword == "open" -- change to what you say to open it
local keyword2 == "close" -- change to what you say to close it
game.Players.PlayerAdded:connect(function(plr)
plr.Chatted:connect(function(msg)
if msg == keyword then
rock.CanCollide = false
rock.Transparency = 1
elseif msg == keyword2 then
rock.CanCollide = true
rock.Transparency = 0
end
end)
end)
bee do |
|