#Clickable Overhead GUI
1 messages · Page 1 of 1 (latest)
Starter gui is local.
** You are now Level 8! **
It would only work for yourself
yeah i originally had it in serverscriptstorage but then it was never even clickable
That’s why when you put it on your rig (that is in workspace) it works just fine.
is there a way i can make it clickable from serverscriptstorage?
Then only the server would be able to click it
thats what i want
Put it in replicated storage
wait nvm
ok
let me try that
ok its in replicated now and it no longer shows on rig
but still not clickable for me
You have to clone it from replicated storage onto a player in runtime
Replicated storage is stuff you want to replicate
Here is my current script
local module = {}
local ServerStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local replicatedStorage = game:GetService("ReplicatedStorage")
local OverheadGui = game.ReplicatedStorage:WaitForChild("OverheadGui")
--local OverheadGui = ServerStorage:WaitForChild("OverheadGui")
local GroupId = 32383530
local RoleColors = {
["Owner"] = Color3.fromRGB(93, 0, 255);
["Developer"] = Color3.fromRGB(0, 255, 238);
["Member"] = Color3.fromRGB(251, 255, 0)
}
Players.PlayerAdded:Connect(function(Player: Player)
Player.CharacterAdded:Connect(function(Character)
local OverheadGuiClone = OverheadGui:Clone()
local UsernameLabel = OverheadGuiClone:WaitForChild("Frame").UsernameLabel
local RoleLabel = OverheadGuiClone:WaitForChild("Frame").RoleLabel
local GetRoleInGroup = Player:GetRoleInGroup(GroupId)
if GetRoleInGroup then
UsernameLabel.Text = (Player.DisplayName)
RoleLabel.Text = GetRoleInGroup
RoleLabel.TextColor3 = RoleColors[GetRoleInGroup]
else
UsernameLabel.Text = Player.Name
RoleLabel.Text = "Noob"
RoleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
end
OverheadGuiClone.Parent = Character:FindFirstChild("Head")
OverheadGuiClone.Adornee = Character:FindFirstChild("Head")
end)
end)
return module
i thought i already have cloned it but maybe im being stupid
im new to this so
Did it give you an error
Whenever a player joins clone the ui and parent it to the player
Is this local or server
Script?
server
** You are now Level 2! **
is this what u mean?
Can you send a screenshot of your script, I can’t read it well like this.
Give me your button script
local button = script.Parent
button.MouseButton1Click:Connect(function()
print("Button clicked!")
end)
havent done that yet, id want it to bne only other players is clickable
ive tried team testing it and it wont let m e click others aswell
i think it might be an issue of the cloned ones arent clickable
because the original is usually clickable in workspace
Parent it to the players root object instead.
Instead of the head
stiull not clickable
Wait, why is this a module?
what properties would i have to look out for
Enabled or intractable.
yup those are on
Crap
WAIT
Local scripts don’t work anywhere else but starterscripts or starter gui
Move your button clicked script to your startercharictorscrips
ok let m,e try
how do i edit the button click script to work with the image button now that it isnt parented?
That I’m not sure.
yeah idk, it makes no sense to me tbh
its clickable while on rigs but not when on a player
@trim bison
why me 
Cus you’re the only smart one here
i'm not the only one D:
Help him please
i don't take orders without payment bruh
its just so weird to me, why does it work on a rig but not players 😭 its attached to the same thing
im not certain but i'd guess its because the mouse ray goes through the player's character, including anything parented to it. imo just parent to playergui