#What's wrong with my telportation script?

1 messages · Page 1 of 1 (latest)

silent pilot
#

local location = script.Parent.Part
local teleporter = script.Parent.Part2

teleporter.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("HumanoidRootPart") then
hit.Parent.HumanoidRootPart.CFrame = location.CFrame + Vector3.new(0,3,0)
end
end)

Idk what's wrong (I followed tutorial)

rose dome
#

is there any errors

celest lodge
humble venture
#

@silent pilot

silent pilot
#

And go to it

silent pilot
celest lodge
lucid cypress
silent pilot
#

It doesn't work when I go to it ingame

silent pilot
lucid cypress
silent pilot
#

Alr ty

silent pilot
#

nvm

#

wait

#

ill send problem in a sec

#

local Players = game:GetService("Players")
local MarketPlaceService = game:GetService("MarketplaceService")
local GamepassID = 1235310405
local ToolName = "Laser Gun"

Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
if MarketPlaceService:UserOwnsGamePassAsync(player.UserId, 1235310405) then
script[Laser Gun]:Clone().Parent = player.Backpack
end
end)
end)

#

this

#

@lucid cypress

silent pilot
#

Or change type of script