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
10 years ago
function fire()
a = Instance.new("Part",Workspace)
a.Position = Workspace.deedum.Torso.Vector3.new
a.Shape = "Ball"
a.BrickColor = BrickColor.new("Cyan")
local part = Instance.new("Fire")
part.Parent = Workspace.a
a.Transparency = 1
end

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 — 10y
0
Say I wanted to run another pieece of code in a another script into this code. What would I do? foxy83 15 — 10y
0
Well that should solve it HexC3D 830 — 10y

2 answers

Log in to vote
3
Answered by
HexC3D 830 Moderation Voter
10 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

fire = game.Workspace.fire
fire.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
10 years ago
function fire()
a = Instance.new("Part",Workspace)
a.Position = Workspace.deedum.Torso.Position --Your problem was, you want the torso's position.
a.Shape = "Ball"
a.BrickColor = BrickColor.new("Cyan")
local part = Instance.new("Fire")
part.Parent = a --a is basically a variable, so all you had to put was that, not the Workspace.
a.Transparency = 1
end

Answer this question