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 » Scripters
Home Search
 

I need help with something to to with Teams!

Previous Thread :: Next Thread 
XxGTGGamingxX is not online. XxGTGGamingxX
Joined: 03 Jul 2016
Total Posts: 18
21 Feb 2017 03:23 PM
Hello! I'm having trouble making a script, for me. What I'm saying is, I have 2 teams in ## game, and I connected them with Button GUI's. I named one of them, "Founder/Game Creator", and what I need to know is how do I make that button only make ME, ### Game Creator, spawn at ## Spawn location I put in a Security Rooom I made I for myself, not ### Visitors Spawn? Please help.
Report Abuse
UnjoinedParts is not online. UnjoinedParts
Joined: 01 Jan 2017
Total Posts: 1359
21 Feb 2017 03:28 PM
Copy and paste the below script I wrote.

script.Parent.MouseButton1Click:Connect(function() -- when the button is clicked
local plr = game.Players.LocalPlayer -- defining player variable
if plr.UserId == UserIdHere then -- Get this from the URL on your profile. (Number)
plr.TeamColor = "color" -- Replace color with the exact color the Team is
plr:LoadCharacter() -- Respawns the player
end
end


Report Abuse
XxGTGGamingxX is not online. XxGTGGamingxX
Joined: 03 Jul 2016
Total Posts: 18
21 Feb 2017 03:42 PM
Thanks! Appreciate your help.
Report Abuse
XxGTGGamingxX is not online. XxGTGGamingxX
Joined: 03 Jul 2016
Total Posts: 18
21 Feb 2017 03:45 PM
Wait, when I published it, it did not work for some reason when I logged out. Did I need to place this in StarterGUI or Teams?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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