#billboard gui & text label

222 messages · Page 1 of 1 (latest)

broken current
#

how much pay

#

also do this in #💵︱hiring

twin stream
#

im not exactly sure how what you're making works but you can find the team that the tycoon is set to and then reference the player.name from the team

onyx smelt
onyx smelt
#

how many hrs u got

#

on rust

twin stream
#

4000 on my main which is gamebanned from like most big servers because apparently im "scripting" and the account i use mainly now has 2k hours

#

switched accounts because i was switching hardware anyway

#

only server im not gamebanned on is fucking renegaderust

twin stream
onyx smelt
#

oh

twin stream
#

hbu

onyx smelt
#

im 4.2k

twin stream
#

nice bro we're close then

#

maybe we'll meet one day

#

u clan a lot?

onyx smelt
#

not rly

#

8 man

twin stream
gritty gullBOT
#

studio** You are now Level 3! **studio

twin stream
#

and then reference the player from the team that is linked to the tycoon

onyx smelt
#

yea

onyx smelt
#

if i send the script here can you just help me

#

im confus

twin stream
#

i havent worked much with teams yet but sure i can take a look

onyx smelt
#

im making the

#

claim tycoon dor

#

u go in and it puts u in a team and says its like

gritty gullBOT
#

studio** You are now Level 4! **studio

onyx smelt
#

dbs tycoon

#

i have the put in team done i just cant get it to switch from Claim here billboard gui to my tycoon

twin stream
#

show

onyx smelt
#

ok wait

#

vc?

#

so this works but

#

idk how to put it so it switches this

twin stream
#

wait 1 sec

#

letme just get familiar with teams rq

onyx smelt
#

i want it to switch to this

#

to any persons username that goes inside

#

the text

onyx smelt
twin stream
#

ill copy it and try it rq

onyx smelt
#
script.Parent.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        local Player = game.Players:FindFirstChild(hit.Parent.Name)

        if Player.Team == game.Teams.Unclaimed then
            Player.Team = game.Teams.Blue
            script.Parent.Transparency = 0.5
            script.Parent.CanCollide = false
            script.Parent.Parent.Humanoid.DisplayName = Player.Name.. " 's Tycoon"
        end
    end
end)
#

ok

twin stream
#

wait

#

so what are you trying to change

#

why are you trying to cchange the humanoid

#

@onyx smelt

onyx smelt
#

idk

#

i was messing with it

twin stream
#

1 sec

#

billboard gui on the door part?

onyx smelt
#

yes

twin stream
#

made a script in serverscriptservice to make the team automatically unclaimed firstly

#

1 sec

#

letme find the backtick

onyx smelt
#

ok

twin stream
#
local Players = game:GetService("Players")
local Teams = game:GetService("Teams")
Players.PlayerAdded:Connect(function(player)
    player.Team = Teams.Unclaimed
end)
#
local Teams = game:GetService("Teams")
local Door = script.Parent
script.Parent.Touched:Connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        local Player = game:GetService("Players"):FindFirstChild(hit.Parent.Name)
        if Player.Team == Teams.Unclaimed then
            Player.Team = Teams.Blue
            Door.Transparency = 0.5
            Door.CanCollide = false
            Door.BillboardGui.TextLabel.Text = Player.Name .. "'s Tycoon"
        end
    end
end)

and this should be in a script inside the part

#

with a billboard gui named BillboardGui and a textlabel parented to it called TextLabel

onyx smelt
#

where do i put this

twin stream
#

sorry that it took a while i just had to learn teams rq

onyx smelt
#

in the door script

#

?

twin stream
onyx smelt
#

part = door + support beams

#

right

twin stream
#

yes itll work with support beams too

#

1 sec

onyx smelt
#

if i want to rename i can just put both names script + explorer

twin stream
twin stream
onyx smelt
#

nevermind

twin stream
onyx smelt
#

ok

#

script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local Player = game.Players:FindFirstChild(hit.Parent.Name)

    if Player.Team == game.Teams.Unclaimed then
        Player.Team = game.Teams.Blue
        script.Parent.Transparency = 0.5
        script.Parent.CanCollide = false
        script.Parent.Parent.Humanoid.DisplayName = Player.Name.. " 's Tycoon"
    end
end

end)

#

ignore this

onyx smelt
twin stream
#

local Teams = game:GetService("Teams")
local Door = script.Parent
Door.Touched:Connect(function(hit)
if Door:FindFirstChild("Humanoid") then
local Player = game:GetService("Players"):FindFirstChild(hit.Parent.Name)
if Player.Team == Teams.Unclaimed then
Player.Team = Teams.Blue
Door.Transparency = 0.5
Door.CanCollide = false
Door.BillboardGui.TextLabel.Text = Player.Name .. "'s Tycoon"
end
end
end)

u can use this instead i just didnt change the doors from the touched and findfirstchild

onyx smelt
twin stream
#

serverscriptstorage

onyx smelt
#

ok

#

the top one?

twin stream
#

yep

#

and have 2 teams

#

1 called unclaimed

#

and 1 called blue

#

and make them not auto-assignable

#

in the properties tab

onyx smelt
#

i only hav

#

scriptserverservice

kind coral
#

yoo

onyx smelt
#

and serverstorage

kind coral
#

bye

twin stream
#

oh yeah

#

serverscriptservice

#

thats mb lol

#

got mixed up

onyx smelt
#

can we go in a call

twin stream
#

local Teams = game:GetService("Teams")
local Door = script.Parent
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local Player = game:GetService("Players"):FindFirstChild(hit.Parent.Name)
if Player.Team == Teams.Unclaimed then
Player.Team = Teams.Blue
Door.Transparency = 0.5
Door.CanCollide = false
Door.BillboardGui.TextLabel.Text = Player.Name .. "'s Tycoon"
end
end
end)

#

sorry idk if the other one didnt work or whatever

#

wait

#

i can do in like 10 minutes but not rn

onyx smelt
#

ok

twin stream
#

is there a problem with it

twin stream
#

?

#

i corrected it

onyx smelt
#

yeah the player and players thing is gray

#

in script

twin stream
#

show

onyx smelt
#

that normal?

twin stream
#

yeah

onyx smelt
#

the leaderboard changed

#

but its still claim here

twin stream
#

show the heirarchy

onyx smelt
#

whats that

twin stream
#

like parents

#

where is the billboard gui

#

and have u got any errors

onyx smelt
twin stream
#

the billboardgui has to be under the part with the script

#

like i showed

#

inside of it

gritty gullBOT
#

studio** You are now Level 4! **studio

onyx smelt
#

since when does that matter

#

so i move billboardgui where

twin stream
#

you move it under the maindoor part

#

because

#

i use door.billboardgui

#

so otherwise it wouldnt find the billboard gui

onyx smelt
#

between main door and maindoorclaim script?

twin stream
#

no just drag it into main door

#

in the same place

#

that the script is

onyx smelt
#

it dont let me

twin stream
#

like on this picture

onyx smelt
#

is it because i have text label in gui

#

its already in main door

#

but under the script

twin stream
#

not under the script

#

like i showed ijn the picture

#

or in here

onyx smelt
#

wait

#

that model

#

is this right

twin stream
#

the model name doesnt matter

#

but

#

i wouldnt name it like that

#

dont name stuff with spaces

#

makes it harder

onyx smelt
#

ok

twin stream
#

if u ever need to reference it

#

wait

#

ill legit make the billboard gui for u 1sec

onyx smelt
#

i need to screenshare

twin stream
#

waut

#

wait

#

ill show u how to do it

onyx smelt
#

oka

twin stream
#

local Teams = game:GetService("Teams")
local Door = script.Parent
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
local Player = game:GetService("Players"):FindFirstChild(hit.Parent.Name)
if Player.Team == Teams.Unclaimed then
Player.Team = Teams.Blue
Door.Transparency = 0.5
Door.CanCollide = false
Door.BillboardGui.TextLabel.Text = Player.Name .. "'s Tycoon"
end
end
end)

So this is the script yes

#

now on your part

#

just do this

onyx smelt
#

hm

twin stream
onyx smelt
#

oor u want me to delete it ajnd just make a new one

twin stream
#

itll reduce error

onyx smelt
#

oka

#

that part ur doing it for

#

is that main door for me

twin stream
#

yes

onyx smelt
#

now

#

it should work?

twin stream
#

yes

#

does it work

onyx smelt
#

YES

#

THANK YOU

#

I LOVE YOU

twin stream
#

😭 finally

#

no problem

onyx smelt
#

bro

#

it took me 2 hurs

#

hours

#

yesterday

twin stream
#

you can change the text label shit all in there

onyx smelt
#

for this bullshit

#

yeah

twin stream
#

bro what were u doing wrong lol

onyx smelt
#

im not even sure

twin stream
#

the text cuts off if ur name is really long

#

but

#

u can change the size of the text label

#

and all that shit in the properties

#

of the text label

twin stream
onyx smelt
#

ok

gritty gullBOT
#

studio** You are now Level 5! **studio

onyx smelt
#

when im gonna have to do lead arrows ill hit you up

#

i heard its aids

twin stream
#

thats just with beams isnt it

onyx smelt
#

yes