purdy26
|
  |
| Joined: 24 Aug 2012 |
| Total Posts: 51 |
|
|
| 28 Nov 2017 12:09 PM |
I'm trying to make it so when a player who joins the game will instantly have Particles cloned inside of their head
local billboardgui = game:GetService("ServerStorage"):WaitForChild("HeatVision") game.Players.PlayerAdded:connect(function(player) local clonedgui = billboardgui:Clone() clonedgui.Parent = game.Workspace.LocalPlayer.Head end
It is not working and i have no idea why. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2017 12:11 PM |
| local billboardgui = game:GetService("ServerStorage"):WaitForChild("HeatVision") game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:Connect(function(char) wait() local clonedgui = billboardgui:Clone() ################ = char.Head end end |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2017 12:13 PM |
local billboardgui = game:GetService("ServerStorage"):WaitForChild("HeatVision") game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:Connect(function(character) wait() local clonedgui = billboardgui:Clone() c lo ne d gui.Parent = character.Head end end |
|
|
| Report Abuse |
|
|
purdy26
|
  |
| Joined: 24 Aug 2012 |
| Total Posts: 51 |
|
| |
|
| |
|
Pryotic
|
  |
| Joined: 11 Jun 2016 |
| Total Posts: 5 |
|
|
| 28 Nov 2017 12:42 PM |
In the line "clonedgui.Parent = game...." use "player.Character.Head" instead of "game.Workspace.LocalPlayer.Head", And plus the LocalPlayer is only in Players. if this didn't help you, then try typing after game.Player.PlayerAdded line, type "repeat wait() until player.Character~=nil
|
|
|
| Report Abuse |
|
|