LuaKid18
|
  |
| Joined: 01 Aug 2013 |
| Total Posts: 678 |
|
|
| 05 Aug 2013 12:02 PM |
| Not touching a spawn, touching a brick. |
|
|
| Report Abuse |
|
|
LuaKid18
|
  |
| Joined: 01 Aug 2013 |
| Total Posts: 678 |
|
|
| 05 Aug 2013 12:06 PM |
| don't ignore me just because I'm a noob. |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2013 12:06 PM |
What do you mean "change"?
script.Parent.Touched:connect(function(hit) -- hit is what is touching the brick --[[code here]] end)
|
|
|
| Report Abuse |
|
|
LuaKid18
|
  |
| Joined: 01 Aug 2013 |
| Total Posts: 678 |
|
|
| 05 Aug 2013 12:07 PM |
I know my functions. I'm talking about when a player touches the parent of the script the script assigns the player to a certain team color |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2013 12:09 PM |
| If you want obby checkpoints then just make a spawn and make it not allowed when joined |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2013 12:12 PM |
script.Parent.Toucehd:connect(function(hit) local player = game.Players:getPlayerFromCharacter(hit.Parent) player.TeamColor = BrickColor.new("Team Color Here") player:LoadCharacter() end) |
|
|
| Report Abuse |
|
|
LuaKid18
|
  |
| Joined: 01 Aug 2013 |
| Total Posts: 678 |
|
|
| 05 Aug 2013 12:12 PM |
No, I don't want a spawn.
I have a SEPARATE part. I have a SCRIPT in it. |
|
|
| Report Abuse |
|
|
LuaKid18
|
  |
| Joined: 01 Aug 2013 |
| Total Posts: 678 |
|
|
| 05 Aug 2013 12:13 PM |
| What does LoadCharacter() do |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2013 12:14 PM |
| It's an alternative to killing the player it makes their character disappear for about a 1th of a second then it loads the character. |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2013 12:15 PM |
| Sorry spelled touched wrong |
|
|
| Report Abuse |
|
|
LuaKid18
|
  |
| Joined: 01 Aug 2013 |
| Total Posts: 678 |
|
| |
|
LuaKid18
|
  |
| Joined: 01 Aug 2013 |
| Total Posts: 678 |
|
|
| 05 Aug 2013 12:16 PM |
| Can I insert this as a coroutine |
|
|
| Report Abuse |
|
|
LuaKid18
|
  |
| Joined: 01 Aug 2013 |
| Total Posts: 678 |
|
|
| 05 Aug 2013 12:19 PM |
not as, can I put this IN a coroutine and not mess it up? You see, there are previous parts to the script. |
|
|
| Report Abuse |
|
|