#Hotbar BUttons
1 messages · Page 1 of 1 (latest)
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
is the in-game console printing the button name correctly?
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
yes it does
I had someone else try to help me in another scripting-help