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

[SOLVED]Why it doens't jump the playerK? ERROR: Attempt to index field 'Jump'(a boolean value)

Asked by 5 years ago
Edited 5 years ago

I want if locked is true that the player jumps? But it isn't working... It's a serverScript

script.Parent.Parent.DriveSeat.ChildAdded:Connect(function(child)
    if script.Parent.Value == false then
        return
    elseif script.Parent.Value == true then
        if child:IsA("Weld") then
            if child.Part1.Name == "HumanoidRootPart" then
            local player = game.Players:GetPlayerFromCharacter(child.Part1.Parent)
            player.Character.Humanoid.Jump = true
            end
        end
    end
end)

First take a look at the error in the title and the error is at line 9...

0
Use player.Character not workspace User#19524 175 — 5y
0
Still not working... MaxDev_BE 55 — 5y

1 answer

Log in to vote
0
Answered by
thesit123 509 Moderation Voter
5 years ago
Edited 5 years ago

character.Humanoid.Jump does't have a Value, it is a value itself, You just need to do character.Humanoid.Jump = true

0
Still not jumping the player but no errors.... MaxDev_BE 55 — 5y
Ad

Answer this question