chr = game.Players.LocalPlayer.Character
chr.Humanoid.Changed:connect(function(prop)
if (prop=="Jump") then
if chr.Humanoid.Jump == true then
script.Parent:TweenPosition(UDim2.new(0,0,0,-10), "Out", "Quad", .6, true)
script.Parent:TweenPosition(UDim2.new(0,0,0,10), "Out", "Quad", .6, true)
else
script.Parent:TweenPosition(UDim2.new(0,0,0,30), "Out", "Quad", .6, true)
script.Parent:TweenPosition(UDim2.new(0,0,0,30), "Out", "Quad", .6, true)
end
end
end)
It works in studio, but not in-game, can someone help me? |