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
 

How to i make this script kill

Previous Thread :: Next Thread 
luckychan12 is not online. luckychan12
Joined: 13 Apr 2012
Total Posts: 27
06 Sep 2014 01:50 PM
This script is supposed to spawn a block above your head and crush you...
how do i make it kill you

!!!!!!!!
________


O
/l\
/ \




local brick = Instance.new("Part")
brick.CanCollide = true
brick.Reflectance = 1
brick.Locked = True

while true do
local b = brick:clone()
b.Parent = game.Workspace
if game.Workspace.luckychan12 ~= nil then
local mainpos = game.Workspace.luckychan12.Torso.Position
b.Position = Vector3.new(mainpos.x, mainpos.y +100, mainpos.z)
b.Size = Vector3.new(200, 200, 200)
wait(0.1)
end
end
Report Abuse
LemmJuice is not online. LemmJuice
Joined: 23 Feb 2014
Total Posts: 866
06 Sep 2014 01:53 PM
You need to make another script, and then clone it into the brick.
Report Abuse
luckychan12 is not online. luckychan12
Joined: 13 Apr 2012
Total Posts: 27
06 Sep 2014 01:54 PM
how can i do that??
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
06 Sep 2014 01:56 PM
ah no you don't just add a touched even


b.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid")
hit.Parent.Humanoid:TakeDamage(100)
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Sep 2014 02:07 PM
that's a while true loop though o.o

so.. these death traps will be spawning above the head constantly? that's just... mean o.o
Report Abuse
luckychan12 is not online. luckychan12
Joined: 13 Apr 2012
Total Posts: 27
06 Sep 2014 02:18 PM
lol xD
Report Abuse
xiaoxiao181 is not online. xiaoxiao181
Joined: 14 Aug 2008
Total Posts: 5882
06 Sep 2014 02:21 PM
lol idk if i wanna play your game now.

*xiaoxiao181 has joined the server!*
xiaoxiao181: "Hai du..." *splat!*
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