Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can somebody help me this simple script will sometimes work and sometimes not work. Any help?

Asked by
hvcu 3
5 years ago
Edited 5 years ago

i have this script:

local BillBoardGui = game:GetService("ServerStorage"):WaitForChild("BillboardGui")

local roletag = game:GetService("ServerStorage"):WaitForChild("RoleRank")

local GroupID = 5184088

game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local ClonedGui = BillBoardGui:Clone() local ClonedRank = roletag:Clone() ClonedRank.Value = player:GetRoleInGroup(GroupID) ClonedGui.Parent = game.Workspace:WaitForChild(player.Name).Head ClonedRank.Parent = game.Workspace:WaitForChild(player.Name).Head

end) end)

It is located in ServerScriptService

The script sometimes works and sometimes just doesnt

2 answers

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

This is a normal script and put it in workpace It will get your role from your group and make that you role if you want it like that :D

01local commands = {}
02 
03function Create(ClassName)
04 return function(Properties)
05  local Obj = Instance.new(ClassName)
06  for i,v in pairs(Properties) do
07   if type(i) == 'number' then
08    v.Parent = Obj
09   else
10    Obj[i] = v
11   end
12  end
13  return Obj
14 end
15end
View all 94 lines...

I made It so your group id is in there hopefully that solved your problem

0
because if its a local script it would work on all the players not just a single one that might be the problem Nervousmrmonkey2 118 — 5y
0
Acctually, i found that the problem was another script hvcu 3 — 5y
0
btw this works hvcu 3 — 5y
0
ok thx Nervousmrmonkey2 118 — 5y
Ad
Log in to vote
0
Answered by
Lakodex 711 Moderation Voter
5 years ago

Please put your post in a scripting box. You can look up tutorials on how to do it! I will not assist you until you do so.

0
i told him the awser sorry :( Nervousmrmonkey2 118 — 5y
0
Its fine. Lakodex 711 — 5y
0
can u help me with my turret? Nervousmrmonkey2 118 — 5y
0
Me? add me on discord : Devamspion#7812 Lakodex 711 — 5y
0
Im not allowed i just asked the question though Nervousmrmonkey2 118 — 5y

Answer this question