Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Help me fix this script please?

gab=false
game.Players.PlayerAdded:connect(function(playa)
playa.CharacterAdded:connect(function(char)
char.Humanoid.Changed:connect(function()
if char:findFirstChild("Football") then
if char.Humanoid.Jump and not gab then
char.Torso.CFrame=char.Torso.CFrame*CFrame.Angles(math.rad(-40),0,0)
gab=true
elseif not char.Humanoid.Jump then
gab=false
end end end
)
end
)
end
)

qq

1 comment

1 answer

✓ Accepted answer
gab=false
game.Players.PlayerAdded:connect(function(playa)
playa.CharacterAdded:connect(function(char)
char.Humanoid.Changed:connect(function()
if char:FindFirstChild("Football") then -- Fixed this. Your FindFirstChild had a lowercase F.
if char.Humanoid.Jump and not gab then
char.Torso.CFrame=char.Torso.CFrame*CFrame.Angles(math.rad(-40),0,0)
gab=true
elseif not char.Humanoid.Jump then
gab=false
end end end
)
end
)
end
)

Read the comment I left in the script.

This discussion is preserved as it was. New answers, comments, and votes are closed.