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

Make someone teleport specific # of studs forward? (no script made)

I have experimented for a while, but I can figure out how to check which direction the player is facing, and then to teleport them 15 studs in that direction, anyone know how?

1 answer

✓ Accepted answer

place in localScript in starterPack:

local root = game.Players.LocalPlayer.CharacterAdded:Wait():WaitForChild("HumanoidRootPart")

game:GetService("UserInputService").InputBegan:Connect(function(input, process)
	if process then return end
	
	if input.UserInputType == Enum.UserInputType.MouseButton1 then
		root.CFrame = root.CFrame * CFrame.new(0, 0, -15)
	end
end)

i presume i reserve the right to not explain the stuff to u; u can find it out urself its simple enough im trying my luck that as to whether the answer will get accepted anyway

2 comments

0

ty this helped a ton :))

0

how to not get your answer accepted 101

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