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

0

What doesn't work ?

0

It doesnt bring up the gui or doesnt stop the player.

0

Are all the paths correct? This looks fine to me.

0

What is a local function?

0

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

0

I figured it out, i had filtering enabled on... so it crashed everything i guess..