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: LuaLearners Intermediate Assignment

Previous Thread :: Next Thread 
Stefan631 is not online. Stefan631
Joined: 23 Dec 2010
Total Posts: 1350
27 May 2013 08:21 PM
function Touch(hit)
if hit ~= nil then

hit.Parent.Humanoid.Health = 0

script.Parent.Color = Color3.new(math.random(0, 255), math.random(0, 255), math.random(0, 255))

script.Parent.Position = Vector3.new(math.random(0, 20), math.random(0, 20), math.random(0, 20))

b = Instance.new("Message, workspace")
b.Text = ("Someone has touched the brick!")
wait(5)
b:Remove()

end
end
script.Parent.Touched:connect(Touch)
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
27 May 2013 08:26 PM
Color3 takes values from 0 to 1, not 0 to 255.
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
27 May 2013 08:39 PM
I personally hate how LuaLearners teaches people how to use functions that you're gonna connect to an event.

Life is an endless nightmare
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
27 May 2013 08:41 PM
^ The whole tutorial system is being remade.
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
27 May 2013 08:50 PM
YESH!
Report Abuse
Usering is not online. Usering
Joined: 18 Aug 2012
Total Posts: 10281
27 May 2013 08:52 PM
Thank God.

Life is an endless nightmare
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
27 May 2013 08:54 PM
and i just put in a teacher application today XD
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
27 May 2013 08:54 PM
I'm a mod on LL :D
Report Abuse
CodyTheBuildingKid is not online. CodyTheBuildingKid
Joined: 13 Dec 2011
Total Posts: 4399
27 May 2013 08:57 PM
I haven't been on LL in a while. I was a Teacher +3.
I dunno about now.
Report Abuse
UnBuild is not online. UnBuild
Joined: 22 Mar 2013
Total Posts: 3233
27 May 2013 09:08 PM
CULER = {"Bright blue", "Bright red", "Bright yellow"} --EVERY GOOD SCRIPT NEEDS A TABLE. http://www.roblox.com/UnBuild-Lover-of-tables-item?id=112713648
BOUNCE_BRO = true

function U_TOUCHED_ME_FITE_ME_IRL_NOB(TOUCHER)
math.randomseed(tick())
if TOUCHER and TOUCHER.Parent ~= nil then

for KEEL_THAT_HUMANOID = 1,#TOUCHER.Parent:GetChildren() do --FOR LOOP TO MAKE SURE YOU GET IT
if TOUCHER.Parent:GetChildren()[KEEL_THAT_HUMANOID]:IsA("Humanoid") then
TOUCHER.Parent:GetChildren()[KEEL_THAT_HUMANOID].Health = 0
TOUCHER.Parent:BreakJoints() --YOU CAN NEVER BE TO SURE
end
end
TOUCHER:BreakJoints() --YOU CAN NEVER BE TO SURE

script.Parent.BrickColor = BrickColor.new(CULER[math.random(1,#CULER)])
script.Parent.Position = Vector3.new(math.random(0, 20), math.random(0, 20), math.random(0, 20))


if BOUNCE_BRO then
BOUNCE_BRO = false
MSG = Instance.new("Message",workspace)
MSG.Text = "Y U TOUCH ME NOB? FITE ME. DIE."
Game:GetService("Debris"):AddItem(MSG,3)
wait(3)
BOUNCE_BRO = true
end

end
end
script.Parent.Touched:connect(U_TOUCHED_ME_FITE_ME_IRL_NOB)
Report Abuse
Dr01d3k4 is not online. Dr01d3k4
Joined: 11 Oct 2007
Total Posts: 17916
27 May 2013 09:09 PM
eww soo many caps
Report Abuse
sTvcs is not online. sTvcs
Joined: 24 Jun 2012
Total Posts: 704
27 May 2013 09:09 PM
Teaching how to do something is more important that teaching specific ways to overcome something, please at least learn to teach.
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