I’m looking to create a Tip system. I’m struggling as I’ve made a script to open a UI when a button above a player’s head is pressed, but whenever I press the button above my head the menu is not appearing. I’m not sure if it’s to do with the script itself, it could be, however I was more thinking it might be because the button is in the UI above the person’s head and isn’t just a button on a menu or something. You can probably tell I am pretty clueless.
Images (hopefully these will help)
Scripts
local remote = game:GetService("ReplicatedStorage"):WaitForChild("Tip")
script.Parent.Triggered:Connect(function(player)
remote:FireClient(player)
end)
local remote = game:GetService("ReplicatedStorage"):WaitForChild("Tip")
remote.Activated:Connect(function()
script.Parent.Visible = true
end)
When I physically press the button within the game nothing happens. Usually you’d expect it to turn a but darker when clicked for a split second or something when you click it just to indicate it’s been pressed. But when I click it in the game, it acts in the same way as if it were just a text label and nothing happens.
Have you tried any print statements to see if the code runs? Where are you scripts located? Note that Localscripts run code on the client, hence won’t run if they are placed somewhere such as ServerScriptService etc
Are you placing the BillboardUI in workspace, or in the playerGui and setting the adornee to the part? The button won’t highlight if the billboard is directly in the workspace, you need to put it in the StarterGui/PlayerGui and set its adornee to the Head