Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help me? Please?!

Asked by
foxy83 15
11 years ago
1function fire()
2a = Instance.new("Part",Workspace)
3a.Position = Workspace.deedum.Torso.Vector3.new
4a.Shape = "Ball"
5a.BrickColor = BrickColor.new("Cyan")
6local part = Instance.new("Fire")
7part.Parent = Workspace.a
8a.Transparency = 1
9end

I have the basics down, now how do I get another script to run into this script?

0
??? Can you explain further, please? systematicaddict 295 — 11y
0
Say I wanted to run another pieece of code in a another script into this code. What would I do? foxy83 15 — 11y
0
Well that should solve it HexC3D 830 — 11y

2 answers

Log in to vote
3
Answered by
HexC3D 830 Moderation Voter
11 years ago

Name the script fire(the on that you wrote about) and put in Workspace.

Then make the script called "fire" disabled property checked or true

Then make another script in Workspace and in the script put this

1fire = game.Workspace.fire
2fire.Disabled = false

That should run the function.

+1 if I helped and if it answered your question , then check mark :P.

Ad
Log in to vote
0
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
11 years ago
1function fire()
2a = Instance.new("Part",Workspace)
3a.Position = Workspace.deedum.Torso.Position --Your problem was, you want the torso's position.
4a.Shape = "Ball"
5a.BrickColor = BrickColor.new("Cyan")
6local part = Instance.new("Fire")
7part.Parent = a --a is basically a variable, so all you had to put was that, not the Workspace.
8a.Transparency = 1
9end

Answer this question