Hi there! I need some help with attaching an Instance to my head! I want to make a system that shows particles above my head! This is a piece of my written code:
local groupID = 3752919;
local before_name = false;
local ts = tostring
local FounderPart = Instance.new("Part")
FounderPart.Transparency = 0
FounderPart.CanCollide = false
FounderPart.Size = Vector3.new(4.05, 1, 0.175)
local FounderParticles = Instance.new("ParticleEmitter")
FounderParticles.Parent = FounderPart
FounderParticles.Texture = 'rbxassetid://6572543084'
FounderParticles.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.05,0.5,0),NumberSequenceKeypoint.new(1,0.1,0)})
FounderParticles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
FounderParticles.Lifetime = NumberRange.new(3.5,3.5)
FounderParticles.Rate = 1
FounderParticles.Speed = NumberRange.new(1,1)
-- ~~~~~~~~ Some lines in between here that arent relevant
function createTitle(p, s)
local gui = script.Title
local clone = gui:Clone()
clone.Parent = p.Character.Head
if before_name then
clone.F.T.Text = s.." "..p.Name
else
if s == "Developer" then
clone.F.T.TextColor3 = Color3.new(1, 1, 1)
clone.F.T.TextStrokeTransparency = 0
clone.F.T.UIGradient.Enabled = true
FounderPart.CFrame = p.Character.Head.CFrame * CFrame.new(0, 2, 0)
local FounderWeld = Instance.new("Weld")
FounderWeld.Part0 = p.Character.Head
FounderWeld.Part1 = FounderPart
FounderWeld.C0 = p.Character.Head.CFrame:Inverse()
FounderWeld.C1 = FounderPart.CFrame:Inverse()
FounderWeld.Parent = p.Character.Head
print("hi")
end
This however… does not seem to work… There are no errors, and it prints ‘hi’. The Particles just dont show up above my head.
‘s’ stands for the rank name of the player… I have the rank Developer, the T (display name) also shows up, except the instance FounderPart. What is the probelm and what is the solution?
Thank you in advance,
Baukeblox12