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 9 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

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

I have 0 clue..?

1 answer

Log in to vote
1
Answered by
iNicklas 215 Moderation Voter
9 years ago
local Button = script.Parent
local player = game.Players.LocalPlayer
local character = player.Character

function onClick() 
        Instance.new("Fire",character.Head)
        character.Head.Fire.Size = 5
        character.Head.Fire.Heat = 5

end 

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

Answer this question