#teleporting problem
32 messages · Page 1 of 1 (latest)
local ProximityPrompt: ProximityPrompt = script.Parent
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local DormCameraEvent: RemoteEvent = ReplicatedStorage:WaitForChild("DormCameraEvent")
local TPParts: Folder = workspace:WaitForChild("TPparts")
local DormDoorTP2: BasePart = TPParts:WaitForChild("DormDoorTP2")
--[Triggered event]--
ProximityPrompt.Triggered:Connect(function(plr)
local character = plr.Character
local Humanoid = character:WaitForChild("Humanoid")
local HRP = character:WaitForChild("HumanoidRootPart")
--[Fire Remote]--
DormCameraEvent:FireClient(plr)
--[Setting]--
HRP.CFrame = DormDoorTP2.CFrame
Humanoid.WalkSpeed = 0
Humanoid.JumpHeight = 0
end)
let me know how i can fix this!
local ProximityPrompt: ProximityPrompt = script.Parent
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local DormCameraEvent: RemoteEvent = ReplicatedStorage:WaitForChild("DormCameraEvent")
local TPParts: Folder = workspace:WaitForChild("TPparts")
local DormDoorTP2: BasePart = TPParts:WaitForChild("DormDoorTP2")
--[Triggered event]--
ProximityPrompt.Triggered:Connect(function(plr)
local character = plr.Character
local Humanoid = character:WaitForChild("Humanoid")
local HRP = character:WaitForChild("HumanoidRootPart")
--[Fire Remote]--
DormCameraEvent:FireClient(plr)
--[Setting]--
HRP.CFrame = CFrame.lookAt(DormDoorTP2.Position,"part you want it look to")
Humanoid.WalkSpeed = 0
Humanoid.JumpHeight = 0
end)
change "part you want it look to" the part to look to that should work I think
i was testing it and my avatar flinged 
let me try that script
you're moving the character to itself...
Oh bruh I forgot that 😅
** You are now Level 1! **
that's better
should be fixed
is there any way to have a smooth teleportation without having my character moving or flinging?
you could do something with UI or tweening the cam
HRP.CFrame = CFrame.lookAt(DormDoorTP2.Position+Vector3.new(3,0,0),"part you want it look to")```
this makes your character not spawn inside the door
i also have like a carpet part (for decoration) do you think thats getting in the way too?
it shouldn't
else you could always set up a collision group for random details that the players keep getting caught on 🤷♂️
i got this in the output
actually i might go back to the way it was :] ill fix it down the road
thxs for helping tho
Did you read what he said
He told you to replace it with the part the player should look at when spawning there
Or well, the position of said part
i put a part name in and the character dosent teleport
Workspace.TPparts.DormDoorTP1.DormSystem.Script:16: invalid argument #2 to 'lookAt' (Vector3 expected, got string)
i keep getting this in the output
what is Dotnav?