Mojo028Join Date: 2009-05-09 Post Count: 85 |
Is it possible to have a script clone a kill script into a brick? please help! |
|
bombpawJoin Date: 2009-03-15 Post Count: 3484 |
Yes...But if we tell you, you will make a new virus. |
|
tofwapJoin Date: 2007-12-06 Post Count: 6596 |
would be more complicated than is necessary, assuming you just want to clone them you would move their player over with a CFrame and then clone their body, place it at the old coordinates and have it :BreakJoints() |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
how would it make a new virus? i need it because i am trying to make a lava generator for my obby. |
|
tofwapJoin Date: 2007-12-06 Post Count: 6596 |
Lava=script.Parent
Lave:Clone().Parent=Game.Workspace
..... sorry about the last post wrong area. |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
Sorry to sound like a noob, but I am trying to learn how to script. What does CFrame do? |
|
bombpawJoin Date: 2009-03-15 Post Count: 3484 |
Fine.....
(game.Lighting.Lava:clone()).Parent = script.Parent
script:remove() |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
Thank you. Would it be possible to have a script that is in a brick and when something touches the brick a kill script is inserted into the brick? |
|
bombpawJoin Date: 2009-03-15 Post Count: 3484 |
That would spam the brick.... |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
oh... that would be laggy... |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
I am attempting to write the script. This is what I have so far.
Killscript=script.Parent
Killscript:clone.Parent=game.Workspace
function onTouched(hit)
if hit.Touched.Name=Lava then
The output doesnt seem to like Touched. It says "Touched is not a valid member of Workspace". Can I have some help on that? After the then, I want to insert the killscript into the lava. How would I do that? |
|
ostinyoJoin Date: 2010-12-30 Post Count: 1233 |
"if hit.Touched.Name=Lava"
lol.
just lol. |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
? |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
whats so funny? |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
What is so funny about "if hit.touched.name=Lava"? |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
bump |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
bump... |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
BUMPITY BUMPY BUMMMMMMMMMMMMMMMMMMMMMMP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!:):):):):):):):):):):):) |
|
myrco919Join Date: 2009-06-12 Post Count: 13241 |
[ Content Deleted ] |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
in the script shown above a few posts, how would I insert the kill script into the lava? |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
I am attempting to write the script. it is supposed to clone a kill script then insert it into some lava. This is what I have so far.
I am attempting to write the script. This is what I have so far.
Killscript=script.Parent
Killscript:clone.Parent=game.Workspace
function onTouched(hit)
if hit.Touched.Name=Lava and hit.FindFirstChild"Killscript"=nil then--FindFirstChild is to prevent spamming
After the then, I want to insert the killscript into the lava. How would I do that? |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
BBBBBBBBBBBBBUUUUUUUUUUUUUUUUUUUUUUUUUUMMMMMMMMMMMMMMMMMMMPPPPPPPPPPPP |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
uggh. starting new thread if i dont get more replies. |
|
Mojo028Join Date: 2009-05-09 Post Count: 85 |
Starting new thread. |
|
ostinyoJoin Date: 2010-12-30 Post Count: 1233 |
VAR = OBJECT:clone()
VAR.Parent = object
VAR.Name = "Name"
etc etc |
|