Hello, I would like to make a funny video on 100 ways to die in ROBLOX I would like to make a quick Admin Command sort of thing.
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
local water = game.Workspace.WATER
water.Position = -5.4, 13.921, 1.74
water.Size = 517.92, 42.15, 512.92
end)
end)
I want to make it so if the players says "Water!" The water rises killing them. If anyone could help it would be highly appreciated and they will be shouted out in the video!
Thank you, Aidan.

2 comments
I think you looking for “if msg:lower() == "!command" then”.
Of course “!command” could be anything, but depending on what your trying to do, you may want to make a custom function first. As well as taking into consideration if other players are calling the function at the same time or repeatedly etc.