Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Script broken.. Help?

Asked by 10 years ago
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.

0
What doesn't work ? BlueTaslem 18071 — 10y
0
It doesnt bring up the gui or doesnt stop the player. teklain 0 — 10y
0
Are all the paths correct? This looks fine to me. Shawnyg 4330 — 10y
0
What is a local function? Tesouro 407 — 10y
View all comments (2 more)
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 teklain 0 — 10y
0
I figured it out, i had filtering enabled on... so it crashed everything i guess.. teklain 0 — 10y

Answer this question