I have a script that moves a crystal above a players head, but I don't know how to make it so when a player joins the game he gets his own crystal that follows him. This is in a local script btw. Also, looking for developers for my game. If you are interested contact me on Roblox. My Username is KuroNakamura.
function MoveCrystal() local character = game.Players.LocalPlayer.Character local crystal = workspace.Crystal local head = character["Head"] local objectSpace = CFrame.new(0, 2, 0) local worldSpace = head.CFrame:toWorldSpace(objectSpace) crystal.CFrame = worldSpace end game:GetService('RunService').RenderStepped:connect(function() MoveCrystal() end)
This is what I have been doing.
game.Players.PlayerAdded(function(plr) --stuff --even more stuff end)
So when a player joins, it will do whatever is underneath the thing. Hope this helps!