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
 

Somethings wrong with my script....

Previous Thread :: Next Thread 
vendo88 is not online. vendo88
Joined: 11 Jan 2011
Total Posts: 769
21 Jun 2013 12:34 PM
So, this script here, will only allow me to join the first team, RAA. It won't allow me to join the other two, Hostiles, and Visitors. I'm not sure what's causing the script to break. Is it that I need to remove the group ID part, I don't know. Here's the script...



local plr = game.Players.LocalPlayer
repeat wait() until plr.Character
local chr = plr.Character

script.Parent.dataFrame.RAA.MouseButton1Click:connect(function()
if plr:IsInGroup(28356) then
game.Players.LocalPlayer.TeamColor = game.Teams.RAA.TeamColor
chr.Parent = workspace
else
return
end
end)

script.Parent.dataFrame.Visitors.MouseButton1Click:connect(function()
if plr:IsInGroup() or plr:IsInGroup() or plr:IsInGroup() or plr:IsInGroup() or plr:IsInGroup() or plr:IsInGroup() and not plr:IsInGroup() then
game.Players.LocalPlayer.TeamColor = game.Teams.Visitors.TeamColor
chr.Parent = workspace
else
return
end
end)

script.Parent.dataFrame.Hostiles.MouseButton1Click:connect(function()
if not plr:IsInGroup() then
game.Players.LocalPlayer.TeamColor = game.Teams.Hostiles.TeamColor
chr.Parent = workspace
else
return
end
end)
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