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)
01 | game.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 = Vector 3. new( 0 , 0 , - 1 ) |
09 | hat.AttachmentPos = Vector 3. new( 0 , - 0.1 , 0 ) |
10 | hat.AttachmentRight = Vector 3. new( 1 , 0 , 0 ) |
11 | hat.AttachmentUp = Vector 3. new( 0 , 1 , 0 ) |
12 | local part = Instance.new( "Part" , hat) |
14 | part.Size = Vector 3. new( 2 , 2 , 2 ) |
15 | part.BrickColor = BrickColor.new( 'color' ) |
17 | part.Material = Plastic |
20 | local mesh = Instance.new( "FileMesh" , part) |
23 | local particle = Instance.new( "ParticleEmitter" , part) |
24 | particle.Name = "SPARKLE" |
25 | particle.Size = NumberSequence.new( 0.3 ) |
26 | particle.Transparency = NumberSequence.new( 0.1 ) |
27 | particle.LightEmission = 0 |
28 | particle.Color = 255 , 255 , 255 |
29 | particle.Acceleration = 0 , 0 , 0 |
30 | particle.Lifetime = NumberRange.new( 0.1 , number) |
31 | particle.Speed = NumberSequence.new( 1 ) |
Hope this helps !