#Hotbar BUttons

1 messages · Page 1 of 1 (latest)

nova knoll
#

My hotbar buttons wont work in game but they work in studio testing.

#
    task.wait()
end

local button = script.Parent
print(button.Name,"this")

local function onButtonClick()
    print("Button clicked!")

end

button.MouseButton1Click:Connect(onButtonClick)```
#

Code inside the LocalScript

slim bridge
#

also im not 100% the first 3 lines of your script is necessary, the script shouldnt exist without its parent unless there is something im missing

nova knoll
#

I had someone else try to help me in another scripting-help