Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would you make an voice command regen a part?

Asked by
steev 0
10 years ago

How would you make a script that uses a voice command for example "Regen Part" to regen a part in the workspace?

1 answer

Log in to vote
0
Answered by 10 years ago

The player must say "Regen Part" exaclty to make this regen. Put this in a localscript.

player = game.Players.LocalPlayer
player.Chatted:connect(function(message)
if message = "Regen Part" then
a = Instance.new("Part", game.Workspace)
a.Transparency = 0 --Now edit the part using a
end
end)
Ad

Answer this question