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: Is there a problem with this script?

Previous Thread :: Next Thread 
clue1234flo is not online. clue1234flo
Joined: 16 Mar 2012
Total Posts: 69
10 Nov 2012 12:48 PM
local team = game.Teams:findFirstChild("Allies")

local button = script.Parent
local player = script.Parent.Parent.Parent.Parent.Parent

function onClicked()
player.TeamColor = team.TeamColor
player.Character:BreakJoints()
end
button.MouseButton1Down:connect(onClicked)

Is there a problem with this script?
Report Abuse
crouton04 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
10 Nov 2012 12:57 PM
Is it a switch team? Or join team?
and where in the gui or whatever it's in is it? You might be off with the parents. And I need an output to help you..
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
10 Nov 2012 01:01 PM
That seems to me that it would work, how about trying it out?

~ thedeathmaster01 ~
Report Abuse
clue1234flo is not online. clue1234flo
Joined: 16 Mar 2012
Total Posts: 69
17 Nov 2012 11:42 AM
It is a switch team script but when I tried it, it wouldn't work. I tried it in a screen GUI for a switch team button I gut them in the starter GUI catagorie. Am I doing something wrong?
Report Abuse
BOZZSYLUX is not online. BOZZSYLUX
Joined: 05 Sep 2009
Total Posts: 3567
17 Nov 2012 11:45 AM
Post what output says else im kinda clueless aswel.
Report Abuse
clue1234flo is not online. clue1234flo
Joined: 16 Mar 2012
Total Posts: 69
17 Nov 2012 05:26 PM
Here is the output

Teams is not a valid member of DataModel
16:25:52 - Script "Workspace.Script", Line 1
16:25:52 - stack end

This is when it is just in the workspace if you want I can put it in a screen GUI
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