Hey!!
I’ve been trying to make a part where, well, when you spawn in, it’s automatically welded to the player.
None of my scripts have worked.
I am not asking for a full script on how to do this, just an example?
Any help is appreciated
Hey!!
I’ve been trying to make a part where, well, when you spawn in, it’s automatically welded to the player.
None of my scripts have worked.
I am not asking for a full script on how to do this, just an example?
Any help is appreciated
ServerScript in ServerScriptService
game:GetService("Players").PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Char)
local Head = Char:WaitForChild("Head")
local HeadPart = Instance.new("Part", workspace)
HeadPart.Size = Vector3.new(5, 3, 5)
HeadPart.Transparency = 0.6
HeadPart.CanCollide = false
HeadPart.Position = Head.Position + Vector3.new(0, 1.5, 0)
local HeadPartWeld = Instance.new("WeldConstraint", HeadPart)
HeadPartWeld.Part0 = HeadPart
HeadPartWeld.Part1 = Head
end)
end)
I wasnt really looking for a full script… But thanks!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.