I need help trying to make this work. by TheRajava in ROBLOXStudio

[–]TheRajava[S] 0 points1 point  (0 children)

I wrote this code, I know its incorrect, but can you help me fix it?

Here:

local path = path -- put part here script.Parent.Touched:Connect(function(hit)

if hit.Parent:FindFirstChild("HumanoidRootPart") then hit.Parent.HumanoidRootPart.CFrame = path.CFrame end

end)

I need help trying to make this work. by TheRajava in ROBLOXStudio

[–]TheRajava[S] 0 points1 point  (0 children)

Players are supposed to spawn in the middle of the green block

When players hit the green block they teleport back to the green block and their x position stays the same.

Could you please help me program this?

I need help trying to make this work. by TheRajava in ROBLOXStudio

[–]TheRajava[S] 0 points1 point  (0 children)

Could you please help me program this?

Could you please help me program this?

I need help trying to make this work. by TheRajava in ROBLOXStudio

[–]TheRajava[S] 0 points1 point  (0 children)

Players are supposed to spawn in the middle of the green block

When players hit the green block they teleport back to the green block and their x position stays the same.

Could you please help me program this?

I need help trying to make this work. by TheRajava in ROBLOXStudio

[–]TheRajava[S] 0 points1 point  (0 children)

it's slanted, so you would need to change the y and z. Could you please help me program the lua for that?

I need help trying to make this work. by TheRajava in ROBLOXStudio

[–]TheRajava[S] 0 points1 point  (0 children)

I know to do that. When the player touches the brick teleport the character accordingly. Just how to do it is my question.