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

Jumping and Data Changed?

Asked by 9 years ago
  1. I was trying to make something that could restrict or enhance how high a player could jump,but i am not really sure how i would allow them to jump higher or lower. Help?

  2. I was also wondering how i could use the Changed function to only respond to a certain value being changed like

game.Workspace.Part.Color.Changed:connect(function()

if you only know the answer to one question i will be happy to hear it.

0
Try effecting the player's gravity if you can do that, and for number towo, you can, but it would be part.brickcolor not color Mystdar 352 — 9y
0
How would i change a players gravity? And sorry i know that. raspyjessie 117 — 9y
1
bodyForce RM0d 305 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

@ Question #2

To check what value was changed during the changed event you do

game.Workspace.Part.Changed:connect(function(property)
    if property == "BrickColor" then
        print("Brick color changed!")
    end
end)

For a little more explanation (not by much) go look at this documentation

0
^ So true it does not explain very much. raspyjessie 117 — 9y
Ad

Answer this question