generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Change Team GUI Broken

Previous Thread :: Next Thread 
Valgard is not online. Valgard
Joined: 18 Aug 2012
Total Posts: 1508
09 Jul 2013 07:57 PM
It works for some members, but for others it doesn't. It makes no sense to me, and I can't see what's wrong.

local player = game.Players.LocalPlayer

script.Parent.Allies.Visible = false

script.Parent.IC.MouseButton1Click:connect(function()
if player:IsInGroup(766723) then --//RS
player.TeamColor = BrickColor.new("Bright blue")
x = Instance.new("IntValue",player)
x.Name = "RAN"
script.Parent.Loading.Visible = true
wait(.5) -- Time between text changing
script.Parent.Loading.Text = "Loading"
wait(1)
script.Parent.Loading.Text = "Loading."
wait(1)
script.Parent.Loading.Text = "Loading.."
wait(1)
script.Parent.Loading.Text = "Loading..."
wait(1)
script.Parent.Loading.Text = "Entering"
wait(.5)
player.Character:BreakJoints()
else
script.Parent.IC.Visible = false
end
end)

script.Parent.Raiders.MouseButton1Click:connect(function()
if player:IsInGroup(766723) then --//RS HERE
script.Parent.Raiders.Visible = false
else
player.TeamColor = BrickColor.new("Bright red")

x = Instance.new("IntValue",player)
x.Name = "RAN"
script.Parent.Loading.Visible = true
wait(2) -- Time between text changing
script.Parent.Loading.Text = "Loading"
wait(.5)
script.Parent.Loading.Text = "Loading."
wait(.5)
script.Parent.Loading.Text = "Loading.."
wait(.5)
script.Parent.Loading.Text = "Loading..."
wait(.5)
script.Parent.Loading.Text = "Entering"
wait(.5)
player.Character:BreakJoints()
player.Character:BreakJoints()
wait(3)
end
end)

script.Parent.Allies.MouseButton1Click:connect(function()
if player:IsInGroup(667) then --//ALLIES
player.TeamColor = BrickColor.new("Bright yellow")
x = Instance.new("IntValue",player)
x.Name = "RAN"
script.Parent.Loading.Visible = true
wait(2) -- Time between text changing
script.Parent.Loading.Text = "Loading"
wait(.5)
script.Parent.Loading.Text = "Loading."
wait(.5)
script.Parent.Loading.Text = "Loading.."
wait(.5)
script.Parent.Loading.Text = "Loading..."
wait(.5)
script.Parent.Loading.Text = "Entering"
wait(.5)
player.Character:BreakJoints()
player.Character:BreakJoints()
else
script.Parent.Allies.Visible = false
end
end)
Report Abuse
Valgard is not online. Valgard
Joined: 18 Aug 2012
Total Posts: 1508
09 Jul 2013 08:00 PM
No one can find a problem?
Report Abuse
SpleenYanks is not online. SpleenYanks
Joined: 24 Aug 2008
Total Posts: 921
09 Jul 2013 08:02 PM
Atleast tell us what the output says.
Report Abuse
Valgard is not online. Valgard
Joined: 18 Aug 2012
Total Posts: 1508
09 Jul 2013 08:04 PM
18:03:40.853 - local player = game.Players.LocalPlayer

script.Parent.Alli:3: attempt to index global 'script' (a nil value)
18:03:40.856 - Script "local player = game.Players.LocalPlayer

script.Parent.Alli", Line 3
18:03:40.857 - stack end



I have no clue what that means.
Report Abuse
Valgard is not online. Valgard
Joined: 18 Aug 2012
Total Posts: 1508
09 Jul 2013 08:05 PM
No errors.
Report Abuse
Valgard is not online. Valgard
Joined: 18 Aug 2012
Total Posts: 1508
09 Jul 2013 08:06 PM
Some players can click it, others can't.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image