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
 

Need help with scripting

Previous Thread :: Next Thread 
kamilaman is not online. kamilaman
Joined: 05 Jul 2011
Total Posts: 105
01 Nov 2012 06:20 AM
I need someone to give me a script which will locate the players touching a brick and group those players in a seperate model in workspace.
Report Abuse
FreeToTake is not online. FreeToTake
Joined: 21 Apr 2010
Total Posts: 1827
01 Nov 2012 06:28 AM
you don't 'need' the script.
you want the script.
the only things you need are oxygen, food, water, movement and sleep.

however, here it comes

x = Instance.new("Model", workspace)

script.Parent.Touched:connect(function(h)
if not h or not h.Parent then return end
hum = h.Parent:findFirstChild("Humanoid")
if not hum then return end
hum.Parent.Parent = x
end)
Report Abuse
kamilaman is not online. kamilaman
Joined: 05 Jul 2011
Total Posts: 105
01 Nov 2012 06:54 AM
Your script worked like a charm.But i was wondering what is the "if not h or not h.Parent then return end " used for???
Report Abuse
kamilaman is not online. kamilaman
Joined: 05 Jul 2011
Total Posts: 105
01 Nov 2012 07:06 AM
And one more thing ... i want to ungroup that model after a while.
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