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

Adding fire to character HEAD?

Asked by 10 years ago

Okay I am making a game that includes this feature that you can select a gui onClick and you would recieve a fire on your head so like

1local fire = instance.new("Fire")
2game.Workspace.findFirstChild:connect
3localplayer.head.fire

I have 0 clue..?

1 answer

Log in to vote
1
Answered by
iNicklas 215 Moderation Voter
10 years ago
01local Button = script.Parent
02local player = game.Players.LocalPlayer
03local character = player.Character
04 
05function onClick()
06        Instance.new("Fire",character.Head)
07        character.Head.Fire.Size = 5
08        character.Head.Fire.Heat = 5
09 
10end
11 
12Button.MouseButton1Click:connect(onClick)

Size and Heat is optional, you can delete it if you want, its just if you want to modify size and heat ;)

0
Thank you person :) DiamondCookie2 0 — 10y
0
You're welcome :) iNicklas 215 — 10y
0
The thing is I need a onClick script so once you click it adds fire to the players head DiamondCookie2 0 — 10y
0
Sure, let me just edit my script. iNicklas 215 — 10y
View all comments (3 more)
0
Thank you again person :) DiamondCookie2 0 — 10y
0
There, it should work :) iNicklas 215 — 10y
0
cool DiamondCookie2 0 — 10y
Ad

Answer this question