Hello! I am trying to make a script that tp's you to a tool, but I just can't seem to make it happen. The tool name is "Banknote" and the parts inside are "Handle", and "String". Anyone have an idea to fix it/ slash make one?
The first script I tried was this :
local LP = game:GetService("Players").LocalPlayer
workspace.ChildAdded:Connect(function(Child) if Child:IsA("Tool") and Child:FindFirstChild("Banknote") and LP.Character and LP.Character.PrimaryPart then LP.Character.PrimaryPart.CFrame = Child.String.CFrame end
The 2nd script is long. Sorry about this:
local plr = game.Players.LocalPlayer
plr.CharacterAdded:wait() local hum = plr.Character:WaitForChild('Humanoid') local rp = hum.RootPart
function checkpart(p) if(not p:IsA('Tool')) then return; end
local asc = p:FindFirstAncestorWhichIsA('Model')
local suc = pcall(function() local p = game.Players[asc.Name] end)
if suc then return end
local tp = p:FindFirstChildWhichIsA('Part')
if not tp then return end
rp.CFrame = tp.CFrame
end
for _,v in next, game.Workspace:GetDescendants() do checkpart(v); wait(.5) end
game.Workspace.DescendantAdded:Connect(checkpart)
plr.CharacterAdded:Connect(function() hum = plr.Character.Humanoid rp = hum.RootPart end)
I did change the respected parts to the correct parts in the 2nd script! Anyway good luck!

1 comment
I don't know why it did that with the 2nd script, sorry.