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

Fire Turn Off Then On Script Not Working?

Asked by 4 years ago

I Am Trying To Make A Camp Fire Turn Off Then Turn On

Fire.Parent
(heat)(0)
wait (10)
(heat)(15)

I Do Not Know What I Am Doing

0
wth r u trying to do dude Gameplayer365247v2 1055 — 4y
0
This guy doesnt know how to script Aiden16026 0 — 4y
0
Your The Guy Who Has A Game With 66% Likes Lol ricelicker 52 — 4y
0
Thats Right Aiden ricelicker 52 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

It's really as simple as just setting the Heat property of your fire object. I've written a small piece of code down below, so I'll just explain what happens.

In the first line, we're declaring the variable Fire as the fire object that you want to work with. I've used workspace.Fire as a placeholder, but you might want to change it to script.Parent or whatever you feel like will work. Then, in the second line, we're setting the Heat property of Fire to 0. But, since the value of Fire is the fire object that you want, it actually changes the Heat property of your fire object to 0 In the third line, we're just waiting for 10 seconds In the fourth line, we're doing the same as in the second, but then setting it to 15.

Now, that's your code fixed and explained, and I'm expecting that you at the very least know how to do stuff like Workspace.Part.Fire and script.Parent.Parent.Fire

Fire = workspace.Fire -- Replace this with the path to the fire object that you're working with
Fire.Heat = 0
wait(10)
Fire.Heat = 15
0
bro The_Pr0fessor 595 — 4y
0
? DarkageMast3r 140 — 4y
Ad
Log in to vote
0
Answered by 4 years ago
local Fire = script.Parent
Fire.Enabled = false
wait(10)
Fire.Enabled = true
0
Put this in the fire The_Pr0fessor 595 — 4y

Answer this question