Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------
- --Gureitabi Heima--
- ---------------------------------
- --By CKbackup (Sugarie Saffron)--
- ---------------------------------
- wait(1/60)
- Effects = { }
- local Player = game:GetService("Players").shaheed54
- local chara = Player.Character
- local Humanoid = chara:FindFirstChildOfClass("Humanoid")
- local LeftArm = chara["Left Arm"]
- local RightArm = chara["Right Arm"]
- local LeftLeg = chara["Left Leg"]
- local RightLeg = chara["Right Leg"]
- local Head = chara.Head
- local Torso = chara.Torso
- local RootPart = chara.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local attack = false
- local Anim = 'Idle'
- local attacktype = 1
- local delays = false
- local play = true
- local targetted = nil
- local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- local velocity = RootPart.Velocity.y
- local sine = 0
- local change = 1
- local doe = 0
- local Create = LoadLibrary("RbxUtility").Create
- Humanoid.WalkSpeed = 40
- Humanoid.Animator.Parent = nil
- chara.Animate.Parent = nil
- local pos = Vector3.new(0,0,-50)
- local newMotor = function(part0, part1, c0, c1)
- local w = Create('Motor'){
- Parent = part0,
- Part0 = part0,
- Part1 = part1,
- C0 = c0,
- C1 = c1,
- }
- return w
- end
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
- local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
- local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
- local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
- RootJoint.C1 = CFrame.new(0, 0, 0)
- RootJoint.C0 = CFrame.new(0, 0, 0)
- Torso.Neck.C1 = CFrame.new(0, 0, 0)
- Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
- local rarmc1 = RW.C1
- local larmc1 = LW.C1
- local rlegc1 = RH.C1
- local llegc1 = LH.C1
- local resetc1 = false
- function PlayAnimationFromTable(table, speed, bool)
- RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
- RW.C0 = clerp(RW.C0, table[3], speed)
- LW.C0 = clerp(LW.C0, table[4], speed)
- RH.C0 = clerp(RH.C0, table[5], speed)
- LH.C0 = clerp(LH.C0, table[6], speed)
- if bool == true then
- if resetc1 == false then
- resetc1 = true
- RootJoint.C1 = RootJoint.C1
- Torso.Neck.C1 = Torso.Neck.C1
- RW.C1 = rarmc1
- LW.C1 = larmc1
- RH.C1 = rlegc1
- LH.C1 = llegc1
- end
- end
- end
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 0.03333333333333
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- function so(id,par,pit,vol)
- local sou = Instance.new("Sound", par or workspace)
- if par == chara then
- sou.Parent = chara.Torso
- end
- sou.Volume = vol
- sou.Pitch = pit or 1
- sou.SoundId = "rbxassetid://" .. id
- sou.PlayOnRemove = true
- sou:Destroy()
- end
- function CamShake(par,magni,env,dur)
- for _, c in pairs(workspace:GetDescendants()) do
- local hum = c:FindFirstChildOfClass("Humanoid")
- if hum ~= nil and c:FindFirstChild("SHAKE")==nil then
- local head = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
- if head ~= nil then
- local targ = head.Position - par.Position
- local mag = targ.magnitude
- if magni >= mag then
- local sheiku = script:FindFirstChild("SHAKE"):Clone()
- sheiku.Parent = c
- sheiku:FindFirstChild("Env").Value = env
- sheiku:FindFirstChild("Dur").Value = dur
- sheiku.Disabled = false
- end
- end
- end
- end
- end
- local mus = Instance.new("Sound",Head)
- mus.Name = "mus"
- mus.SoundId = "rbxassetid://151357800"
- mus.Looped = true
- mus.Volume = 1
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- local ham = script:FindFirstChild("Heimah"):Clone()
- ham.Parent = chara
- ham:MoveTo(Torso.Position)
- local Handaru = ham:FindFirstChild("Handaru")
- local eks = ham:FindFirstChild("Aksuporodo")
- local tr = ham:FindFirstChild("Tureiru"):FindFirstChildOfClass("Trail")
- HWeld = New("ManualWeld",Handaru,"HWeld",{Part0 = Handaru,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 0.0166480057, 0.54573518, -0.837792277, -0.0512679853, 0.837272108, 0.544377625, 0.998546243, 0.0338891223, 0.0419176593),C1 = CFrame.new(-0.518520355, -0.540316582, -2.48241043, -0.24481903, 0.308874041, 0.919054091, 0.234554961, 0.938611865, -0.252965897, -0.940769732, 0.153637841, -0.302238047),})
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- function FindNearestTorso(Position, Distance, SinglePlayer)
- if SinglePlayer then
- return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
- end
- local List = {}
- for i, v in pairs(workspace:GetDescendants()) do
- if v:IsA("Model") then
- if v:findFirstChild("Head") then
- if v ~= chara then
- if (v.Head.Position - Position).magnitude <= Distance then
- table.insert(List, v)
- end
- end
- end
- end
- end
- return List
- end
- EffectModel = Create("Model"){
- Parent = chara,
- Name = "Effects",
- }
- function smek()
- attack = true
- tr.Enabled = true
- for i=0,1,.2 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-0.0611572266, 0, 0.0733299255, 0, 0, 1, 0, 1, 0, -1, 0, 0),
- CFrame.new(0.0733299255, 1.4999876, 0.0611572266, 0, 0, -1, 0, 1, 0, 1, 0, 0),
- CFrame.new(1.01986086, 0.818574727, -0.631517649, 0.557959199, -0.249869764, 0.791357517, 0.817175269, -0.000717598246, -0.576389015, 0.14459005, 0.968279183, 0.203786999),
- CFrame.new(-1.31499314, 0.736702383, -0.92832005, 0.281261981, -0.265419841, 0.922195315, 0.622862935, -0.680563629, -0.385843247, 0.730022967, 0.682924211, -0.0260964856),
- CFrame.new(0.500001073, -1.99999404, 7.15255737e-07, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
- CFrame.new(-0.5, -1.99999404, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
- }, .4, false)
- end
- Humanoid.WalkSpeed = 2
- so(1255794,Handaru,1.2,5)
- for i=0,1,.25 do
- swait()
- PlayAnimationFromTable({
- CFrame.new(-0.00577482395, -0.10000062, -0.0219224337, 0.342022002, 1.1920929e-07, -0.939694107, 6.73510385e-07, 0.999999881, -1.51299588e-07, 0.939692676, 6.66826963e-07, 0.342018038),
- CFrame.new(0.0225770473, 1.49998915, 0.00206720829, 0.342019916, -0.321393639, 0.883022428, 0, 0.939692736, 0.342019886, -0.939692736, -0.11697761, 0.321393609),
- CFrame.new(1.1054697, 0.14926374, -0.742685139, 0.195619792, -0.385802895, 0.901603639, 0.28954491, 0.901102543, 0.322766244, -0.936961412, 0.197915286, 0.287980705),
- CFrame.new(-0.96297735, -0.593610585, 0.103491321, -0.0833856016, -0.109562129, 0.990476191, 0.800586283, 0.584485948, 0.132052541, -0.593387306, 0.8039729, 0.0389761627),
- CFrame.new(1.14691079, -1.91282141, -3.82211965e-06, 0.766044855, -0.642787337, 2.68220901e-07, 0.642787218, 0.766044855, -2.80102472e-06, 1.54972076e-06, 2.35438347e-06, 1.00000012),
- CFrame.new(-0.5, -1.7999928, -0.400001526, 1, 0, -2.98023224e-08, 0, 1, 0, -2.98023224e-08, 0, 1),
- }, .4, false)
- end
- RootPart.Anchored = true
- CamShake(eks,30,1,.4)
- local exp = Instance.new("Explosion",chara)
- exp.BlastPressure = 700000
- exp.BlastRadius = 7
- exp.Visible = false
- exp.Position = eks.Position
- exp.Hit:connect(function(hit)
- if hit:IsDescendantOf(chara)==false then
- hit:BreakJoints()
- --local dude = hit.Parent
- --local hah = dude:FindFirstChildOfClass("Humanoid")
- --if hah then
- --dude:BreakJoints()
- --if hah.RigType == Enum.HumanoidRigType.R6 then
- --local raggy = script.RagdollScript:Clone()
- --raggy.Parent = dude
- --raggy.Disabled = false
- --elseif hah.RigType == Enum.HumanoidRigType.R15 then
- --local raggy = script.R15RagdollScript:Clone()
- --raggy.Parent = dude
- --raggy.Disabled = false
- --end
- --end
- end
- end)
- local b = Instance.new("Part",EffectModel)
- b.Anchored = true
- b.CanCollide = true
- b.Size = Vector3.new(1,1,1)
- b.CFrame = eks.CFrame
- b.BrickColor = BrickColor.new("White")
- b.Material = "Glass"
- b.Reflectance = 1
- local l = Instance.new("PointLight",b)
- l.Color = b.BrickColor.Color
- l.Brightness = 1
- l.Range = 0
- local bm = Instance.new("SpecialMesh",b)
- bm.Scale = Vector3.new(0,0,0)
- bm.MeshType = "Sphere"
- coroutine.wrap(function()
- for i=0,1,.1 do
- bm.Scale = Vector3.new(15*i,15*i,15*i)
- b.Transparency = i
- l.Range = 25*i
- l.Brightness = 1-1*i
- swait()
- end
- b:Destroy()
- end)()
- for a=1,12 do
- local b = Instance.new("Part",EffectModel)
- b.Anchored = true
- b.CanCollide = true
- b.Size = Vector3.new(1,1,1)
- b.CFrame = eks.CFrame * CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
- b.BrickColor = BrickColor.new("Bright blue")
- b.Material = "Neon"
- local bm = Instance.new("SpecialMesh",b)
- bm.Scale = Vector3.new(0,0,0)
- bm.MeshType = "Sphere"
- coroutine.wrap(function()
- for i=0,1,.1 do
- bm.Scale = Vector3.new(2*i,30*i,2*i)
- b.Transparency = i
- swait()
- end
- b:Destroy()
- end)()
- end
- swait(10)
- RootPart.Anchored = false
- Humanoid.WalkSpeed = 40
- tr.Enabled = false
- attack = false
- end
- local mousedownevent = script:WaitForChild("MouseDownEvent")
- local mouseupevent = script:WaitForChild("MouseUpEvent")
- local keydownevent = script:WaitForChild("KeyDownEvent")
- local keyupevent = script:WaitForChild("KeyUpEvent")
- mousedownevent.OnServerEvent:connect(function(ply)
- if ply == Player then
- if attack == false then
- smek()
- end
- end
- end)
- local sprintt = 0
- keydownevent.OnServerEvent:connect(function(ply,k)
- if ply == Player then
- k = k:lower()
- if k=='m' then
- if mus.IsPlaying == true then
- mus:Stop()
- elseif mus.IsPaused == true then
- mus:Play()
- end
- end
- end
- end)
- coroutine.wrap(function()
- while 1 do
- swait()
- if doe <= 360 then
- doe = doe + 2
- else
- doe = 0
- end
- end
- end)()
- while true do
- swait()
- for i, v in pairs(chara:GetChildren()) do
- if v:IsA("Part") then
- v.Material = "SmoothPlastic"
- elseif v:IsA("Accessory") then
- v:WaitForChild("Handle").Material = "SmoothPlastic"
- end
- end
- while true do
- swait()
- if sprintt >= 1 then
- sprintt = sprintt - 1
- end
- if Head:FindFirstChild("mus")==nil then
- mus = Instance.new("Sound",Head)
- mus.Name = "mus"
- mus.SoundId = "rbxassetid://151357800"
- mus.Looped = true
- mus.Volume = 1
- mus:Play()
- end
- if chara:FindFirstChild("FFProt")==nil then
- local ff = Instance.new("ForceField",chara)
- ff.Name = "FFProt"
- ff.Visible = false
- end
- Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
- velocity = RootPart.Velocity.y
- sine = sine + change
- local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
- if RootPart.Velocity.y > 1 and hit == nil then
- Anim = "Jump"
- if attack == false then
- PlayAnimationFromTable({
- CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
- CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
- CFrame.new(0.872864962, 0.0900117457, -0.898430824, 0.441447198, 0.221826926, 0.869435072, 0.570382118, 0.678621829, -0.462749064, -0.692667663, 0.700189471, 0.173049659),
- CFrame.new(-1.3030386, 0.346407592, -0.0347369909, 0.492405355, 0.173644722, 0.852868438, 0.866024792, -3.09714693e-07, -0.500001192, -0.086822331, 0.984808385, -0.15038079),
- CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
- CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
- }, .3, false)
- end
- elseif RootPart.Velocity.y < -1 and hit == nil then
- Anim = "Fall"
- if attack == false then
- PlayAnimationFromTable({
- CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
- CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
- CFrame.new(0.872864962, 0.0900117457, -0.898430824, 0.441447198, 0.221826926, 0.869435072, 0.570382118, 0.678621829, -0.462749064, -0.692667663, 0.700189471, 0.173049659),
- CFrame.new(-1.3030386, 0.346407592, -0.0347369909, 0.492405355, 0.173644722, 0.852868438, 0.866024792, -3.09714693e-07, -0.500001192, -0.086822331, 0.984808385, -0.15038079),
- CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
- CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
- }, .3, false)
- end
- elseif Torsovelocity < 1 and hit ~= nil then
- Anim = "Idle"
- if attack == false then
- change = 1
- PlayAnimationFromTable({
- CFrame.new(-0.0134558445, -8.28886648e-09, -0.0177793745, 0.642786264, 5.66244125e-07, 0.76604414, 4.07994918e-07, 0.999999702, 4.74639165e-07, -0.766045034, 4.47034836e-08, 0.64278692) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
- CFrame.new(-0.00497092307, 1.49998438, 0.0217448026, 0.656120956, 0.0193826407, -0.754406869, 0.171009988, 0.969846368, 0.173648238, 0.735024512, -0.242945313, 0.633021891),
- CFrame.new(0.872864962, 0.0900117457, -0.898430824, 0.441447198, 0.221826926, 0.869435072, 0.570382118, 0.678621829, -0.462749064, -0.692667663, 0.700189471, 0.173049659),
- CFrame.new(-1.3030386, 0.346407592, -0.0347369909, 0.492405355, 0.173644722, 0.852868438, 0.866024792, -3.09714693e-07, -0.500001192, -0.086822331, 0.984808385, -0.15038079),
- CFrame.new(0.499998957, -1.99999499, 1.93715096e-06, 0.766043782, 0, -0.64278847, 0, 1, 0, 0.64278847, 0, 0.766043782) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
- CFrame.new(-0.500001431, -1.99999297, -1.93715096e-06, 0.766044974, 0, 0.64278698, 0, 1, 0, -0.64278698, 0, 0.766044974) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
- }, .3, false)
- end
- elseif Torsovelocity > 2 and hit ~= nil then
- Anim = "Walk"
- if attack == false then
- PlayAnimationFromTable({
- CFrame.new(-2.4138464e-07, 0.123327732, -0.188363045, 1, -4.38293796e-07, 1.20420327e-06, 0, 0.939692736, 0.342019886, -1.28148622e-06, -0.342019916, 0.939692736) * CFrame.new(0, 0- .08 * math.cos((sine/2.5)), 0),
- CFrame.new(0, 1.41422474, 0.0894482136, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
- CFrame.new(0.872864962, 0.0900117457, -0.898430824, 0.441447198, 0.221826926, 0.869435072, 0.570382118, 0.678621829, -0.462749064, -0.692667663, 0.700189471, 0.173049659),
- CFrame.new(-1.3030386, 0.346407592, -0.0347369909, 0.492405355, 0.173644722, 0.852868438, 0.866024792, -3.09714693e-07, -0.500001192, -0.086822331, 0.984808385, -0.15038079),
- CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0),
- CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0),
- }, .3, false)
- end
- end
- if 0 < #Effects then
- for e = 1, #Effects do
- if Effects[e] ~= nil then
- local Thing = Effects[e]
- if Thing ~= nil then
- local Part = Thing[1]
- local Mode = Thing[2]
- local Delay = Thing[3]
- local IncX = Thing[4]
- local IncY = Thing[5]
- local IncZ = Thing[6]
- if Thing[2] == "Shoot" then
- local Look = Thing[1]
- local move = 30
- if Thing[8] == 3 then
- move = 10
- end
- local hit, pos = rayCast(Thing[4], Thing[1], move, m)
- if Thing[10] ~= nil then
- da = pos
- cf2 = CFrame.new(Thing[4], Thing[10].Position)
- cfa = CFrame.new(Thing[4], pos)
- tehCF = cfa:lerp(cf2, 0.2)
- Thing[1] = tehCF.lookVector
- end
- local mag = (Thing[4] - pos).magnitude
- Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2)
- if Thing[8] == 2 then
- Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1)
- end
- Thing[4] = Thing[4] + Look * move
- Thing[3] = Thing[3] - 1
- if 2 < Thing[5] then
- Thing[5] = Thing[5] - 0.3
- Thing[6] = Thing[6] - 0.3
- end
- if hit ~= nil then
- Thing[3] = 0
- if Thing[8] == 1 or Thing[8] == 3 then
- Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
- else
- if Thing[8] == 2 then
- Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1)
- if (hit.Parent:FindFirstChildOfClass("Humanoid")) ~= nil or (hit.Parent.Parent:FindFirstChildOfClass("Humanoid")) ~= nil then
- ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
- ref.Anchored = true
- ref.CFrame = CFrame.new(pos)
- CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
- game:GetService("Debris"):AddItem(ref, 0.2)
- Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2)
- Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1)
- MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1)
- end
- end
- end
- ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
- ref.Anchored = true
- ref.CFrame = CFrame.new(pos)
- Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07)
- game:GetService("Debris"):AddItem(ref, 1)
- end
- if Thing[3] <= 0 then
- table.remove(Effects, e)
- end
- end
- do
- do
- if Thing[2] == "FireWave" then
- if Thing[3] <= Thing[4] then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0)
- Thing[3] = Thing[3] + 1
- Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5])
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then
- if Thing[1].Transparency <= 1 then
- if Thing[2] == "Block1" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Block2" then
- Thing[1].CFrame = Thing[1].CFrame
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Fire" then
- Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0)
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Cylinder" then
- Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Blood" then
- Mesh = Thing[7]
- Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0)
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Elec" then
- Mesh = Thing[10]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Disappear" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- else
- if Thing[2] == "Shatter" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
- Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
- Thing[6] = Thing[6] + Thing[5]
- end
- end
- end
- end
- end
- end
- end
- end
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement