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

why does my script not print "stats are visible" when i click on "statsoeffner" ?

Asked by 5 years ago
Edited 5 years ago

local statsoeffner = game.StarterGui.ScreenGui.statsoeffner

local diestats = game.StarterGui.ScreenGui.diestats

local script = script.Parent

local function statsgeoeffnet ()

print ("stats are visibile!")

end

statsoeffner.MouseButton1Click:Connect(statsgeoeffnet)

please explain detailed what i did wrong. i am new to coding.

0
can you put this into a code block format? tonyv537 95 — 5y
0
You should do define the player (local player = game.Players.LocalPlayer) then do (plr.PlayerGui.ScreenGui.statsoeffner) to define the screengui (but i dont think thats the issue tonyv537 95 — 5y

Answer this question