What do you want to achieve? press e to teleport.
What is the issue? Pressing but doesnt teleport.
What solutions have you tried so far? Yes. But no solutions.
local ProximityPrompt = script.Parent
script.Parent.Triggered:Connect(function(player)
player.Character.HumanoidRootPart.Position = workspace.Destination.Position
end)
2 Likes
move the character
local ProximityPrompt = script.Parent
script.Parent.Triggered:Connect(function(player)
player.Character:PivotTo(workspace.Destination.CFrame)
end)
1 Like
Don’t change the position of the HumanoidRootPart, change the CFrame.
local ProximityPrompt = script.Parent
script.Parent.Triggered:Connect(function(player)
player.Character.HumanoidRootPart.CFrame = workspace.Destination.CFrame --If the part is on the ground you'll likely want to add an offset with Vector3.New.
end)
3 Likes
No, that does not working. No errors.
1 Like
No, that doesnt work too. Hm? How should I fix this.
1 Like
Are you getting anything in output? Is it a script or local script?
keremMCT
(Pepsi_Cat)
January 31, 2023, 9:23am
#7
change it to server script not local script
2 Likes
There is no error. It is a local script.
1 Like
keremMCT
(Pepsi_Cat)
January 31, 2023, 9:24am
#9
make it server script…
30charr
2 Likes
keremMCT
(Pepsi_Cat)
January 31, 2023, 9:25am
#10
proximity prompts dont work on local scripts…
1 Like
Local scripts can’t run in the workspace; It needs to be a server script
1 Like
Oh. That is my first time. Thank you so much.
1 Like
system
(system)
Closed
February 14, 2023, 9:26am
#13
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.