#Clickable Overhead GUI

1 messages · Page 1 of 1 (latest)

vestal river
#

I'm working on an Overhead GUI with a clickable image button, when i have it on my rig it functions and is clickable but whenever it is adorneed to the players head it no longer becomes clickable

restive cradleBOT
#

studio** You are now Level 8! **studio

stoic mist
#

It would only work for yourself

vestal river
#

yeah i originally had it in serverscriptstorage but then it was never even clickable

stoic mist
#

That’s why when you put it on your rig (that is in workspace) it works just fine.

vestal river
#

is there a way i can make it clickable from serverscriptstorage?

stoic mist
vestal river
#

thats what i want

stoic mist
#

Put it in replicated storage

vestal river
#

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

stoic mist
#

Replicated storage is stuff you want to replicate

vestal river
#

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

stoic mist
vestal river
#

no errors

stoic mist
#

Whenever a player joins clone the ui and parent it to the player

#

Is this local or server

#

Script?

vestal river
#

server

restive cradleBOT
#

studio** You are now Level 2! **studio

vestal river
stoic mist
#

Ummmm

stoic mist
vestal river
stoic mist
#

Give me your button script

vestal river
#

local button = script.Parent

button.MouseButton1Click:Connect(function()
print("Button clicked!")
end)

stoic mist
#

Oh

#

Are your buttons clickable or is it only the other players buttons?

vestal river
#

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

stoic mist
#

Instead of the head

vestal river
#

stiull not clickable

stoic mist
vestal river
#

server ran module, it has a require in server script service

stoic mist
#

Properties are correct and everything?

#

Because if not, consider me stumped.

vestal river
#

what properties would i have to look out for

stoic mist
vestal river
#

yup those are on

stoic mist
#

Crap

#

WAIT

#

Local scripts don’t work anywhere else but starterscripts or starter gui

#

Move your button clicked script to your startercharictorscrips

vestal river
#

ok let m,e try

#

how do i edit the button click script to work with the image button now that it isnt parented?

vestal river
#

yeah idk, it makes no sense to me tbh

#

its clickable while on rigs but not when on a player

trim bison
stoic mist
trim bison
#

i'm not the only one D:

stoic mist
trim bison
vestal river
#

its just so weird to me, why does it work on a rig but not players 😭 its attached to the same thing

trim bison