local contextActionService = game:GetService("ContextActionService")
repeat wait() until script.Parent.Parent.Parent
ch = false
function jump()
if ch == false then
ch = true
for i = 0.1, 0.15 do
wait(0.1)
script.Parent.Position = UDim2.new(script.Parent.Position.X.Scale, script.Parent.Position.X.Offset, script.Parent.Position.Y.Scale - i, script.Parent.Position.Y.Offset)
end
wait(0.2)
script.Parent.Position = UDim2.new(script.Parent.Position.X.Scale, script.Parent.Position.X.Offset, script.Parent.Position.Y.Scale + jumppower, script.Parent.Position.Y.Offset)
ch = false
end
end
contextActionService:BindAction("Jump", jump, false, Enum.KeyCode.W)
This works in studio but not in game why?

1 comment
is FE on? If FE is on, this needs to be a localscript not a script.