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

How do I make a script that detects when I say any message, my character jumps once?

Asked by 4 years ago

I need to make a script, but I don't know how to make my character jump once every time I send a message, how do I do that? I'd like an explanation too.

1 answer

Log in to vote
0
Answered by 4 years ago

Won't give you full script rather lead you in the right direction. Remember this is not a request site, the point of this site is to get help with a script you've already made, or concepts, explanations on a piece of code, stuff like that.


You can make use of the PlayerAdded event. This event is fired when player joins the game. From here you can get the player who joined.

game:GetService("Players").PlayerAdded:Connect(function(player)

end)

The player class has a Chatted event. This is fired when a player chats.

player.Chatted:Connect(function(message, recipient)

end)

message is content of the message they sent, and recipient is the player they whispered the message to. This will be nil if they didn't whisper.

That's all I'll show you. Now you put the pieces together.

1
-1 for spoonfeeding 0_2k 496 — 4y
Ad

Answer this question