generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: When a player joins the game....

Previous Thread :: Next Thread 
purdy26 is not online. 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
IcedVapour is not online. IcedVapour
Joined: 10 Nov 2013
Total Posts: 2741
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
IcedVapour is not online. IcedVapour
Joined: 10 Nov 2013
Total Posts: 2741
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 is not online. purdy26
Joined: 24 Aug 2012
Total Posts: 51
28 Nov 2017 12:18 PM
Whats with the c lo ne d
Report Abuse
IcedVapour is not online. IcedVapour
Joined: 10 Nov 2013
Total Posts: 2741
28 Nov 2017 12:27 PM
got hashed
Report Abuse
Pryotic is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image