awas3
|
  |
| Joined: 24 Oct 2010 |
| Total Posts: 2854 |
|
|
| 06 Jun 2012 03:27 AM |
game.Players.ChildAdded:connect(function()
g = game.Players:GetPlayerFromCharacter(game.Players.LocalPlayer) if g:IsInGroup(527579) then game.Players.LocalPlayer.PlayerGui.trf.Backround.detectorbackround.det.Text = "Tactical Roblox Forces" else game.Players.LocalPlayer.PlayerGui.trf.Backround.detectorbackround.det.Text = "Raider/Visitor" end end)
Its trying to navigate to players gui and detect if they are in group or not. Can someone fix it please! |
|
|
| Report Abuse |
|
|
pwnedu46
|
  |
| Joined: 23 May 2009 |
| Total Posts: 7534 |
|
|
| 06 Jun 2012 03:49 AM |
Is this a LocalScript?
---------- ~pwnedu46, wiki writer~ |
|
|
| Report Abuse |
|
|
awas3
|
  |
| Joined: 24 Oct 2010 |
| Total Posts: 2854 |
|
| |
|
velibor
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 1003 |
|
|
| 06 Jun 2012 04:41 AM |
-- Put this inside Workspace in a NormalScript
game.Players.PlayerAdded:connect(function(new) new.CharacterAdded:connect(function() local Var = Game.Lighting.LocalScript:clone() Var.Parent = new Var.Disabled = true wait(1) Var.Disabled = false end) end)
-- Put this inside a LocalScript inside Lighting function Validate() if Game.Players.LocalPlayer:IsInGroup(527579) then game.Players.LocalPlayer.PlayerGui.trf.Backround.detectorbackround.det.Text = "Tactical Roblox Forces" else game.Players.LocalPlayer.PlayerGui.trf.Backround.detectorbackround.det.Text = "Raider/Visitor" end end
Validate()
|
|
|
| Report Abuse |
|
|