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

Gui Imagebutton is working in studio but not in game?

Asked by
RoyMer 301 Moderation Voter
9 years ago

This button is working fine in Studio but not in game?

local player = game.Players.LocalPlayer 
local SureSave = script.Parent.Parent.Parent.Parent.HatSureBackground.HatSure.SureSave

function Click()    
SureSave.Value = script.Parent.Parent.Name
script.Parent.Parent.Parent.Parent.HatSureBackground.HatSure.Frame.TextLabel
.LocalScript.Disabled = false --this didn't fit in the Lua block thing so i put it here
script.Parent.Parent.Parent.Parent.HatSureBackground.Visible = true
end
script.Parent.MouseButton1Down:connect(Click)
0
Is this in a LocalScript? Discern 1007 — 9y

Answer this question