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: How do I make a player change on touch?

Previous Thread :: Next Thread 
LuaKid18 is not online. LuaKid18
Joined: 01 Aug 2013
Total Posts: 678
05 Aug 2013 12:02 PM
Not touching a spawn, touching a brick.
Report Abuse
LuaKid18 is not online. 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
ProfitMargin is not online. ProfitMargin
Joined: 01 Aug 2013
Total Posts: 285
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 is not online. 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
LargestFriendsList is not online. LargestFriendsList
Joined: 28 Jun 2013
Total Posts: 1609
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
ProfitMargin is not online. ProfitMargin
Joined: 01 Aug 2013
Total Posts: 285
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 is not online. 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 is not online. LuaKid18
Joined: 01 Aug 2013
Total Posts: 678
05 Aug 2013 12:13 PM
What does LoadCharacter() do
Report Abuse
ProfitMargin is not online. ProfitMargin
Joined: 01 Aug 2013
Total Posts: 285
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
ProfitMargin is not online. ProfitMargin
Joined: 01 Aug 2013
Total Posts: 285
05 Aug 2013 12:15 PM
Sorry spelled touched wrong
Report Abuse
LuaKid18 is not online. LuaKid18
Joined: 01 Aug 2013
Total Posts: 678
05 Aug 2013 12:16 PM
ok thx
Report Abuse
LuaKid18 is not online. LuaKid18
Joined: 01 Aug 2013
Total Posts: 678
05 Aug 2013 12:16 PM
Can I insert this as a coroutine
Report Abuse
LuaKid18 is not online. 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
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