local function click(player)
if player.PlayerGui.Teleport.Shop.Visible == true then
print("Already clicked")
else
player.PlayerGui.Teleport.Shop.Visible = true
player.Character.Humanoid.WalkSpeed = 0
end
end
script.Parent.ClickDetector.MouseClick:connect(click)
Anyways this works in test mode but not in play mode, it worked a couple days ago in play mode though.
What the script is suppose to do is make it so when they click the shop owner, it will freeze them and open the shop.

6 comments
What doesn't work ?
It doesnt bring up the gui or doesnt stop the player.
Are all the paths correct? This looks fine to me.
What is a local function?
Yes there correct, it worked last week and i havent changed a thing, it even works in play solo in roblox studio, but not in play mode on multiplayer
I figured it out, i had filtering enabled on... so it crashed everything i guess..