How to get my teleport to work

  1. So I’m working on a clicking simulator game and I have my teleport portal all set up but I made a mistake somewhere and the output is not telling me where, can you guys help?

  2. These are the scripts that I tried to far

  3. When I start the game my player just walks right through the portal without teleporting, and the output is not giving me any errors so I’m confused
    Thank you

Did u actually have 5000 or more click when you touch the part

Also it’s not recommended that you take picture of ur works on computer with phone directly you can mistakenly show private stuff

try using:
if db == false then

right now your using: if not db then – the issue with that is it’s checking for when it’s it’s second value true or false

Actually if not db and if db == false dont have any difference

Wouldn’t not be the oppisite of its current status

No if not db mean if db is not true and if db mean if db is true pretty much like = true or = false

script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild(“Humanoid”) then
local Root = hit.Parent:WaitForChild(“HumanoidRootPart”)
Root.CFrame = game.Workspace.TeleportToOpenWorldExit.CFrame
end
end)

this is my current script for teleporting though it doesn’t require anything

maybe because you don’t have enough money or clicks

Try changing line 11 to this one:

plr.Character:MoveTo(game.Workspace.MainWorldTeleport.Position)