#billboard gui & text label
222 messages · Page 1 of 1 (latest)
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
no money
Ok ty
how many hrs u got
on rust
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
but im also planning to launch my own servers soon
oh
hbu
Shit server
im 4.2k
and wym
find the team that is linked to the tycoon that he is claiming
** You are now Level 3! **
and then reference the player from the team that is linked to the tycoon
yea
its blue
if i send the script here can you just help me
im confus
i havent worked much with teams yet but sure i can take a look
** You are now Level 4! **
dbs tycoon
i have the put in team done i just cant get it to switch from Claim here billboard gui to my tycoon
show
okay
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
wait
so what are you trying to change
why are you trying to cchange the humanoid
@onyx smelt
yes
made a script in serverscriptservice to make the team automatically unclaimed firstly
1 sec
letme find the backtick
ok
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
where do i put this
sorry that it took a while i just had to learn teams rq
no problem
part = door + support beams
right
if i want to rename i can just put both names script + explorer
what do you want to rename
nevermind
lmk if that works for u and if u got any othe rquestions
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
this and the one above i put in the same script ?
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
yep
and have 2 teams
1 called unclaimed
and 1 called blue
and make them not auto-assignable
in the properties tab
yoo
and serverstorage
bye
can we go in a call
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
ok
is there a problem with it
whats this
show
show the heirarchy
whats that
the billboardgui has to be under the part with the script
like i showed
inside of it
** You are now Level 4! **
you move it under the maindoor part
because
i use door.billboardgui
so otherwise it wouldnt find the billboard gui
between main door and maindoorclaim script?
it dont let me
like on this picture
is it because i have text label in gui
its already in main door
but under the script
the model name doesnt matter
but
i wouldnt name it like that
dont name stuff with spaces
makes it harder
ok
i need to screenshare
oka
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
hm
dont i have that already
oor u want me to delete it ajnd just make a new one
delete your billboard guis and just do what i showed in the tutorial
itll reduce error
yes
you can change the text label shit all in there
bro what were u doing wrong lol
im not even sure
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
if u got anymore questions lmk bro
ok
** You are now Level 5! **
alright
thats just with beams isnt it
yes