Problem with teleportation

I’ll be brief, my teleportation script for some reason only works once and then it doesn’t, i.e. a player teleports but when another player wants to do it he can’t, please someone help me urgently

SCRIPT:

local Teleport = "Tele2"
function Touch(hit) 
	if script.Parent.Locked == false and script.Parent.Parent:findFirstChild(Teleport).Locked == false then script.Parent.Locked = true script.Parent.Parent:findFirstChild(Teleport).Locked = true
		local Pos = script.Parent.Parent:findFirstChild(Teleport) 
		hit.Parent:moveTo(Pos.Position) wait(1) script.Parent.Locked = false script.Parent.Parent:findFirstChild(Teleport).Locked = false end end 
script.Parent.Touched:Connect(Touch)

Isnt it Locked.Value?

if script.Parent.Locked.Value == false then

--instead of 

if script.Parent.Locked == false then

Excuse me, what are you referring to? Where is that, the “then”, there is nothing like it.

he means you are setting lock = false not lock.value = false

i’m not sure if thats the issue though cause thats just a property right, its not a object value.

if it is indeed an object then he is correct–it should be .value