So I Made A LocalScript And Put It In StarterPlayer > StarterCharacterScripts.
Here Is My Script:
local Teleporter1 = workspace.Teleporter1 local Teleporter2 = workspace.Teleporter2 local TeleporterTouched = false
Teleporter1.Touched:connect(function(hit) if game.Players.LocalPlayer then
local HumanoidRootPart = script.Parent:FindFirstChild("HumanoidRootPart")
local Torso = script.Parent:FindFirstChild("Torso")
if hit.Name == "HumanoidRootPart" or hit.Name == "Torso" or hit.Name == "Handle" then
if TeleporterTouched == false then
print(hit.Name.." Touched Teleporter1")
TeleporterTouched = true
print(TeleporterTouched)
if HumanoidRootPart then
print("HumanoidRootPart")
HumanoidRootPart.CFrame = CFrame.new(15.381, 3, 0.12) -- Change The Position To Teleporter2 Position
end
if Torso then
print("Torso")
Torso.CFrame = CFrame.new(15.381, 3, 0.12) -- Change The Position To Teleporter2 Position
end
wait(3)
TeleporterTouched = false
print(TeleporterTouched)
end
end
end
end)
So I Added Two Parts Named "Teleporter1" & "Teleporter2" Into Workspace. When A Player Touches "Teleporter1", It Will Teleport ONE Player To "Teleporter2".
But I Don't Know Why Even After I Added Debounce It Still Teleports All Players. Ive Tested It In StarterServer(2 Players), Im Not Sure About The Actual Game But I Think If Theres Error In StarterServer, There Should Be Error In Actual Game As Well.
Any Idea?? Any Helps And Answers Will Be Greatly Appreciated.
