I Basically made a script where a brick follows me , and i wanted to be able to say "Spread" and then it will clone it.
this is what I added:
game.Players.Abysswalk.Chatted:connect(function(msg) if msg == "Spread" then -- right here I wanted my character to jump to know I atleast made some progress. Didnt work though end
end)
it didnt work....?
If you wanted to create a simple one then do this one
local isAdmin = {["Player"] = true}------Change it to who you want to be able to do the message
function onChatted(message, player) if message == "Spread" and isAdmin[player.Name] then----Checks what the message was and then checks to see if that person can run it ----Put what you want to do in here
end
end
game.Players.PlayerAdded:connect(function(player)----Finds the player player.Chatted:connect(function(message) onChatted(message, player)-----Connects message to player