#a one way teleporter script that Teleport a certain part
1 messages · Page 1 of 1 (latest)
Destination is a string, strings do not have cframes
I’m guessing that the ai meant for you to fill that in with a part
I want it to teleport a certain part with a certain name to the part
From A to B
But not the player
Your entire code is made to teleport a player…
I don't know how to code on ROBLOX I just know how to modify them
I'm wondering if you can make a script for me if it's OK with you
Like what kind of payment
** You are now Level 1! **
well why don't you get a parts CFrame and make it the teleport parts CFrame
like you should add in a teleport part, non collidable and transparent, and make it (the part's) CFrame the teleport part's CFrame
here:
script.Parent.Touched:Connect(function(hit)
if hit:IsA("BasePart") then
local TeleportPart = game.Workspace:FindFirstChild("YourTeleportPart")
if hit.Name == "TheNameOfThePartYouWantToTeleport" then
hit.CFrame = TeleportPart.CFrame
end
end
end)
put this script in the teleporter