Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make the sparkles lifetime to work properly?

Asked by 7 years ago

It doesnt change the lifetime in it, so I cannot make it,

01game.Workspace.ChildAdded:connect(function(player)
02     local name = player.Name
03     local playerinplayers = game.Players:FindFirstChild(player.Name)
04     if playerinplayers ~= nil then
05         playerinplayers.CanLoadCharacterAppearance = false
06         local hat = Instance.new("Hat", player)
07         hat.Name = "WhiteSparkleTimeFedora"
08         hat.AttachmentForward = Vector3.new(0, 0, -1)
09         hat.AttachmentPos = Vector3.new(0, -0.1, 0)
10         hat.AttachmentRight = Vector3.new(1, 0, 0)
11         hat.AttachmentUp = Vector3.new(0, 1, 0)
12         local part = Instance.new("Part", hat)
13         part.Name = "Handle"
14         part.Size = Vector3.new(2,2,2)
15         local mesh = Instance.new("SpecialMesh", part)
View all 29 lines...
0
Maybe make it NumberRange.new(0.1, 0.2) since it's a range? Jxemes 75 — 7y
0
ahh so much deprecated stuff, setting parents before position, all the good old deprecated stuff. hiimgoodpack 2009 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

[EDIT] - My bad, I haven't looked over all of the script. So for the script you have a few basic errors. The basic errors are you are putting spaces, brackets, and . in the wrong place.

You are mostly using the instances in the wrong way. If you want to learn about how to use different instances, I suggest you use the wiki.

wiki.roblox.com/index.php?title=Instance_(Data_Structure)

01game.Workspace.ChildAdded:connect(function(player)
02     local name = player.Name
03     local playerinplayers = game.Players:FindFirstChild(player.Name)
04     if playerinplayers ~= nil then
05         playerinplayers.CanLoadCharacterAppearance = false
06         local hat = Instance.new("Hat", player)
07         hat.Name = "WhiteSparkleTimeFedora"
08         hat.AttachmentForward = Vector3.new(0, 0, -1)
09         hat.AttachmentPos = Vector3.new(0, -0.1, 0)
10         hat.AttachmentRight = Vector3.new(1, 0, 0)
11         hat.AttachmentUp = Vector3.new(0, 1, 0)
12         local part = Instance.new("Part", hat)
13         part.Name = "Handle"
14         part.Size = Vector3.new(2,2,2)
15     part.BrickColor = BrickColor.new('color') -- Add a color.
View all 34 lines...

Hope this helps !

0
Thank you! I am just a starter on sceipting and this was not so easy script, and I didnt know. ItzFireable 17 — 7y
0
Didnt work. I will get it to work someday. ItzFireable 17 — 7y
0
hmm.. ill make another script lets see Amputea 2 — 7y
Ad

Answer this question