I Want To Make A Part That Gives You Cash In A Obby And Puts You to The Beginning
2. So Basically I can Make The Cash And Teleport But It Teleports You Back To The Cash Part:
All My Scripts Are Fine. I Just Need A Script For It To Teleport You To Restart And Don’t Teleport You Back For Cash.
Heres The Teleporting Script
local tele1 = script.Parent.Tele1
local tele2 = script.Parent.Tele2
local debounce = false
tele1.Touched:Connect(function(touched)
if touched.Parent:FindFirstChild(“Humanoid”) and debounce == false then
local char = touched.Parent
local humanoidrootpart = char.HumanoidRootPart
humanoidrootpart.Position = tele2.Position
debounce = true
wait(3)
debounce = false
end
end)
tele2.Touched:Connect(function(touched)
if touched.Parent:FindFirstChild(“Humanoid”) and debounce == false then
local char = touched.Parent
local humanoidrootpart = char.HumanoidRootPart
humanoidrootpart.Position = tele1.Position
debounce = true
wait(3)
debounce = false
end
end)