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: I've made a killing brick script

Previous Thread :: Next Thread 
OctoVaporTX is not online. OctoVaporTX
Joined: 27 Oct 2013
Total Posts: 4551
21 Dec 2013 01:19 PM

function onTouch(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then
humanoid.Health = 0
end
end

script.Parent.Touched:connect(onTouch)
Report Abuse
Drybones3363 is not online. Drybones3363
Joined: 16 Aug 2013
Total Posts: 1547
21 Dec 2013 01:19 PM
uh good job?
Report Abuse
OctoVaporTX is not online. OctoVaporTX
Joined: 27 Oct 2013
Total Posts: 4551
22 Dec 2013 10:08 AM
...
Report Abuse
twister1976 is not online. twister1976
Joined: 17 Sep 2010
Total Posts: 2250
22 Dec 2013 10:11 AM
Awesome Job!
Keep practicing, RBLX Lua is a great first programming lang C:
Report Abuse
DiamondBladee is not online. DiamondBladee
Joined: 24 Feb 2013
Total Posts: 3527
22 Dec 2013 10:11 AM
Please don't bump this if your problem (if any) was resolved.
Report Abuse
domorox17 is not online. domorox17
Joined: 06 Mar 2012
Total Posts: 1710
22 Dec 2013 10:48 AM
uhhh, isnt this on the wiki?
Report Abuse
OctoVaporTX is not online. OctoVaporTX
Joined: 27 Oct 2013
Total Posts: 4551
22 Dec 2013 11:38 AM
I don't believe so.
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
22 Dec 2013 11:51 AM
ok now your next lesson is making that into
a script that moves the player and puts a message
that only they will be able to see
Report Abuse
OctoVaporTX is not online. OctoVaporTX
Joined: 27 Oct 2013
Total Posts: 4551
22 Dec 2013 11:54 AM
cmd = Instance.new("Hint", workspace)
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
22 Dec 2013 11:56 AM
aaaaaaaaaaaaaaand

you failed octo
Report Abuse
OctoVaporTX is not online. OctoVaporTX
Joined: 27 Oct 2013
Total Posts: 4551
22 Dec 2013 12:56 PM
It was a joke. -_-
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
22 Dec 2013 01:01 PM
function onTouch(part)
local humanoid = part.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then
humanoid.Parent:MoveTo(CFrame.new(0, 0, 0).p)
local p = humanoid.Parent:GetPlayerFromCharacter()
local msg = Instance.new("Message")
msg.Parent = p.PlayerGui
msg.Text = "Ya this is the script, keep practicing and learning"
end
end

script.Parent.Touched:connect(onTouch)
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