Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local emit = function(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang1,sprdang2,locked2part)
- emm = it("ParticleEmitter",parent)
- emm.Texture = tex
- emm.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)})
- emm.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)})
- emm.LightEmission = lightem
- emm.EmissionDirection = emdir
- emm.Lifetime = NumberRange.new(lif)
- emm.Rate = rate
- emm.Speed = NumberRange.new(speed)
- emm.RotSpeed = NumberRange.new(rotspeed)
- emm.SpreadAngle = Vector2.new(sprdang1,sprdang2)
- emm.LockedToPart = locked2part
- return(emm)
- end
- righteyebrickcolor = "Dark indigo"
- local reye = Instance.new("Part", char)
- reye.CanCollide = false
- reye.BrickColor = BrickColor.new(righteyebrickcolor)
- reye.Material = "Neon"
- reye.Size = Vector3.new(.15,.15,.15)
- weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0))
- m1 = Instance.new("SpecialMesh", reye)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(0.7,1.3,0.9)
- reye.Locked = true
- reye.Name = "re"
- ShadowHead = New("Part",char,"ShadowHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Mesh = New("SpecialMesh",ShadowHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
- Weld = New("Weld",ShadowHead,"mot",{Part0 = ShadowHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- emit(reye,"rbxasset://textures/particles/sparkles_main.dds",Color3.new(.1,.1,1),Color3.new(0,0,0),0.1,0.1,1,"Top",0.5,5000,0.25,200,0,360,true)
- mouse.KeyDown:connect(function(key)
- if key == "]" then
- function Flash(part)
- local m = Instance.new("Part", char)
- m.CanCollide = false
- m.BrickColor = BrickColor.new(righteyebrickcolor)
- m.Anchored = true
- m.Material = "Neon"
- m.Size = Vector3.new(.15,.15,.15)
- m1 = Instance.new("SpecialMesh", m)
- m1.MeshType = "Sphere"
- m1.Scale = Vector3.new(0.9,6.5,0.9)
- local m2 = Instance.new("Part", char)
- m2.CanCollide = false
- m2.BrickColor = BrickColor.new(righteyebrickcolor)
- m2.Anchored = true
- m2.Material = "Neon"
- m2.Size = Vector3.new(.15,.15,.15)
- m21 = Instance.new("SpecialMesh", m2)
- m21.MeshType = "Sphere"
- m21.Scale = Vector3.new(0.9,6.5,0.9)
- CFuncs.Sound.Create("341336274",char,10,1)
- for i = 1,10 do
- wait()
- m.CFrame = part.CFrame * CFrame.new(0,0,-0.1)
- m2.CFrame = part.CFrame * CFrame.new(0,0,-0.1) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(90))
- m1.Scale = m1.Scale + Vector3.new(-0.1,0.4,-.1)
- m21.Scale = m1.Scale + Vector3.new(-0.1,0.4,-.1)
- end
- m:Destroy()
- m2:Destroy()
- end
- Flash(reye)
- end
- end)
- mouse.Button1Down:connect(function()
- if attack == false and attacktype == 1 then
- attacktype = 2
- attackone()
- elseif attack == false and attacktype == 2 then
- attacktype = 3
- attacktwo()
- elseif attack == false and attacktype == 3 then
- attacktype = 4
- attackthree()
- elseif attack == false and attacktype == 4 then
- attacktype = 1
- attackfour()
- end
- end)
- local animpose = "Idle"
- local lastanimpose = "Idle"
- local sine = 0
- local change = 1
- local val = 0
- local ffing = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement