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

how to determine which object to sit on?

I am making a game where the user has to catch a bicycle and then he can ride on it. But I am confused! The Humanoid.SeatingPart isn't writable and as expected, the player is tripping. What to do? Below is my code.

local bike = game.Workspace.bicycle
 
local function onPartTouched(otherPart)
	local character=otherPart.Parent
	local humanoid=character:FindFirstChildWhichIsA("Humanoid")
	if humanoid then
		humanoid.Sit=true
	end
end
bike.Touched:Connect(onPartTouched)

Is there no other way than to make a seat part?

1 answer

When I Was Trolling My Friend, Humanoid.Sit Only Makes The Humanoid Sit But Not Permanently Like A Seat. Try Using A Seat Part. Idk If This Works. Just My Theory.

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