#teleporting problem

32 messages · Page 1 of 1 (latest)

raven waspBOT
#

studio** You are now Level 5! **studio

upbeat prairie
#

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!crying

livid tide
#
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

upbeat prairie
#

let me try that script

jovial wasp
livid tide
#

Oh bruh I forgot that 😅

raven waspBOT
#

studio** You are now Level 1! **studio

jovial wasp
#

that's better

livid tide
#

should be fixed

upbeat prairie
#

is there any way to have a smooth teleportation without having my character moving or flinging?

livid tide
jovial wasp
upbeat prairie
jovial wasp
#

it shouldn't

#

else you could always set up a collision group for random details that the players keep getting caught on 🤷‍♂️

upbeat prairie
#

thxs for helping tho

jovial wasp
#

He told you to replace it with the part the player should look at when spawning there

#

Or well, the position of said part

upbeat prairie
#

Workspace.TPparts.DormDoorTP1.DormSystem.Script:16: invalid argument #2 to 'lookAt' (Vector3 expected, got string)

#

i keep getting this in the output

jovial wasp
#

#

Dotnav to the part then add .Position to the end

upbeat prairie
jovial wasp
#

Workspace.Instance.Instance

#

Basically going from 1 thing to another