https://youtu.be/dtJ3CBb9oEg
local Gomachan = game.Workspace.Goma:FindFirstChild("Body")
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(hello)
local value1 = player.Character:FindFirstChild("Value")
if value1 then
--print("Value is ok!")
end
player.Chatted:Connect(function(chat)
if chat == "ゴマちゃんゴマゴマ" then
value1.Value = true
elseif value1.Value == true and chat == "色よ変われ!" then
task.wait(1)
Gomachan.BrickColor = BrickColor.random()
Gomachan["Shine thing"]:Play()
Gomachan.ParticleEmitter.Enabled = true
value1.Value = false
task.wait(5)
Gomachan.ParticleEmitter.Enabled = false
elseif value1.Value == true and chat == "空高く飛べ!" then
task.wait(1)
Gomachan.Parent.Humanoid.HipHeight = 10
Gomachan["Shine thing"]:Play()
Gomachan.ParticleEmitter.Enabled = true
value1.Value = false
task.wait(5)
Gomachan.ParticleEmitter.Enabled = false
Gomachan.Parent.Humanoid.HipHeight = 0
else --詠唱失敗
value1.Value = false
end
end)
end)
end)