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

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

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...

2 comments

0

Use player.Character not workspace

0

Still not working...

1 answer

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

1 comment

0

Still not jumping the player but no errors....

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