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

Help me fix this script please?

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
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 answer

Log in to vote
0
Answered by
Nifer2 174
10 years ago
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.

Ad

Answer this question