Advertisement
JRKPastesBins

Untitled

Sep 8th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. maincol = "New Yeller"
  2.  
  3. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  4. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  5. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  6. local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  7. return TEff
  8. end
  9.  
  10.  
  11. mouse.Button1Down = CreateTrailObj(chara["Right Arm"],"New Yeller","New Yeller",0,0)
  12.  
  13. mouse.Button1Down = CreateTrailObj(chara["Left Arm"],"New Yeller","New Yeller",0,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement