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

1 comment
Thanks! Now my racers have helmets! :3