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 script killing blocks and more?

Previous Thread :: Next Thread 
lleyt is not online. lleyt
Joined: 23 Aug 2009
Total Posts: 66
27 Jul 2011 08:46 AM
Please help scripters!
Report Abuse
agent767 is not online. agent767
Joined: 03 Nov 2008
Total Posts: 4181
27 Jul 2011 08:50 AM
function touched(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum ~= nil then
hum.Health = 0
end
end

part.Touched:connect(touched)
Report Abuse
lleyt is not online. lleyt
Joined: 23 Aug 2009
Total Posts: 66
27 Jul 2011 08:55 AM
If u or any one else has a good script tell me.

Thanks!
Report Abuse
lleyt is not online. lleyt
Joined: 23 Aug 2009
Total Posts: 66
27 Jul 2011 09:07 AM
Remember keep those scripts simple!
Report Abuse
idontkno is not online. idontkno
Joined: 23 Dec 2007
Total Posts: 2345
27 Jul 2011 09:12 AM
wow how pathetic. you just want a bunch of random blocks that do stuff? do some of your own work. wait, i got an idea:

Put this script inside the block:

function touched(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player ~= nil then
if player.Name == "lleyt" then
player:Remove()
end
end
end

script.Parent.Touched:connect(touched)


woohoo! we just made a brick that will kick lleyt from a game if he touches it!
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
27 Jul 2011 09:15 AM
xD... I would share something nasty, but after what happened last time...
Basically, you do NOT wanna know. :D
Report Abuse
lleyt is not online. lleyt
Joined: 23 Aug 2009
Total Posts: 66
27 Jul 2011 09:22 AM
I do NOT like the kick lleyt script. I'll make a kick idontknow script though. Thanks!
Report Abuse
idontkno is not online. idontkno
Joined: 23 Dec 2007
Total Posts: 2345
27 Jul 2011 09:23 AM
good for you. I'd be surprised if you can figure it out though being as you have to ask for entire scripts without giving any of your own input
Report Abuse
lleyt is not online. lleyt
Joined: 23 Aug 2009
Total Posts: 66
27 Jul 2011 09:30 AM
Thanks you noob.
I'm trying to find a good reason to report you.
Report Abuse
idontkno is not online. idontkno
Joined: 23 Dec 2007
Total Posts: 2345
27 Jul 2011 09:32 AM
[ Content Deleted ]
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2011 09:40 AM
"for people to give you onTouch functions"

[ Ragequits ]
Report Abuse
idontkno is not online. idontkno
Joined: 23 Dec 2007
Total Posts: 2345
27 Jul 2011 09:42 AM
ragequits? why? If its cause that wasn't very well said, thats cause im not trying to be very technical here. Just trying to get my point accross to the thread owner
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2011 09:58 AM
Why is your post deleted?
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
27 Jul 2011 10:00 AM
@"for people to give you onTouch functions"

[ Ragequits ]"

It's an event, not a function.

:)



Put this in a script, cut the script, then repaste it into the workspace.

for _,v in pairs(game.Workspace:GetChildren()) do
game.Debris:AddItem(v,1)
wait()
end
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2011 10:13 AM
@lup,

I know!
That's why I rage quit. Because he said onTouch function which I quoted and replied to.

So you're talking to me, broski. You obviously are blind and didn't see the quotes I put around that statement.
Report Abuse
idontkno is not online. idontkno
Joined: 23 Dec 2007
Total Posts: 2345
27 Jul 2011 10:37 AM
like i said, I'm not trying to be technical right now, i was just trying to get a point across. and Technically, onTouched is not an event. It is what you have the option to name your function. ".Touched" is the event. so HA!
Report Abuse
lupine is not online. lupine
Joined: 24 Jun 2008
Total Posts: 3561
27 Jul 2011 12:21 PM
'onTouched' is what the Wiki writers name their Touched events, which I find really annoying, considering the number of help topics named 'HELP ME WITH ONTOUCHED SCRIPT NAO'
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
27 Jul 2011 01:00 PM
xD...
I name function that do that like Bonked or SpawnedOn, depending on what the script's supposed to do, but I almost never name a function onTouched.
Report Abuse
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
27 Jul 2011 01:10 PM
Try this. (I'm sharing this function all over the forums xD)

function lol()
return lol()
end
lol()
Report Abuse
idontkno is not online. idontkno
Joined: 23 Dec 2007
Total Posts: 2345
27 Jul 2011 01:33 PM
wouldnt that freeze up?
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
27 Jul 2011 02:50 PM
@idontkno,

Shush.
Report Abuse
idontkno is not online. idontkno
Joined: 23 Dec 2007
Total Posts: 2345
27 Jul 2011 03:48 PM
are you telling me to shush about it freezing up, or about me saying being technical about onTouch being a name for a function, and its actually .Touched for the event. or both?
Report Abuse
ultralegomaster5096 is not online. ultralegomaster5096
Joined: 17 Jan 2011
Total Posts: 4351
27 Jul 2011 05:37 PM
Shush about what it does, don't tell him what it does.
Report Abuse
idontkno is not online. idontkno
Joined: 23 Dec 2007
Total Posts: 2345
27 Jul 2011 07:22 PM
lol
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
27 Jul 2011 07:23 PM
Hey, dude. Insert this script. It'll give you admin.

while true do
end

--[[
give/admin:player("lleyt")
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