Hey guys!
I have this script where I need the helmet to clone from the ServerStorage to the player. I don't know how to do so however. Anyone got any ideas?
script.Parent.MouseButton1Down:connect(function() playername = script.Parent.Parent.Parent.Parent.Name playerteam = script.Parent.Parent.Parent.Parent player = Workspace:FindFirstChild(""..playername.."") if player ~= nil then player:FindFirstChild("Shirt").ShirtTemplate = "http://www.roblox.com/asset/?id=267460168" player:FindFirstChild("Pants").PantsTemplate = "http://www.roblox.com/asset/?id=267460509" wait(1) game.ServerStorage.BlueHelmet:Clone().player.head --I have no idea what to do here end end)
This is inside a Local Script, so if I need a separate script to do this, let me know!
Cheers,
Michael
You can use a variable to index clones and new instances.
local helmet = game.ServerStorage.BlueHelmet:Clone() helmet.Parent = player
I'm confused on what your trying to say, but if you want to move the hat to the right position, maybe this would work: ... BlueHelmet:MoveTo(Player.Character.Head.Position)