How can i make a surfboard?

I do this post again because the first one didn’t have answers

  1. What do you want to achieve? I want to make a working surfboard (it is not anchored). Players will also be able to get on it

  2. What is the issue? I don’t really know how to do it, i tried to use this local script using Motor6D. And then i want that the player will be centre on the surfboard (i put only the right foot with motor6D because i don’t know how to make sure that the player’s feet are at the right place) and when the player walk on the surfboard i made an animation (without moving legs, just hands)

local part = game.Workspace.surfpart

part.ClickDetector.MouseClick:Connect(function()

		local character = game.Players.LocalPlayer.Character

		local clonesurf = game.ReplicatedStorage.surf:Clone()

		clonesurf.Parent = character

		local motor = Instance.new("Motor6D", character:FindFirstChild("RightFoot"))
		motor.Part0 = clonesurf
	motor.Part1 = character:FindFirstChild("RightFoot")
	
	local anim = Instance.new("Animation", character)
	anim.AnimationId = "rbxassetid://12099132832"
	local animationloaded = character:FindFirstChild("Humanoid"):LoadAnimation(anim)
	
	
	character:FindFirstChild("Humanoid").Running:Connect(function()
		animationloaded:Play()
	end)
	

end)

All answers are welcome : D, thank you

Btw the errors in the script are too much… i only say that the player in the surfboard literally fly
image

i don’t really know how to attach the plr on the surfboard, i did the script just for try something

You should bump your topic instead of deleting it and making it again. It’s too late now, so do that instead next time.

Likely, there was no responses because it was too hard to solve or figure out what was wrong.

Try attaching the surf board just below their root part, instead of on their right foot. The animation will make it look like the surf board it welded to the feet instead.

1 Like

Hi, thank you for the answer

I’m truly sry i didn’t want to create a problem deleting the last post and do anothe; i promise that the next time i’ll do what u said…

i tried to put the surf board on the humanoid root part, it is working, but how to put the surf board on feet now?
image
maybe i have to use cframe or similar things. Thx again

You should use a Motor6D weld so you can animate the surfboard position right in the player’s animations. However, if that would be too hard, you should use a regular weld and set it’s cframe so that it ends up in the right spot.

1 Like

I suggest to check this out:

It’s a skateboard, but you could easily convert it into a surfboard, it explains how he did things.

2 Likes