SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | do | |
| 4 | print("FE Compatibility code by Mokiros")
| |
| 5 | script.Parent = Player.Character | |
| 6 | ||
| 7 | --RemoteEvent for communicating | |
| 8 | local Event = Instance.new("RemoteEvent")
| |
| 9 | Event.Name = "UserInput_Event" | |
| 10 | ||
| 11 | --Fake event to make stuff like Mouse.KeyDown work | |
| 12 | local function fakeEvent() | |
| 13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 14 | - | local Player = game.Players.localPlayer |
| 14 | + | t.connect = t.Connect |
| 15 | return t | |
| 16 | end | |
| 17 | - | local Mouse = Player:GetMouse() |
| 17 | + | |
| 18 | --Creating fake input objects with fake variables | |
| 19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 23 | end} | |
| 24 | --Merged 2 functions into one by checking amount of arguments | |
| 25 | CAS.UnbindAction = CAS.BindAction | |
| 26 | ||
| 27 | --This function will trigger the events that have been :Connect()'ed | |
| 28 | local function te(self,ev,...) | |
| 29 | local t = m[ev] | |
| 30 | if t and t._fakeEvent and t.Function then | |
| 31 | t.Function(...) | |
| 32 | end | |
| 33 | end | |
| 34 | m.TrigEvent = te | |
| 35 | UIS.TrigEvent = te | |
| 36 | ||
| 37 | Event.OnServerEvent:Connect(function(plr,io) | |
| 38 | if plr~=Player then return end | |
| 39 | if io.isMouse then | |
| 40 | m.Target = io.Target | |
| 41 | m.Hit = io.Hit | |
| 42 | else | |
| 43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 46 | end | |
| 47 | for _,t in pairs(CAS.Actions) do | |
| 48 | for _,k in pairs(t.Keys) do | |
| 49 | if k==io.KeyCode then | |
| 50 | t.Function(t.Name,io.UserInputState,io) | |
| 51 | end | |
| 52 | end | |
| 53 | end | |
| 54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 56 | end | |
| 57 | end) | |
| 58 | Event.Parent = NLS([==[ | |
| 59 | local Player = game:GetService("Players").LocalPlayer
| |
| 60 | local Event = script:WaitForChild("UserInput_Event")
| |
| 61 | ||
| 62 | local UIS = game:GetService("UserInputService")
| |
| 63 | local input = function(io,a) | |
| 64 | if a then return end | |
| 65 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 67 | end | |
| 68 | UIS.InputBegan:Connect(input) | |
| 69 | UIS.InputEnded:Connect(input) | |
| 70 | ||
| 71 | local Mouse = Player:GetMouse() | |
| 72 | local h,t | |
| 73 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 74 | --If player is not moving their mouse, client won't fire events | |
| 75 | while wait(1/30) do | |
| 76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 77 | h,t=Mouse.Hit,Mouse.Target | |
| 78 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 79 | end | |
| 80 | end]==],Player.Character) | |
| 81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 82 | end | |
| 83 | ||
| 84 | --[[ | |
| 85 | THE MURDERER | |
| 86 | Created by Quil_Cyndaquil (ROBLOX) | |
| 87 | MintyLatios (V3rmillion) | |
| 88 | Minty Latios#1938 | |
| 89 | ||
| 90 | Credit to CKbackup for the knife | |
| 91 | Credit to Rufus14 for the ragdolls | |
| 92 | ||
| 93 | ||
| 94 | --]] | |
| 95 | wait(1 / 60) | |
| 96 | Effects = { }
| |
| 97 | local Player = owner | |
| 98 | local Character = Player.Character | |
| 99 | local Humanoid = Character.Humanoid | |
| 100 | local LeftArm = Character["Left Arm"] | |
| 101 | local RightArm = Character["Right Arm"] | |
| 102 | local LeftLeg = Character["Left Leg"] | |
| 103 | local RightLeg = Character["Right Leg"] | |
| 104 | local Head = Character.Head | |
| 105 | local Torso = Character.Torso | |
| 106 | local Camera = game.Workspace.CurrentCamera | |
| 107 | local RootPart = Character.HumanoidRootPart | |
| 108 | local RootJoint = RootPart.RootJoint | |
| 109 | local attack = false | |
| 110 | local Anim = 'Idle' | |
| 111 | local Lighty = game:GetService"Lighting" | |
| 112 | local attacktype = 1 | |
| 113 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 114 | local velocity = RootPart.Velocity.y | |
| 115 | local sine = 0 | |
| 116 | local change = 1 | |
| 117 | local Create = LoadLibrary("RbxUtility").Create
| |
| 118 | ||
| 119 | ||
| 120 | local chara = Character | |
| 121 | local m = Create("Model"){
| |
| 122 | Parent = Character, | |
| 123 | Name = "WeaponModel", | |
| 124 | } | |
| 125 | ||
| 126 | Humanoid.Animator.Parent = nil | |
| 127 | Character.Animate.Parent = nil | |
| 128 | ||
| 129 | Humanoid.WalkSpeed = 8 | |
| 130 | ||
| 131 | ||
| 132 | local newMotor = function(part0, part1, c0, c1) | |
| 133 | local w = Create('Motor'){
| |
| 134 | Parent = part0, | |
| 135 | Part0 = part0, | |
| 136 | Part1 = part1, | |
| 137 | C0 = c0, | |
| 138 | C1 = c1, | |
| 139 | } | |
| 140 | return w | |
| 141 | end | |
| 142 | ||
| 143 | function clerp(a, b, t) | |
| 144 | return a:lerp(b, t) | |
| 145 | end | |
| 146 | ||
| 147 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 148 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 149 | ||
| 150 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 151 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
| 152 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 153 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
| 154 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
| 155 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
| 156 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
| 157 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 158 | ||
| 159 | local rarmc1 = RW.C1 | |
| 160 | local larmc1 = LW.C1 | |
| 161 | local rlegc1 = RH.C1 | |
| 162 | local llegc1 = LH.C1 | |
| 163 | ||
| 164 | local resetc1 = false | |
| 165 | ||
| 166 | function PlayAnimationFromTable(table, speed, bool) | |
| 167 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
| 168 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
| 169 | RW.C0 = clerp(RW.C0, table[3], speed) | |
| 170 | LW.C0 = clerp(LW.C0, table[4], speed) | |
| 171 | RH.C0 = clerp(RH.C0, table[5], speed) | |
| 172 | LH.C0 = clerp(LH.C0, table[6], speed) | |
| 173 | if bool == true then | |
| 174 | if resetc1 == false then | |
| 175 | resetc1 = true | |
| 176 | RootJoint.C1 = RootJoint.C1 | |
| 177 | Torso.Neck.C1 = Torso.Neck.C1 | |
| 178 | RW.C1 = rarmc1 | |
| 179 | LW.C1 = larmc1 | |
| 180 | RH.C1 = rlegc1 | |
| 181 | LH.C1 = llegc1 | |
| 182 | end | |
| 183 | end | |
| 184 | end | |
| 185 | ||
| 186 | ArtificialHB = Create("BindableEvent", script){
| |
| 187 | Parent = script, | |
| 188 | Name = "Heartbeat", | |
| 189 | } | |
| 190 | ||
| 191 | script:WaitForChild("Heartbeat")
| |
| 192 | ||
| 193 | frame = 1 / 30 | |
| 194 | tf = 0 | |
| 195 | allowframeloss = false | |
| 196 | tossremainder = false | |
| 197 | lastframe = tick() | |
| 198 | script.Heartbeat:Fire() | |
| 199 | ||
| 200 | ||
| 201 | New = function(Object, Parent, Name, Data) | |
| 202 | local Object = Instance.new(Object) | |
| 203 | for Index, Value in pairs(Data or {}) do
| |
| 204 | Object[Index] = Value | |
| 205 | end | |
| 206 | Object.Parent = Parent | |
| 207 | Object.Name = Name | |
| 208 | return Object | |
| 209 | end | |
| 210 | ||
| 211 | if chara.Head:FindFirstChild"face" then | |
| 212 | chara.Head.face.Texture = "rbxassetid://180660043" | |
| 213 | end | |
| 214 | --Credit to Psychopath for this shit | |
| 215 | ||
| 216 | Knifu = New("Model",chara,"Knifu",{})
| |
| 217 | Handle = New("Part",Knifu,"Handle",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.600000024, 0.400000006),CFrame = CFrame.new(54.1000023, 0.6000067, 26.4000034, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 218 | Mesh = New("CylinderMesh",Handle,"Mesh",{})
| |
| 219 | KWeld = New("Weld",Handle,"Weld",{Part0 = Handle,Part1 = chara["Right Arm"],C0=CFrame.new(0,-.25,1)*CFrame.Angles(math.rad(-90),0,math.rad(180))})
| |
| 220 | Hitbox = New("Part",Knifu,"Hitbox",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 1.4000001, 0.400000006),CFrame = CFrame.new(54.1000023, 0.6000067, 27.6000042, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 221 | Weld = New("ManualWeld",Hitbox,"Weld",{Part0 = Hitbox,Part1 = Handle,C1 = CFrame.new(0, 1.20000052, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 222 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(54.1000023, 0.6000067, 26.2000046, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 223 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.20000005, 0.949999988, 1.20000005),})
| |
| 224 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, -0.199999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 225 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(54.1000023, 0.6000067, 26.8000031, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 226 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1.20000005, 1.5),})
| |
| 227 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 0.400000334, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 228 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(54.1000023, 0.800005555, 26.8000031, -1, 0, 0, 0, 0, -1, 0, -1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 229 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 1.20000005),MeshType = Enum.MeshType.Wedge,})
| |
| 230 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.400000095, 0.199998856, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 231 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000036),CFrame = CFrame.new(54.1000023, 0.400004029, 26.8000031, 1, 0, 0, 0, 0, 1, 0, -1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 232 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 1, 1.20000005),MeshType = Enum.MeshType.Wedge,})
| |
| 233 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 0.400000095, -0.20000267, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 234 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.600000024, 0.200000003),CFrame = CFrame.new(54.1000023, 0.500006318, 27.2000046, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 235 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),})
| |
| 236 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 0.800000429, -0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 237 | BloodPart = New("Part",Knifu,"BloodPart",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.399999946, 0.400000036),CFrame = CFrame.new(54.1000023, 0.600008607, 28.1000042, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),})
| |
| 238 | Mesh = New("SpecialMesh",BloodPart,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),MeshType = Enum.MeshType.Wedge,})
| |
| 239 | Weld = New("ManualWeld",BloodPart,"Weld",{Part0 = BloodPart,Part1 = Handle,C1 = CFrame.new(0, 1.70000005, 1.90734863e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 240 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700007081, 27.8000031, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 241 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),})
| |
| 242 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 1.40000057, 0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 243 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.0000038, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 244 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 245 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.599999905, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 246 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.0000038, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 247 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 248 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.599999905, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 249 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.2000027, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 250 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 251 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.799999952, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 252 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.2000027, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 253 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 254 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.799999952, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 255 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.4000034, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 256 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 257 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 258 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.4000034, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 259 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 260 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 261 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.6000042, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 262 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 263 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.20000005, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 264 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700008988, 27.6000042, 1, 0, 0, 0, 0, -1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 265 | Mesh = New("SpecialMesh",Part,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 266 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.20000005, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 267 | Part = New("Part",Knifu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 1, 0.200000003),CFrame = CFrame.new(54.1000023, 0.700007081, 27.4000034, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 268 | Mesh = New("BlockMesh",Part,"Mesh",{Offset = Vector3.new(0, 0, -0.0500000007),Scale = Vector3.new(0.400000006, 1, 0.5),})
| |
| 269 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 1.00000048, 0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 270 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(54.1000023, 0.6000067, 26.4000034, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 271 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.20000005, 0.949999988, 1.20000005),})
| |
| 272 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 2.38418579e-07, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 273 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(54.1000023, 0.6000067, 26.6000042, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 274 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.20000005, 0.949999988, 1.20000005),})
| |
| 275 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 0.200000286, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 276 | Blood2Part = New("Part",Knifu,"Blood2Part",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.400000036, 0.200000003),CFrame = CFrame.new(54.1000023, 0.500006318, 27.7000046, -1, 0, 0, 0, 0, 1, 0, 1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),})
| |
| 277 | Mesh = New("BlockMesh",Blood2Part,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),})
| |
| 278 | Weld = New("ManualWeld",Blood2Part,"Weld",{Part0 = Blood2Part,Part1 = Handle,C1 = CFrame.new(0, 1.30000043, -0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 279 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000033),CFrame = CFrame.new(54.1000023, 0.700008988, 27.8000031, -1, 0, 0, 0, 0, -1, 0, -1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),})
| |
| 280 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),MeshType = Enum.MeshType.Wedge,})
| |
| 281 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.4000001, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 282 | Part = New("Part",Knifu,"Part",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000033),CFrame = CFrame.new(54.1000023, 0.500008225, 27.4000034, -1, 0, 0, 0, 0, -1, 0, -1, 0),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),})
| |
| 283 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),MeshType = Enum.MeshType.Wedge,})
| |
| 284 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 1, -0.0999984741, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 285 | ||
| 286 | local p1mit = Instance.new("ParticleEmitter",Hitbox)
| |
| 287 | p1mit.Texture = "rbxasset://textures/particles/fire_main.dds" | |
| 288 | p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(.6,0,0)),ColorSequenceKeypoint.new(1,Color3.new(.6,0,0))})
| |
| 289 | p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
| |
| 290 | p1mit.Lifetime = NumberRange.new(2) | |
| 291 | p1mit.Rate = 100 | |
| 292 | p1mit.Enabled = false | |
| 293 | p1mit.Acceleration = Vector3.new(0,-5,0) | |
| 294 | p1mit.Rotation = NumberRange.new(0,359) | |
| 295 | p1mit.Speed = NumberRange.new(0) | |
| 296 | local p2mit = Instance.new("ParticleEmitter",BloodPart)
| |
| 297 | p2mit.Texture = "http://www.roblox.com/asset/?id=243132757" | |
| 298 | p2mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(.6,0,0)),ColorSequenceKeypoint.new(1,Color3.new(.6,0,0))})
| |
| 299 | p2mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.1),NumberSequenceKeypoint.new(1,.1)})
| |
| 300 | p2mit.Lifetime = NumberRange.new(1) | |
| 301 | p2mit.Rate = 10 | |
| 302 | p2mit.Acceleration = Vector3.new(0,-10,0) | |
| 303 | p2mit.Speed = NumberRange.new(0) | |
| 304 | local p3mit = p2mit:Clone() | |
| 305 | p3mit.Parent = Blood2Part | |
| 306 | ||
| 307 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 308 | tf = tf + s | |
| 309 | if tf >= frame then | |
| 310 | if allowframeloss then | |
| 311 | script.Heartbeat:Fire() | |
| 312 | lastframe = tick() | |
| 313 | else | |
| 314 | for i = 1, math.floor(tf / frame) do | |
| 315 | script.Heartbeat:Fire() | |
| 316 | end | |
| 317 | lastframe = tick() | |
| 318 | end | |
| 319 | if tossremainder then | |
| 320 | tf = 0 | |
| 321 | else | |
| 322 | tf = tf - frame * math.floor(tf / frame) | |
| 323 | end | |
| 324 | end | |
| 325 | end) | |
| 326 | ||
| 327 | function swait(num) | |
| 328 | if num == 0 or num == nil then | |
| 329 | ArtificialHB.Event:wait() | |
| 330 | else | |
| 331 | for i = 0, num do | |
| 332 | ArtificialHB.Event:wait() | |
| 333 | end | |
| 334 | end | |
| 335 | end | |
| 336 | ||
| 337 | function RemoveOutlines(part) | |
| 338 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 339 | end | |
| 340 | ||
| 341 | ||
| 342 | local txt = Instance.new("BillboardGui", chara)
| |
| 343 | txt.Adornee = chara.Head | |
| 344 | txt.Name = "Nametag" | |
| 345 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 346 | txt.StudsOffset = Vector3.new(-9, 6, 0) | |
| 347 | local text = Instance.new("TextLabel", txt)
| |
| 348 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 349 | text.TextSize = 24 | |
| 350 | text.Font = Enum.Font.Cartoon | |
| 351 | text.TextScaled = false | |
| 352 | text.BackgroundTransparency = 1 | |
| 353 | text.TextColor3 = Color3.new(1,1,1) | |
| 354 | text.TextStrokeTransparency = 0 | |
| 355 | text.TextStrokeColor3 = Color3.new(1,0,0) | |
| 356 | text.Text = "The Murderer" | |
| 357 | ||
| 358 | function chat(...) | |
| 359 | local txxt = {...}
| |
| 360 | local ch = coroutine.wrap(function() | |
| 361 | if chara:FindFirstChild("Chatt")~= nil then
| |
| 362 | Character:FindFirstChild("Chatt"):destroy()
| |
| 363 | end | |
| 364 | local txt = Instance.new("BillboardGui", chara)
| |
| 365 | txt.Adornee = chara.Head | |
| 366 | txt.Name = "Chatt" | |
| 367 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 368 | txt.StudsOffset = Vector3.new(-9, 7, 0) | |
| 369 | local text = Instance.new("TextLabel", txt)
| |
| 370 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 371 | text.TextSize = 24 | |
| 372 | text.Font = Enum.Font.Cartoon | |
| 373 | text.TextScaled = false | |
| 374 | text.BackgroundTransparency = 1 | |
| 375 | text.TextColor3 = Color3.new(0,0,0) | |
| 376 | text.TextStrokeTransparency = 0 | |
| 377 | text.TextStrokeColor3 = Color3.new(1,0,0) | |
| 378 | text.Text = "" | |
| 379 | txxt = table.concat(txxt,"\t") | |
| 380 | for i = 1, #txxt do | |
| 381 | text.Text = txxt:sub(1,i) | |
| 382 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=565939471", Character, .6, .8)
| |
| 383 | wait() | |
| 384 | end | |
| 385 | wait(2) | |
| 386 | for trans = 0,1,.1 do | |
| 387 | text.TextTransparency = trans | |
| 388 | text.TextStrokeTransparency = trans | |
| 389 | wait() | |
| 390 | end | |
| 391 | wait() | |
| 392 | txt:destroy() | |
| 393 | end) | |
| 394 | ||
| 395 | ch(...) | |
| 396 | end | |
| 397 | Player.Chatted:connect(chat) | |
| 398 | CFuncs = {
| |
| 399 | ["Part"] = {
| |
| 400 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 401 | local Part = Create("Part"){
| |
| 402 | Parent = Parent, | |
| 403 | Reflectance = Reflectance, | |
| 404 | Transparency = Transparency, | |
| 405 | CanCollide = false, | |
| 406 | Locked = true, | |
| 407 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 408 | Name = Name, | |
| 409 | Size = Size, | |
| 410 | Material = Material, | |
| 411 | } | |
| 412 | RemoveOutlines(Part) | |
| 413 | return Part | |
| 414 | end; | |
| 415 | }; | |
| 416 | ||
| 417 | ["Mesh"] = {
| |
| 418 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 419 | local Msh = Create(Mesh){
| |
| 420 | Parent = Part, | |
| 421 | Offset = OffSet, | |
| 422 | Scale = Scale, | |
| 423 | } | |
| 424 | if Mesh == "SpecialMesh" then | |
| 425 | Msh.MeshType = MeshType | |
| 426 | Msh.MeshId = MeshId | |
| 427 | end | |
| 428 | return Msh | |
| 429 | end; | |
| 430 | }; | |
| 431 | ||
| 432 | ["Mesh"] = {
| |
| 433 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 434 | local Msh = Create(Mesh){
| |
| 435 | Parent = Part, | |
| 436 | Offset = OffSet, | |
| 437 | Scale = Scale, | |
| 438 | } | |
| 439 | if Mesh == "SpecialMesh" then | |
| 440 | Msh.MeshType = MeshType | |
| 441 | Msh.MeshId = MeshId | |
| 442 | end | |
| 443 | return Msh | |
| 444 | end; | |
| 445 | }; | |
| 446 | ||
| 447 | ["Weld"] = {
| |
| 448 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 449 | local Weld = Create("Weld"){
| |
| 450 | Parent = Parent, | |
| 451 | Part0 = Part0, | |
| 452 | Part1 = Part1, | |
| 453 | C0 = C0, | |
| 454 | C1 = C1, | |
| 455 | } | |
| 456 | return Weld | |
| 457 | end; | |
| 458 | }; | |
| 459 | ||
| 460 | ["Sound"] = {
| |
| 461 | Create = function(id, par, vol, pit) | |
| 462 | coroutine.resume(coroutine.create(function() | |
| 463 | local S = Create("Sound"){
| |
| 464 | Volume = vol, | |
| 465 | Pitch = pit or 1, | |
| 466 | SoundId = id, | |
| 467 | Parent = par or workspace, | |
| 468 | } | |
| 469 | wait() | |
| 470 | S:play() | |
| 471 | game:GetService("Debris"):AddItem(S, 6)
| |
| 472 | end)) | |
| 473 | end; | |
| 474 | }; | |
| 475 | ||
| 476 | ["ParticleEmitter"] = {
| |
| 477 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 478 | local fp = Create("ParticleEmitter"){
| |
| 479 | Parent = Parent, | |
| 480 | Color = ColorSequence.new(Color1, Color2), | |
| 481 | LightEmission = LightEmission, | |
| 482 | Size = Size, | |
| 483 | Texture = Texture, | |
| 484 | Transparency = Transparency, | |
| 485 | ZOffset = ZOffset, | |
| 486 | Acceleration = Accel, | |
| 487 | Drag = Drag, | |
| 488 | LockedToPart = LockedToPart, | |
| 489 | VelocityInheritance = VelocityInheritance, | |
| 490 | EmissionDirection = EmissionDirection, | |
| 491 | Enabled = Enabled, | |
| 492 | Lifetime = LifeTime, | |
| 493 | - | Value = game:service("Players").LocalPlayer,
|
| 493 | + | |
| 494 | Rotation = Rotation, | |
| 495 | RotSpeed = RotSpeed, | |
| 496 | Speed = Speed, | |
| 497 | VelocitySpread = VelocitySpread, | |
| 498 | } | |
| 499 | return fp | |
| 500 | end; | |
| 501 | }; | |
| 502 | ||
| 503 | CreateTemplate = {
| |
| 504 | ||
| 505 | }; | |
| 506 | } | |
| 507 | ||
| 508 | function rayCast(Position, Direction, Range, Ignore) | |
| 509 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 510 | end | |
| 511 | ||
| 512 | ||
| 513 | FindNearestTorso = function(pos) | |
| 514 | local list = (game.Workspace:children()) | |
| 515 | local torso = nil | |
| 516 | local dist = 1000 | |
| 517 | local temp, human, temp2 = nil, nil, nil | |
| 518 | for x = 1, #list do | |
| 519 | temp2 = list[x] | |
| 520 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
| 521 | temp = temp2:findFirstChild("Torso")
| |
| 522 | human = temp2:findFirstChild("Humanoid")
| |
| 523 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
| 524 | local dohit = true | |
| 525 | if dohit == true then | |
| 526 | torso = temp | |
| 527 | dist = (temp.Position - pos).magnitude | |
| 528 | end | |
| 529 | end | |
| 530 | end | |
| 531 | end | |
| 532 | return torso, dist | |
| 533 | end | |
| 534 | ||
| 535 | function FindNearestTorsos(Position, Distance, SinglePlayer) | |
| 536 | if SinglePlayer then | |
| 537 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
| 538 | end | |
| 539 | local List = {}
| |
| 540 | for i, v in pairs(workspace:GetChildren()) do | |
| 541 | if v:IsA("Model") then
| |
| 542 | if v:findFirstChild("Torso") then
| |
| 543 | if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
| |
| 544 | if v ~= Character then | |
| 545 | if (v.Torso.Position - Position).magnitude <= Distance then | |
| 546 | table.insert(List, {v,(v.Torso.Position - Position).magnitude})
| |
| 547 | end | |
| 548 | end | |
| 549 | end | |
| 550 | end | |
| 551 | end | |
| 552 | end | |
| 553 | return List | |
| 554 | end | |
| 555 | ||
| 556 | ||
| 557 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 558 | if hit.Parent == nil then | |
| 559 | return | |
| 560 | end | |
| 561 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 562 | for _, v in pairs(hit.Parent:children()) do | |
| 563 | if v:IsA("Humanoid") then
| |
| 564 | h = v | |
| 565 | end | |
| 566 | end | |
| 567 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 568 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then
| |
| 569 | if hit.Parent.DebounceHit.Value == true then | |
| 570 | return | |
| 571 | end | |
| 572 | end | |
| 573 | local c = Create("ObjectValue"){
| |
| 574 | Name = "creator", | |
| 575 | Value = owner | |
| 576 | Parent = h, | |
| 577 | } | |
| 578 | game:GetService("Debris"):AddItem(c, .5)
| |
| 579 | if HitSound ~= nil and HitPitch ~= nil then | |
| 580 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 581 | end | |
| 582 | local Damage = math.random(minim, maxim) | |
| 583 | local blocked = false | |
| 584 | local block = hit.Parent:findFirstChild("Block")
| |
| 585 | if block ~= nil then | |
| 586 | if block.className == "IntValue" then | |
| 587 | if block.Value > 0 then | |
| 588 | blocked = true | |
| 589 | block.Value = block.Value - 1 | |
| 590 | print(block.Value) | |
| 591 | end | |
| 592 | end | |
| 593 | end | |
| 594 | if blocked == false then | |
| 595 | h.Health = h.Health - Damage | |
| 596 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
| |
| 597 | else | |
| 598 | h.Health = h.Health - (Damage / 2) | |
| 599 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color)
| |
| 600 | end | |
| 601 | if Type == "Knockdown" then | |
| 602 | local hum = hit.Parent.Humanoid | |
| 603 | hum.PlatformStand = true | |
| 604 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 605 | swait(1) | |
| 606 | HHumanoid.PlatformStand = false | |
| 607 | end), hum) | |
| 608 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
| 609 | local bodvol = Create("BodyVelocity"){
| |
| 610 | velocity = angle * knockback, | |
| 611 | P = 5000, | |
| 612 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 613 | Parent = hit, | |
| 614 | } | |
| 615 | local rl = Create("BodyAngularVelocity"){
| |
| 616 | P = 3000, | |
| 617 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 618 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 619 | Parent = hit, | |
| 620 | } | |
| 621 | game:GetService("Debris"):AddItem(bodvol, .5)
| |
| 622 | game:GetService("Debris"):AddItem(rl, .5)
| |
| 623 | elseif Type == "Normal" then | |
| 624 | local vp = Create("BodyVelocity"){
| |
| 625 | P = 500, | |
| 626 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 627 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
| 628 | } | |
| 629 | if knockback > 0 then | |
| 630 | vp.Parent = hit.Parent.Torso | |
| 631 | end | |
| 632 | game:GetService("Debris"):AddItem(vp, .5)
| |
| 633 | elseif Type == "Up" then | |
| 634 | local bodyVelocity = Create("BodyVelocity"){
| |
| 635 | velocity = Vector3.new(0, 20, 0), | |
| 636 | P = 5000, | |
| 637 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 638 | Parent = hit, | |
| 639 | } | |
| 640 | game:GetService("Debris"):AddItem(bodyVelocity, .5)
| |
| 641 | elseif Type == "DarkUp" then | |
| 642 | coroutine.resume(coroutine.create(function() | |
| 643 | for i = 0, 1, 0.1 do | |
| 644 | swait() | |
| 645 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
| |
| 646 | end | |
| 647 | end)) | |
| 648 | local bodyVelocity = Create("BodyVelocity"){
| |
| 649 | velocity = Vector3.new(0, 20, 0), | |
| 650 | P = 5000, | |
| 651 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
| 652 | Parent = hit, | |
| 653 | } | |
| 654 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 655 | elseif Type == "Snare" then | |
| 656 | local bp = Create("BodyPosition"){
| |
| 657 | P = 2000, | |
| 658 | D = 100, | |
| 659 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 660 | position = hit.Parent.Torso.Position, | |
| 661 | Parent = hit.Parent.Torso, | |
| 662 | } | |
| 663 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 664 | elseif Type == "Freeze" then | |
| 665 | local BodPos = Create("BodyPosition"){
| |
| 666 | P = 50000, | |
| 667 | D = 1000, | |
| 668 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 669 | position = hit.Parent.Torso.Position, | |
| 670 | Parent = hit.Parent.Torso, | |
| 671 | } | |
| 672 | local BodGy = Create("BodyGyro") {
| |
| 673 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
| 674 | P = 20e+003, | |
| 675 | Parent = hit.Parent.Torso, | |
| 676 | cframe = hit.Parent.Torso.CFrame, | |
| 677 | } | |
| 678 | hit.Parent.Torso.Anchored = true | |
| 679 | coroutine.resume(coroutine.create(function(Part) | |
| 680 | swait(1.5) | |
| 681 | Part.Anchored = false | |
| 682 | end), hit.Parent.Torso) | |
| 683 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 684 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 685 | end | |
| 686 | local debounce = Create("BoolValue"){
| |
| 687 | Name = "DebounceHit", | |
| 688 | Parent = hit.Parent, | |
| 689 | Value = true, | |
| 690 | } | |
| 691 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 692 | c = Create("ObjectValue"){
| |
| 693 | Name = "creator", | |
| 694 | Value = Player, | |
| 695 | Parent = h, | |
| 696 | } | |
| 697 | game:GetService("Debris"):AddItem(c, .5)
| |
| 698 | end | |
| 699 | end | |
| 700 | ||
| 701 | function ShowDamage(Pos, Text, Time, Color) | |
| 702 | local Rate = (1 / 30) | |
| 703 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
| 704 | local Text = (Text or "") | |
| 705 | local Time = (Time or 2) | |
| 706 | local Color = (Color or Color3.new(1, 0, 1)) | |
| 707 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 708 | EffectPart.Anchored = true | |
| 709 | local BillboardGui = Create("BillboardGui"){
| |
| 710 | Size = UDim2.new(3, 0, 3, 0), | |
| 711 | Adornee = EffectPart, | |
| 712 | Parent = EffectPart, | |
| 713 | } | |
| 714 | local TextLabel = Create("TextLabel"){
| |
| 715 | BackgroundTransparency = 1, | |
| 716 | Size = UDim2.new(1, 0, 1, 0), | |
| 717 | Text = Text, | |
| 718 | Font = "SciFi", | |
| 719 | TextColor3 = Color, | |
| 720 | TextScaled = true, | |
| 721 | Parent = BillboardGui, | |
| 722 | } | |
| 723 | game.Debris:AddItem(EffectPart, (Time)) | |
| 724 | EffectPart.Parent = game:GetService("Workspace")
| |
| 725 | delay(0, function() | |
| 726 | local Frames = (Time / Rate) | |
| 727 | for Frame = 1, Frames do | |
| 728 | wait(Rate) | |
| 729 | local Percent = (Frame / Frames) | |
| 730 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 731 | TextLabel.TextTransparency = Percent | |
| 732 | end | |
| 733 | if EffectPart and EffectPart.Parent then | |
| 734 | EffectPart:Destroy() | |
| 735 | end | |
| 736 | end) | |
| 737 | end | |
| 738 | ||
| 739 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
| 740 | for _, c in pairs(workspace:children()) do | |
| 741 | local hum = c:findFirstChild("Humanoid")
| |
| 742 | if hum ~= nil then | |
| 743 | local head = c:findFirstChild("Torso")
| |
| 744 | if head ~= nil then | |
| 745 | local targ = head.Position - Part.Position | |
| 746 | local mag = targ.magnitude | |
| 747 | if mag <= Magnitude and c.Name ~= Player.Name then | |
| 748 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
| 749 | end | |
| 750 | end | |
| 751 | end | |
| 752 | end | |
| 753 | end | |
| 754 | ||
| 755 | EffectModel = Create("Model"){
| |
| 756 | Parent = Character, | |
| 757 | Name = "Effects", | |
| 758 | } | |
| 759 | ||
| 760 | Effects = {
| |
| 761 | Block = {
| |
| 762 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 763 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 764 | prt.Anchored = true | |
| 765 | prt.CFrame = cframe | |
| 766 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 767 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 768 | if Type == 1 or Type == nil then | |
| 769 | table.insert(Effects, {
| |
| 770 | prt, | |
| 771 | "Block1", | |
| 772 | delay, | |
| 773 | x3, | |
| 774 | y3, | |
| 775 | z3, | |
| 776 | msh | |
| 777 | }) | |
| 778 | elseif Type == 2 then | |
| 779 | table.insert(Effects, {
| |
| 780 | prt, | |
| 781 | "Block2", | |
| 782 | delay, | |
| 783 | x3, | |
| 784 | y3, | |
| 785 | z3, | |
| 786 | msh | |
| 787 | }) | |
| 788 | end | |
| 789 | end; | |
| 790 | }; | |
| 791 | ||
| 792 | Cylinder = {
| |
| 793 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 794 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 795 | prt.Anchored = true | |
| 796 | prt.CFrame = cframe | |
| 797 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 798 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 799 | table.insert(Effects, {
| |
| 800 | prt, | |
| 801 | "Cylinder", | |
| 802 | delay, | |
| 803 | x3, | |
| 804 | y3, | |
| 805 | z3, | |
| 806 | msh | |
| 807 | }) | |
| 808 | end; | |
| 809 | }; | |
| 810 | Head = {
| |
| 811 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 812 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 813 | prt.Anchored = true | |
| 814 | prt.CFrame = cframe | |
| 815 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 816 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 817 | table.insert(Effects, {
| |
| 818 | prt, | |
| 819 | "Cylinder", | |
| 820 | delay, | |
| 821 | x3, | |
| 822 | y3, | |
| 823 | z3, | |
| 824 | msh | |
| 825 | }) | |
| 826 | end; | |
| 827 | }; | |
| 828 | ||
| 829 | Sphere = {
| |
| 830 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 831 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 832 | prt.Anchored = true | |
| 833 | prt.CFrame = cframe | |
| 834 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 835 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 836 | table.insert(Effects, {
| |
| 837 | prt, | |
| 838 | "Cylinder", | |
| 839 | delay, | |
| 840 | x3, | |
| 841 | y3, | |
| 842 | z3, | |
| 843 | msh | |
| 844 | }) | |
| 845 | end; | |
| 846 | }; | |
| 847 | ||
| 848 | Elect = {
| |
| 849 | Create = function(cff, x, y, z) | |
| 850 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
| |
| 851 | prt.Anchored = true | |
| 852 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
| 853 | prt.CFrame = CFrame.new(prt.Position) | |
| 854 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 855 | local xval = math.random() / 2 | |
| 856 | local yval = math.random() / 2 | |
| 857 | local zval = math.random() / 2 | |
| 858 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
| |
| 859 | table.insert(Effects, {
| |
| 860 | prt, | |
| 861 | "Elec", | |
| 862 | 0.1, | |
| 863 | x, | |
| 864 | y, | |
| 865 | z, | |
| 866 | xval, | |
| 867 | yval, | |
| 868 | zval | |
| 869 | }) | |
| 870 | end; | |
| 871 | ||
| 872 | }; | |
| 873 | ||
| 874 | Ring = {
| |
| 875 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 876 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 877 | prt.Anchored = true | |
| 878 | prt.CFrame = cframe | |
| 879 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 880 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 881 | table.insert(Effects, {
| |
| 882 | prt, | |
| 883 | "Cylinder", | |
| 884 | delay, | |
| 885 | x3, | |
| 886 | y3, | |
| 887 | z3, | |
| 888 | msh | |
| 889 | }) | |
| 890 | end; | |
| 891 | }; | |
| 892 | ||
| 893 | ||
| 894 | Wave = {
| |
| 895 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 896 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 897 | prt.Anchored = true | |
| 898 | prt.CFrame = cframe | |
| 899 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 900 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 901 | table.insert(Effects, {
| |
| 902 | prt, | |
| 903 | "Cylinder", | |
| 904 | delay, | |
| 905 | x3, | |
| 906 | y3, | |
| 907 | z3, | |
| 908 | msh | |
| 909 | }) | |
| 910 | end; | |
| 911 | }; | |
| 912 | ||
| 913 | Break = {
| |
| 914 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 915 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 916 | prt.Anchored = true | |
| 917 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 918 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 919 | local num = math.random(10, 50) / 1000 | |
| 920 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 921 | table.insert(Effects, {
| |
| 922 | prt, | |
| 923 | "Shatter", | |
| 924 | num, | |
| 925 | prt.CFrame, | |
| 926 | math.random() - math.random(), | |
| 927 | 0, | |
| 928 | math.random(50, 100) / 100 | |
| 929 | }) | |
| 930 | end; | |
| 931 | }; | |
| 932 | ||
| 933 | Fire = {
| |
| 934 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
| 935 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 936 | prt.Anchored = true | |
| 937 | prt.CFrame = cframe | |
| 938 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 939 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 940 | table.insert(Effects, {
| |
| 941 | prt, | |
| 942 | "Fire", | |
| 943 | delay, | |
| 944 | 1, | |
| 945 | 1, | |
| 946 | 1, | |
| 947 | msh | |
| 948 | }) | |
| 949 | end; | |
| 950 | }; | |
| 951 | ||
| 952 | FireWave = {
| |
| 953 | Create = function(brickcolor, cframe, x1, y1, z1) | |
| 954 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
| 955 | prt.Anchored = true | |
| 956 | prt.CFrame = cframe | |
| 957 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 958 | local d = Create("Decal"){
| |
| 959 | Parent = prt, | |
| 960 | Texture = "rbxassetid://26356434", | |
| 961 | Face = "Top", | |
| 962 | } | |
| 963 | local d = Create("Decal"){
| |
| 964 | Parent = prt, | |
| 965 | Texture = "rbxassetid://26356434", | |
| 966 | Face = "Bottom", | |
| 967 | } | |
| 968 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 969 | table.insert(Effects, {
| |
| 970 | prt, | |
| 971 | "FireWave", | |
| 972 | 1, | |
| 973 | 30, | |
| 974 | math.random(400, 600) / 100, | |
| 975 | msh | |
| 976 | }) | |
| 977 | end; | |
| 978 | }; | |
| 979 | ||
| 980 | Lightning = {
| |
| 981 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
| 982 | local magz = (p0 - p1).magnitude | |
| 983 | local curpos = p0 | |
| 984 | local trz = {
| |
| 985 | -ofs, | |
| 986 | ofs | |
| 987 | } | |
| 988 | for i = 1, tym do | |
| 989 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
| 990 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
| 991 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
| 992 | li.Material = "Neon" | |
| 993 | if tym == i then | |
| 994 | local magz2 = (curpos - p1).magnitude | |
| 995 | li.Size = Vector3.new(th, th, magz2) | |
| 996 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
| 997 | table.insert(Effects, {
| |
| 998 | li, | |
| 999 | "Disappear", | |
| 1000 | last | |
| 1001 | }) | |
| 1002 | else | |
| 1003 | do | |
| 1004 | do | |
| 1005 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
| 1006 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
| 1007 | game.Debris:AddItem(li, 10) | |
| 1008 | table.insert(Effects, {
| |
| 1009 | li, | |
| 1010 | "Disappear", | |
| 1011 | last | |
| 1012 | }) | |
| 1013 | end | |
| 1014 | end | |
| 1015 | end | |
| 1016 | end | |
| 1017 | end | |
| 1018 | }; | |
| 1019 | ||
| 1020 | EffectTemplate = {
| |
| 1021 | ||
| 1022 | }; | |
| 1023 | } | |
| 1024 | ||
| 1025 | function attackone() | |
| 1026 | attack = true | |
| 1027 | for i = 0, 1, 0.1 do | |
| 1028 | swait() | |
| 1029 | PlayAnimationFromTable({
| |
| 1030 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1031 | CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1032 | CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1033 | CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1034 | CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1035 | CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
| 1036 | }, .3, false) | |
| 1037 | end | |
| 1038 | attack = false | |
| 1039 | end | |
| 1040 | ||
| 1041 | Mouse.KeyDown:connect(function(k) | |
| 1042 | k = k:lower() | |
| 1043 | if attack == false and k == '' then | |
| 1044 | ||
| 1045 | end | |
| 1046 | end) | |
| 1047 | ||
| 1048 | abss = Instance.new("BillboardGui",Character)
| |
| 1049 | abss.Size = UDim2.new(10,0,10,0) | |
| 1050 | abss.Enabled = false | |
| 1051 | imgl = Instance.new("ImageLabel",abss)
| |
| 1052 | imgl.Position = UDim2.new(0,0,0,0) | |
| 1053 | imgl.Size = UDim2.new(1,0,1,0) | |
| 1054 | imgl.Image = "rbxassetid://711463989" | |
| 1055 | imgl.BackgroundTransparency = 1 | |
| 1056 | imgl.ImageColor3 = Color3.new(.9,0,0) | |
| 1057 | img2 = Instance.new("ImageLabel",abss)
| |
| 1058 | img2.Position = UDim2.new(0,0,0,0) | |
| 1059 | img2.Size = UDim2.new(1,0,1,0) | |
| 1060 | img2.Image = "rbxassetid://711463989" | |
| 1061 | img2.BackgroundTransparency = 1 | |
| 1062 | img2.ImageColor3 = Color3.new(.9,0,0) | |
| 1063 | ||
| 1064 | local targetted = nil; | |
| 1065 | ||
| 1066 | function ohshityougothit(dude) | |
| 1067 | coroutine.wrap(function() | |
| 1068 | repeat wait() until dude:FindFirstChild"Head" | |
| 1069 | KnifuHit = New("Model",workspace,"KnifuHit",{})
| |
| 1070 | game:GetService("Debris"):AddItem(KnifuHit,3)
| |
| 1071 | HWeldPart = New("Part",KnifuHit,"HWeldPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.600000024, 0.400000006),CFrame = CFrame.new(68.6099854, 1.50001717, 8.10717869, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 1072 | Mesh = New("CylinderMesh",HWeldPart,"Mesh",{})
| |
| 1073 | Weld = New("ManualWeld",HWeldPart,"Weld",{Part0 = HWeldPart,Part1 = dude.Head,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),C1 = CFrame.new(0.00998687744, 1.00000417, -1.79282093, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1074 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000033),CFrame = CFrame.new(68.6099854, 0.913415372, 8.92320538, -1, 0, 0, 0, 0.500000536, -0.866025746, 0, -0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),})
| |
| 1075 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),MeshType = Enum.MeshType.Wedge,})
| |
| 1076 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 1, -0.0999984741, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1077 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(68.6099854, 1.60001719, 7.93397379, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 1078 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(1.20000005, 0.949999988, 1.20000005),})
| |
| 1079 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, -0.199999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1080 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(68.6099854, 1.30001676, 8.45358944, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 1081 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(1.5, 1.20000005, 1.5),})
| |
| 1082 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 0.400000334, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1083 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(68.6099854, 1.47322106, 8.55358887, -1, 0, 0, 0, 0.500000536, -0.866025746, 0, -0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 1084 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(1, 1, 1.20000005),MeshType = Enum.MeshType.Wedge,})
| |
| 1085 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.400000095, 0.199998856, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1086 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000036),CFrame = CFrame.new(68.6099854, 1.12680948, 8.3535881, 1, 0, 0, 0, 0.500000536, 0.866025746, 0, -0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 1087 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(1, 1, 1.20000005),MeshType = Enum.MeshType.Wedge,})
| |
| 1088 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 0.400000095, -0.20000267, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1089 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.600000024, 0.200000003),CFrame = CFrame.new(68.6099854, 1.01341367, 8.74999905, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1090 | Mesh = New("BlockMesh",HPart,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),})
| |
| 1091 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 0.800000429, -0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1092 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.399999946, 0.400000036),CFrame = CFrame.new(68.6099854, 0.650017917, 9.5794239, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),})
| |
| 1093 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),MeshType = Enum.MeshType.Wedge,})
| |
| 1094 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 1.70000005, 1.90734863e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1095 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 0.886619031, 9.36961555, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1096 | Mesh = New("BlockMesh",HPart,"Mesh",{Scale = Vector3.new(0.400000006, 1, 1),})
| |
| 1097 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 1.40000057, 0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1098 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 1.28662145, 8.67679501, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1099 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 1100 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.599999905, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1101 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 1.28662145, 8.67679501, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1102 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 1103 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.599999905, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1104 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 1.18662131, 8.85000038, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1105 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 1106 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.799999952, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1107 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 1.18662131, 8.85000038, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1108 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 1109 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.799999952, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1110 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 1.08662117, 9.02320576, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1111 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 1112 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1113 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 1.08662117, 9.02320576, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1114 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 1115 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1116 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 0.986621022, 9.19641113, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1117 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, -0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 1118 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.20000005, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1119 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(68.6099854, 0.986621022, 9.19641113, 1, 0, 0, 0, -0.500000536, -0.866025746, 0, 0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1120 | Mesh = New("SpecialMesh",HPart,"Mesh",{Offset = Vector3.new(0, 0.0500000007, -0.0500000007),Scale = Vector3.new(0.400000006, 0.5, 0.5),MeshType = Enum.MeshType.Wedge,})
| |
| 1121 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.20000005, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1122 | HPart = New("Part",KnifuHit,"HPart",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 1, 0.200000003),CFrame = CFrame.new(68.6099854, 1.08661926, 9.0232048, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
| |
| 1123 | Mesh = New("BlockMesh",HPart,"Mesh",{Offset = Vector3.new(0, 0, -0.0500000007),Scale = Vector3.new(0.400000006, 1, 0.5),})
| |
| 1124 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 1.00000048, 0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1125 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(68.6099854, 1.50001705, 8.10717869, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 1126 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(1.20000005, 0.949999988, 1.20000005),})
| |
| 1127 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 2.38418579e-07, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1128 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.400000006),CFrame = CFrame.new(68.6099854, 1.4000169, 8.28038406, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),})
| |
| 1129 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(1.20000005, 0.949999988, 1.20000005),})
| |
| 1130 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 0.200000286, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1131 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.400000036, 0.200000003),CFrame = CFrame.new(68.6099854, 0.76341331, 9.18301201, -1, 0, 0, 0, -0.500000536, 0.866025746, 0, 0.866025746, 0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),})
| |
| 1132 | Mesh = New("BlockMesh",HPart,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),})
| |
| 1133 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C1 = CFrame.new(0, 1.30000043, -0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1134 | HPart = New("Part",KnifuHit,"HPart",{BrickColor = BrickColor.new("Crimson"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.200000003, 0.200000033),CFrame = CFrame.new(68.6099854, 0.886620879, 9.36961555, -1, 0, 0, 0, 0.500000536, -0.866025746, 0, -0.866025746, -0.500000536),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.592157, 0, 0),})
| |
| 1135 | Mesh = New("SpecialMesh",HPart,"Mesh",{Scale = Vector3.new(0.409999996, 1.00999999, 1.00999999),MeshType = Enum.MeshType.Wedge,})
| |
| 1136 | Weld = New("ManualWeld",HPart,"Weld",{Part0 = HPart,Part1 = HWeldPart,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 1.4000001, 0.100002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 1137 | end)() | |
| 1138 | end | |
| 1139 | ||
| 1140 | function fuckingdie(dude) | |
| 1141 | if dude.Name ~= "CKbackup" and dude.Name ~= "Quil_Cyndaquil" then | |
| 1142 | dude.Humanoid.PlatformStand = true | |
| 1143 | local bgf = Instance.new("BodyGyro",dude.Head)
| |
| 1144 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
| 1145 | local val = Instance.new("BoolValue",dude)
| |
| 1146 | val.Name = "IsHit" | |
| 1147 | for i = 1, 6 do | |
| 1148 | local blo = Instance.new("Part",game.Workspace)
| |
| 1149 | blo.Size = Vector3.new(.6,.2,.6) | |
| 1150 | blo.Material = "SmoothPlastic" | |
| 1151 | blo.BrickColor = BrickColor.new("Crimson")
| |
| 1152 | blo.Position = dude.Head.Position | |
| 1153 | blo.CFrame = dude.Head.CFrame | |
| 1154 | game:GetService("Debris"):AddItem(blo,15)
| |
| 1155 | end | |
| 1156 | local ds = coroutine.wrap(function() | |
| 1157 | wait(1) | |
| 1158 | if dude == targetted then | |
| 1159 | targetted = nil | |
| 1160 | end | |
| 1161 | dude:FindFirstChildOfClass"Humanoid".Health = 0 | |
| 1162 | (dude:FindFirstChild"Torso" or dude:FindFirstChild"HumanoidRootPart" or dude:FindFirstChild"UpperTorso").Anchored = false | |
| 1163 | ragdoll(dude) | |
| 1164 | end) | |
| 1165 | ds() | |
| 1166 | end | |
| 1167 | end | |
| 1168 | ||
| 1169 | local Sitting = false | |
| 1170 | function fuckingdiethro(dude) | |
| 1171 | if dude.Name ~= "CKbackup" and dude.Name ~= "Quil_Cyndaquil" then | |
| 1172 | dude.Humanoid.PlatformStand = true | |
| 1173 | if dude:FindFirstChild"Head" then local bgf = Instance.new("BodyGyro",dude.Head)
| |
| 1174 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) end | |
| 1175 | local val = Instance.new("BoolValue",dude)
| |
| 1176 | val.Name = "IsHit" | |
| 1177 | if dude:FindFirstChild"Head" then | |
| 1178 | for i = 1, 6 do | |
| 1179 | local blo = Instance.new("Part",game.Workspace)
| |
| 1180 | blo.Size = Vector3.new(.6,.2,.6) | |
| 1181 | blo.Material = "SmoothPlastic" | |
| 1182 | blo.BrickColor = BrickColor.new("Crimson")
| |
| 1183 | blo.Position = dude.Head.Position | |
| 1184 | blo.CFrame = dude.Head.CFrame | |
| 1185 | game:GetService("Debris"):AddItem(blo,15)
| |
| 1186 | end | |
| 1187 | end | |
| 1188 | local ds = coroutine.wrap(function() | |
| 1189 | if(dude:FindFirstChild"Torso" or dude:FindFirstChild"HumanoidRootPart" or dude:FindFirstChild"UpperTorso") then | |
| 1190 | (dude:FindFirstChild"Torso" or dude:FindFirstChild"HumanoidRootPart" or dude:FindFirstChild"UpperTorso").Velocity = (dude:FindFirstChild"Torso" or dude:FindFirstChild"HumanoidRootPart" or dude:FindFirstChild"UpperTorso").CFrame.lookVector * -15 | |
| 1191 | end | |
| 1192 | wait(0.3) | |
| 1193 | if dude == targetted then | |
| 1194 | targetted = nil | |
| 1195 | end | |
| 1196 | dude:FindFirstChildOfClass"Humanoid".Health = 0 | |
| 1197 | ragdoll(dude) | |
| 1198 | end) | |
| 1199 | ds() | |
| 1200 | end | |
| 1201 | end | |
| 1202 | ||
| 1203 | function ragdoll(guy) | |
| 1204 | guy.Archivable = true | |
| 1205 | clone = guy:Clone() | |
| 1206 | clone.Parent = workspace | |
| 1207 | game:service'Debris':AddItem(clone,10) | |
| 1208 | for i,v in pairs(clone:GetChildren()) do | |
| 1209 | if v.ClassName == "Script" or v.ClassName == "LocalScript" then | |
| 1210 | v:destroy() | |
| 1211 | end | |
| 1212 | for i,p in pairs(v:GetChildren()) do | |
| 1213 | if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then | |
| 1214 | p:destroy() | |
| 1215 | end | |
| 1216 | end | |
| 1217 | end | |
| 1218 | for i,t in pairs(guy:GetChildren()) do | |
| 1219 | if t.ClassName == "Accessory" or t.ClassName == "ForceField" then | |
| 1220 | t:destroy() | |
| 1221 | end | |
| 1222 | end | |
| 1223 | for i,v in next, clone:children() do | |
| 1224 | if v:IsA"LocalScript" or v:IsA"Script" or v:IsA"ModuleScript" then | |
| 1225 | v.Disabled = true | |
| 1226 | wait() | |
| 1227 | v:destroy() | |
| 1228 | end | |
| 1229 | end | |
| 1230 | local vel | |
| 1231 | if clone:FindFirstChild"Torso" then | |
| 1232 | vel = Instance.new("BodyVelocity", clone.Torso)
| |
| 1233 | vel.Velocity = clone.Torso.CFrame.lookVector * -5 | |
| 1234 | vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1235 | end | |
| 1236 | if clone:FindFirstChild"Head" and clone.Head:FindFirstChild"face" then | |
| 1237 | clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608" | |
| 1238 | end | |
| 1239 | using = false | |
| 1240 | local leftarm = clone:findFirstChild("Left Arm")
| |
| 1241 | local rightrm = clone:findFirstChild("Right Arm")
| |
| 1242 | local leftleg = clone:findFirstChild("Left Leg")
| |
| 1243 | local rightleg = clone:findFirstChild("Right Leg")
| |
| 1244 | local head = clone:findFirstChild("Head")
| |
| 1245 | for i, g in pairs(guy:GetChildren()) do | |
| 1246 | if g.ClassName == "Part" then | |
| 1247 | g:destroy() | |
| 1248 | end | |
| 1249 | end | |
| 1250 | for i, h in pairs(guy:GetChildren()) do | |
| 1251 | if h.ClassName == "Accesory" then | |
| 1252 | h:destroy() | |
| 1253 | end | |
| 1254 | end | |
| 1255 | ||
| 1256 | if head ~= nil then | |
| 1257 | local glue13 = Instance.new("Glue", clone.Torso)
| |
| 1258 | glue13.Part0 = clone.Torso | |
| 1259 | glue13.Part1 = head | |
| 1260 | glue13.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 1261 | glue13.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 1262 | local collider13 = Instance.new("Part", head)
| |
| 1263 | collider13.Position = Vector3.new(0,999,0) | |
| 1264 | collider13.Size = Vector3.new(0.5, 0.9, 0.9) | |
| 1265 | collider13.Shape = "Cylinder" | |
| 1266 | collider13.Transparency = 1 | |
| 1267 | local weld = Instance.new("Weld", collider13)
| |
| 1268 | weld.Part0 = head | |
| 1269 | weld.Part1 = collider13 | |
| 1270 | weld.C0 = weld.C0 * CFrame.new(0,0.2,0) * CFrame.Angles(0, 0, 80) | |
| 1271 | collider13.TopSurface = "Smooth" | |
| 1272 | collider13.BottomSurface = "Smooth" | |
| 1273 | collider13.formFactor = "Symmetric" | |
| 1274 | end | |
| 1275 | if leftleg ~= nil then | |
| 1276 | local glue = Instance.new("Glue", clone.Torso)
| |
| 1277 | glue.Part0 = clone.Torso | |
| 1278 | glue.Part1 = leftleg | |
| 1279 | glue.Name = "Left leg" | |
| 1280 | local collider = Instance.new("Part", leftleg)
| |
| 1281 | collider.Position = Vector3.new(0,999,0) | |
| 1282 | collider.Size = Vector3.new(1.7, 1, 1) | |
| 1283 | collider.Shape = "Cylinder" | |
| 1284 | local weld = Instance.new("Weld", collider)
| |
| 1285 | weld.Part0 = leftleg | |
| 1286 | weld.Part1 = collider | |
| 1287 | weld.C0 = CFrame.Angles(0, 0, 80) | |
| 1288 | collider.TopSurface = "Smooth" | |
| 1289 | collider.BottomSurface = "Smooth" | |
| 1290 | collider.formFactor = "Symmetric" | |
| 1291 | glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 1292 | glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 1293 | collider.Transparency = 1 | |
| 1294 | end | |
| 1295 | ------------ | |
| 1296 | if rightleg ~= nil then | |
| 1297 | local glue1 = Instance.new("Glue", clone.Torso)
| |
| 1298 | glue1.Part0 = clone.Torso | |
| 1299 | glue1.Part1 = rightleg | |
| 1300 | glue1.Name = "Right leg" | |
| 1301 | local collider1 = Instance.new("Part", rightleg)
| |
| 1302 | collider1.Position = Vector3.new(0,999,0) | |
| 1303 | collider1.Size = Vector3.new(1.7, 1, 1) | |
| 1304 | collider1.Shape = "Cylinder" | |
| 1305 | local weld1 = Instance.new("Weld", collider1)
| |
| 1306 | weld1.Part0 = rightleg | |
| 1307 | weld1.Part1 = collider1 | |
| 1308 | weld1.C0 = CFrame.Angles(0, 0, 80) | |
| 1309 | collider1.TopSurface = "Smooth" | |
| 1310 | collider1.BottomSurface = "Smooth" | |
| 1311 | collider1.formFactor = "Symmetric" | |
| 1312 | glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 1313 | glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 1314 | collider1.Transparency = 1 | |
| 1315 | end | |
| 1316 | ------------ | |
| 1317 | if rightrm ~= nil then | |
| 1318 | local glue11 = Instance.new("Glue", clone.Torso)
| |
| 1319 | glue11.Part0 = clone.Torso | |
| 1320 | glue11.Part1 = rightrm | |
| 1321 | glue11.Name = "Right shoulder" | |
| 1322 | local collider11 = Instance.new("Part", rightrm)
| |
| 1323 | collider11.Position = Vector3.new(0,9999,0) | |
| 1324 | collider11.Size = Vector3.new(1.8,1,1) | |
| 1325 | collider11.Shape = "Cylinder" | |
| 1326 | local weld11 = Instance.new("Weld", collider11)
| |
| 1327 | weld11.Part0 = rightrm | |
| 1328 | weld11.Part1 = collider11 | |
| 1329 | weld11.C0 = CFrame.Angles(0, 0, 80) | |
| 1330 | collider11.TopSurface = "Smooth" | |
| 1331 | collider11.BottomSurface = "Smooth" | |
| 1332 | collider11.formFactor = "Symmetric" | |
| 1333 | glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1334 | glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1335 | collider11.Transparency = 1 | |
| 1336 | end | |
| 1337 | ------------ | |
| 1338 | if leftarm ~= nil then | |
| 1339 | local glue111 = Instance.new("Glue", clone.Torso)
| |
| 1340 | glue111.Part0 = clone.Torso | |
| 1341 | glue111.Part1 = leftarm | |
| 1342 | glue111.Name = "Left shoulder" | |
| 1343 | local collider111 = Instance.new("Part", leftarm)
| |
| 1344 | collider111.Position = Vector3.new(0,9999,0) | |
| 1345 | collider111.Size = Vector3.new(1.8,1,1) | |
| 1346 | collider111.Shape = "Cylinder" | |
| 1347 | local weld111 = Instance.new("Weld", collider111)
| |
| 1348 | weld111.Part0 = leftarm | |
| 1349 | weld111.Part1 = collider111 | |
| 1350 | weld111.C0 = CFrame.Angles(0, 0, 80) | |
| 1351 | collider111.TopSurface = "Smooth" | |
| 1352 | collider111.BottomSurface = "Smooth" | |
| 1353 | collider111.formFactor = "Symmetric" | |
| 1354 | glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 1355 | glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 1356 | collider111.Transparency = 1 | |
| 1357 | ---------------- | |
| 1358 | sensoring = Instance.new("Part", clone.Torso)
| |
| 1359 | sensoring.Size = Vector3.new(1.2,1.1,0.8) | |
| 1360 | sensoring.CanCollide = false | |
| 1361 | sensoring.Position = clone.Torso.Position | |
| 1362 | local welder = Instance.new("Weld", sensoring)
| |
| 1363 | welder.Part0 = clone.Torso | |
| 1364 | welder.Part1 = sensoring | |
| 1365 | welder.C0 = welder.C0 * CFrame.new(0,0,1.05) | |
| 1366 | sensoring.Transparency = 1 | |
| 1367 | ----------------- | |
| 1368 | sensoring1 = Instance.new("Part", clone.Torso)
| |
| 1369 | sensoring1.Size = Vector3.new(1.2,1.1,0.8) | |
| 1370 | sensoring1.CanCollide = false | |
| 1371 | sensoring1.Position = clone.Torso.Position | |
| 1372 | local welder1 = Instance.new("Weld", sensoring)
| |
| 1373 | welder1.Part0 = clone.Torso | |
| 1374 | welder1.Part1 = sensoring1 | |
| 1375 | welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05) | |
| 1376 | sensoring1.Transparency = 1 | |
| 1377 | end | |
| 1378 | clone.Name = guy.Name.." (Murdered)" | |
| 1379 | if vel then vel:destroy() end | |
| 1380 | ||
| 1381 | end | |
| 1382 | ||
| 1383 | local slashes = {}
| |
| 1384 | table.insert(slashes,220833967) | |
| 1385 | table.insert(slashes,220833976) | |
| 1386 | table.insert(slashes,220834000) | |
| 1387 | table.insert(slashes,220834019) | |
| 1388 | function fucktheworld() | |
| 1389 | local a = Instance.new("ColorCorrectionEffect",Lighty)
| |
| 1390 | a.TintColor = Color3.new(1,1,1) | |
| 1391 | local b = Instance.new("BlurEffect",Lighty)
| |
| 1392 | b.Size = 0 | |
| 1393 | for i = 1,0, -.1 do | |
| 1394 | a.TintColor = Color3.new(i,i,i) | |
| 1395 | b.Size = b.Size + 1 | |
| 1396 | end | |
| 1397 | ||
| 1398 | wait(1) | |
| 1399 | ||
| 1400 | ||
| 1401 | coroutine.wrap(function() | |
| 1402 | for i,v in next, workspace:children() do | |
| 1403 | if v:IsA"Model" or v:IsA"Part" then | |
| 1404 | if v:FindFirstChildOfClass"Humanoid" and v ~= Character then | |
| 1405 | v:BreakJoints() | |
| 1406 | if v:FindFirstChild"Torso" then ragdoll(v) end | |
| 1407 | wait(.15) | |
| 1408 | end | |
| 1409 | end | |
| 1410 | end | |
| 1411 | end)() | |
| 1412 | ||
| 1413 | ||
| 1414 | for i = 1, 7 do | |
| 1415 | for i = 0,1,.3 do | |
| 1416 | a.TintColor = Color3.new(i,i,i) | |
| 1417 | wait() | |
| 1418 | end | |
| 1419 | local slash = math.random(1,4) | |
| 1420 | local sou = Instance.new("Sound",workspace)
| |
| 1421 | sou.Pitch = math.random(0.75,1) | |
| 1422 | sou.Volume = 10 | |
| 1423 | sou.SoundId = "rbxassetid://"..slashes[slash] | |
| 1424 | sou:Play() | |
| 1425 | a.TintColor = Color3.new(0,0,0) | |
| 1426 | wait() | |
| 1427 | end | |
| 1428 | ||
| 1429 | --165487479 | |
| 1430 | ||
| 1431 | local sou = Instance.new("Sound",workspace)
| |
| 1432 | sou.Pitch = 1 | |
| 1433 | sou.Volume = 10 | |
| 1434 | sou.SoundId = "rbxassetid://137473066" | |
| 1435 | sou:Play() | |
| 1436 | wait(3) | |
| 1437 | ||
| 1438 | for i = 0,1,.1 do | |
| 1439 | a.TintColor = Color3.new(i,i,i) | |
| 1440 | b.Size = b.Size - 1 | |
| 1441 | wait() | |
| 1442 | end | |
| 1443 | a:destroy() | |
| 1444 | game:service'Debris':AddItem(b,3) | |
| 1445 | end | |
| 1446 | function endit() | |
| 1447 | attack = true | |
| 1448 | Humanoid.WalkSpeed = 0 | |
| 1449 | Humanoid.JumpPower = 0 | |
| 1450 | for i = 0, 1, 0.1 do | |
| 1451 | swait() | |
| 1452 | PlayAnimationFromTable({
| |
| 1453 | CFrame.new(0, -0, 0, 0.999999881, 1.80938514e-07, -6.51925802e-08, 1.80938514e-07, 0.99999994, 3.16649675e-08, -6.51925802e-08, 3.16649675e-08, 0.999999166) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1454 | CFrame.new(-0.0562468916, 1.5148555, -0.185029209, 0.985933602, -0.147041202, -0.0794581771, 0.166522875, 0.904925287, 0.391637921, 0.0143166762, -0.399360269, 0.916681409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1455 | CFrame.new(1.55124712, 1.10979831, 0.0157209933, 0.994141698, -0.090331316, 0.0593510792, -0.0904476494, -0.995900929, -0.000725974329, 0.0591732934, -0.00464646891, -0.998236537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1456 | CFrame.new(-1.52652156, 0.0404321998, -7.48408866e-06, 0.997243881, 0.0741921589, -3.1106174e-07, -0.0741918012, 0.997244, -1.04247592e-05, -5.96046448e-07, 1.0473188e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1457 | CFrame.new(0.540302217, -1.99793744, -6.02283308e-06, 0.998698354, -0.0510029495, 5.62518835e-07, 0.0510033108, 0.998698413, -1.04014762e-05, -1.54599547e-07, 1.0486925e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1458 | CFrame.new(-0.539564013, -1.99794042, 9.50125104e-06, 0.998631001, 0.0523072742, -2.32830644e-07, -0.0523069166, 0.998631001, -1.04270875e-05, -4.45172191e-07, 1.04820356e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1459 | }, .3, false) | |
| 1460 | KWeld.C0 = clerp(KWeld.C0, CFrame.new(-0.0327453725, -1.02458775, -0.0236971658, -1.00000048, 2.08819984e-09, -3.7252903e-09, -5.65341907e-09, -1.00000012, -2.57510692e-07, 3.7252903e-09, -2.57277861e-07, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
| 1461 | end | |
| 1462 | chat("This world is getting boring...")
| |
| 1463 | wait(1.5) | |
| 1464 | chat("Well...")
| |
| 1465 | wait(1) | |
| 1466 | chat("LETS MOVE ON TO THE NEXT!")
| |
| 1467 | wait(2) | |
| 1468 | for i = 1, 3 do | |
| 1469 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=341336274", Character, 1, 1)
| |
| 1470 | local part = Instance.new("Part",EffectModel)
| |
| 1471 | part.Shape = "Ball" | |
| 1472 | part.Anchored = true | |
| 1473 | part.CanCollide = false | |
| 1474 | part.BrickColor = BrickColor.new"Really red" | |
| 1475 | part.Material = Enum.Material.Neon | |
| 1476 | part.Size = Vector3.new(1,1,1) | |
| 1477 | part.CFrame = BloodPart.CFrame | |
| 1478 | part.TopSurface,part.BottomSurface = 10,10 | |
| 1479 | for i = 0,1,.1 do | |
| 1480 | part.Size = part.Size+ Vector3.new(4,4,4) | |
| 1481 | part.Transparency = i | |
| 1482 | wait() | |
| 1483 | end | |
| 1484 | part:destroy() | |
| 1485 | wait(.05) | |
| 1486 | end | |
| 1487 | wait(.5) | |
| 1488 | attack = false | |
| 1489 | fucktheworld() | |
| 1490 | wait(2) | |
| 1491 | Humanoid.WalkSpeed = 8 | |
| 1492 | Humanoid.JumpPower = 50 | |
| 1493 | ||
| 1494 | end | |
| 1495 | function sleepchild() | |
| 1496 | attack = true | |
| 1497 | Humanoid.WalkSpeed = 0 | |
| 1498 | Humanoid.JumpPower = 0 | |
| 1499 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521656", Character, 1, .8)
| |
| 1500 | local a = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("HumanoidRootPart") targetted:FindFirstChild("UpperTorso")
| |
| 1501 | a.Anchored = true | |
| 1502 | RootPart.CFrame = a.CFrame * CFrame.new(0,0,1) | |
| 1503 | wait(.01) | |
| 1504 | Character.Torso.Anchored = true | |
| 1505 | for i = 0, 1, 0.1 do | |
| 1506 | swait() | |
| 1507 | PlayAnimationFromTable({
| |
| 1508 | CFrame.new(0, -0, 0, 0.999999881, 1.80938514e-07, -6.51925802e-08, 1.80938514e-07, 0.99999994, 3.16649675e-08, -6.51925802e-08, 3.16649675e-08, 0.999999166) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1509 | CFrame.new(0.647793114, 1.49790704, -0.08620812, 0.919307768, 0.392846406, 0.0233431272, -0.391966701, 0.919319689, -0.0348359533, -0.0351450294, 0.0228752308, 0.999119997) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1510 | CFrame.new(1.27472198, 0.948095679, -0.665119231, 0.15143548, 0.0339903161, -0.987882555, -0.986717343, -0.0542402044, -0.153123304, -0.0587876812, 0.997948885, 0.0253249966) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1511 | CFrame.new(-0.563300252, 0.95589447, -1.39769626, 0.695959151, -0.718027294, -0.00878927112, -0.264074028, -0.244537428, -0.93298763, 0.667761326, 0.651642263, -0.359800428) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1512 | CFrame.new(0.540302217, -1.99793744, -6.02283308e-06, 0.998698354, -0.0510029495, 5.62518835e-07, 0.0510033108, 0.998698413, -1.04014762e-05, -1.54599547e-07, 1.0486925e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1513 | CFrame.new(-0.539564013, -1.99794042, 9.50125104e-06, 0.998631001, 0.0523072742, -2.32830644e-07, -0.0523069166, 0.998631001, -1.04270875e-05, -4.45172191e-07, 1.04820356e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1514 | }, .3, false) | |
| 1515 | --KWeld.C0 = clerp(KWeld.C0, CFrame.new(7.63306252e-06, -0.99992466, 0.249988556, -1.00000012, 1.46683306e-08, 0, 0, -3.8407743e-06, 1, 1.62981451e-09, 1.00000012, 3.85195017e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
| 1516 | end | |
| 1517 | if targetted.Name == "Lime_Pidgey" or targetted.Name == "Quil_Cyndaquil" or targetted.Name == "CKbackup" or targetted.Name == "Salvo_Starly" then | |
| 1518 | wait(2) | |
| 1519 | a.Anchored = false | |
| 1520 | local sel = math.random(1,3) | |
| 1521 | if sel == 1 then | |
| 1522 | chat("What was I thinking...")
| |
| 1523 | elseif sel == 2 then | |
| 1524 | if targetted.Name == "Quil_Cyndaquil" then | |
| 1525 | chat("Sorry, Nebula.")
| |
| 1526 | elseif targetted.Name == "CKbackup" then | |
| 1527 | chat("Didn't know it was you, Sugarie")
| |
| 1528 | elseif targetted.Name == "Salvo_Starly" then | |
| 1529 | chat("Didn't realize, Genocider. I'm so sorry.")
| |
| 1530 | elseif targetted.Name == "Lime_Pidgey" then | |
| 1531 | chat("Ah, Jerry, So sorry, thought you were an enemy.")
| |
| 1532 | end | |
| 1533 | elseif sel == 3 then | |
| 1534 | chat("Why.. did I try that..?")
| |
| 1535 | end | |
| 1536 | for i = 0, 5, 0.1 do | |
| 1537 | swait() | |
| 1538 | PlayAnimationFromTable({
| |
| 1539 | CFrame.new(0, 0, 0, 0.999999881, 5.04870979e-29, -4.21790838e-43, 5.04870979e-29, 1, -5.04870979e-29, -4.21790838e-43, -5.04870979e-29, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1540 | CFrame.new(-0.0399715528, 1.42130852, -0.217550665, 0.985933542, -0.136098281, -0.097015582, 0.166522697, 0.849608123, 0.500436008, 0.0143167432, -0.509551942, 0.860320628) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0- .4 * math.cos((sine) / 5), 0), | |
| 1541 | CFrame.new(1.57258642, 0.0433240086, 3.83948304e-08, 0.990993857, -0.133906633, -2.60571618e-08, 0.133906662, 0.990993977, 5.96046341e-08, 1.78410318e-08, -6.25570422e-08, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1542 | CFrame.new(-0.693957031, 0.999676406, -0.811627388, 0.817211449, -0.569911301, -0.0858340934, -0.499626935, -0.626295447, -0.598442137, 0.287295371, 0.531934083, -0.796558976) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1543 | CFrame.new(0.540301144, -1.99792778, 1.70425119e-06, 0.998698354, -0.0510031469, 6.26438805e-07, 0.0510031544, 0.998698473, -1.04335422e-05, -9.34800966e-08, 1.04519122e-05, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1544 | CFrame.new(-0.539563119, -1.99793291, 1.9016752e-06, 0.998630941, 0.0523070693, -1.67712614e-07, -0.0523070768, 0.99863106, -1.0458818e-05, -3.79587107e-07, 1.04532719e-05, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1545 | }, .3, false) | |
| 1546 | end | |
| 1547 | attack = false | |
| 1548 | Character.Torso.Anchored = false | |
| 1549 | Humanoid.WalkSpeed = 8 | |
| 1550 | Humanoid.JumpPower = 50 | |
| 1551 | else | |
| 1552 | chat("Go to sleep...")
| |
| 1553 | wait(2) | |
| 1554 | for i = 0, 1, 0.1 do | |
| 1555 | swait() | |
| 1556 | PlayAnimationFromTable({
| |
| 1557 | CFrame.new(0, -0, 0, 0.999999881, 1.80938514e-07, -6.51925802e-08, 1.80938514e-07, 0.99999994, 3.16649675e-08, -6.51925802e-08, 3.16649675e-08, 0.999999166) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1558 | CFrame.new(0.647793114, 1.49790704, -0.08620812, 0.919307768, 0.392846406, 0.0233431272, -0.391966701, 0.919319689, -0.0348359533, -0.0351450294, 0.0228752308, 0.999119997) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1559 | CFrame.new(1.28332329, 0.947640657, -0.594629169, 0.130690023, 0.303638369, -0.943781614, -0.986253858, -0.0572666377, -0.15499571, -0.101109855, 0.951064467, 0.291980326) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1560 | CFrame.new(-0.563300252, 0.95589447, -1.39769626, 0.695959151, -0.718027294, -0.00878927112, -0.264074028, -0.244537428, -0.93298763, 0.667761326, 0.651642263, -0.359800428) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1561 | CFrame.new(0.540302217, -1.99793744, -6.02283308e-06, 0.998698354, -0.0510029495, 5.62518835e-07, 0.0510033108, 0.998698413, -1.04014762e-05, -1.54599547e-07, 1.0486925e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1562 | CFrame.new(-0.539564013, -1.99794042, 9.50125104e-06, 0.998631001, 0.0523072742, -2.32830644e-07, -0.0523069166, 0.998631001, -1.04270875e-05, -4.45172191e-07, 1.04820356e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1563 | }, .3, false) | |
| 1564 | --KWeld.C0 = clerp(KWeld.C0, CFrame.new(1.6214326e-05, -0.999932289, 0.249966294, -1, 7.4505806e-09, 0, 0, -3.24845314e-06, 1.00000012, -1.86264515e-08, 1.00000012, 3.21865082e-06) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
| 1565 | end | |
| 1566 | fuckingdie(targetted) | |
| 1567 | wait(1) | |
| 1568 | attack = false | |
| 1569 | Character.Torso.Anchored = false | |
| 1570 | Humanoid.WalkSpeed = 8 | |
| 1571 | Humanoid.JumpPower = 50 | |
| 1572 | end | |
| 1573 | end | |
| 1574 | ||
| 1575 | local combo = false | |
| 1576 | local input = "" | |
| 1577 | local didCombo = false | |
| 1578 | ||
| 1579 | function chainreaction() | |
| 1580 | attack = true | |
| 1581 | Humanoid.WalkSpeed = 0 | |
| 1582 | Humanoid.JumpPower = 0 | |
| 1583 | local func | |
| 1584 | for i = 0, 0.05, 0.1 do | |
| 1585 | swait() | |
| 1586 | PlayAnimationFromTable({
| |
| 1587 | CFrame.new(0, -0, 0, 0.999999881, 1.80938514e-07, -6.51925802e-08, 1.80938514e-07, 0.99999994, 3.16649675e-08, -6.51925802e-08, 3.16649675e-08, 0.999999166) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1588 | CFrame.new(-0.0562468916, 1.5148555, -0.185029209, 0.985933602, -0.147041202, -0.0794581771, 0.166522875, 0.904925287, 0.391637921, 0.0143166762, -0.399360269, 0.916681409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1589 | CFrame.new(1.52798259, 0.437558174, 0.521697879, 0.997940063, -0.0485750884, 0.0419071428, -0.0418144763, 0.00291904411, 0.999121189, -0.0486547761, -0.99881494, 0.00088191824) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1590 | CFrame.new(-1.52652156, 0.0404321998, -7.48408866e-06, 0.997243881, 0.0741921589, -3.1106174e-07, -0.0741918012, 0.997244, -1.04247592e-05, -5.96046448e-07, 1.0473188e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1591 | CFrame.new(0.540302217, -1.99793744, -6.02283308e-06, 0.998698354, -0.0510029495, 5.62518835e-07, 0.0510033108, 0.998698413, -1.04014762e-05, -1.54599547e-07, 1.0486925e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1592 | CFrame.new(-0.539564013, -1.99794042, 9.50125104e-06, 0.998631001, 0.0523072742, -2.32830644e-07, -0.0523069166, 0.998631001, -1.04270875e-05, -4.45172191e-07, 1.04820356e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1593 | }, .4, false) | |
| 1594 | --KWeld.C0 = clerp(KWeld.C0, CFrame.new(-7.71878695e-06, -0.99999249, 0.25000006, -1.00000012, 5.82076609e-11, 8.94069672e-08, 8.94069672e-08, 4.42378223e-08, 1.00000012, 8.73114914e-11, 1.00000012, -4.3772161e-08) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
| 1595 | end | |
| 1596 | swait() | |
| 1597 | for i = 0, 0.45, 0.1 do | |
| 1598 | swait() | |
| 1599 | PlayAnimationFromTable({
| |
| 1600 | CFrame.new(0, -0, 0, 0.999999881, 1.80938514e-07, -6.51925802e-08, 1.80938514e-07, 0.99999994, 3.16649675e-08, -6.51925802e-08, 3.16649675e-08, 0.999999166) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1601 | CFrame.new(-0.0562468916, 1.5148555, -0.185029209, 0.985933602, -0.147041202, -0.0794581771, 0.166522875, 0.904925287, 0.391637921, 0.0143166762, -0.399360269, 0.916681409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1602 | CFrame.new(1.55079103, 1.21950901, 0.0761990994, 0.994141698, -0.090331316, 0.0593510792, -0.0904476494, -0.995900929, -0.000725974329, 0.0591732934, -0.00464646891, -0.998236537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1603 | CFrame.new(-1.52652156, 0.0404321998, -7.48408866e-06, 0.997243881, 0.0741921589, -3.1106174e-07, -0.0741918012, 0.997244, -1.04247592e-05, -5.96046448e-07, 1.0473188e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1604 | CFrame.new(0.540302217, -1.99793744, -6.02283308e-06, 0.998698354, -0.0510029495, 5.62518835e-07, 0.0510033108, 0.998698413, -1.04014762e-05, -1.54599547e-07, 1.0486925e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1605 | CFrame.new(-0.539564013, -1.99794042, 9.50125104e-06, 0.998631001, 0.0523072742, -2.32830644e-07, -0.0523069166, 0.998631001, -1.04270875e-05, -4.45172191e-07, 1.04820356e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1606 | }, .6, false) | |
| 1607 | end | |
| 1608 | for i,v in next, Knifu:children() do | |
| 1609 | if v:IsA"BasePart" and v.Name ~= "Hitbox" then | |
| 1610 | v.Transparency = 1 | |
| 1611 | end | |
| 1612 | end | |
| 1613 | p2mit.Enabled = false | |
| 1614 | p3mit.Enabled = false | |
| 1615 | local stopIt = false | |
| 1616 | local asd | |
| 1617 | local count = 0 | |
| 1618 | asd = function(dude) | |
| 1619 | local torso = dude:FindFirstChild"Torso" or dude:FindFirstChild"HumanoidRootPart" or dude:FindFirstChild"UpperTorso" | |
| 1620 | local cTorso,mag = nil, 0 | |
| 1621 | if torso then | |
| 1622 | for i,v in next, FindNearestTorsos(torso.CFrame.p,15) do | |
| 1623 | if v[2] > mag then | |
| 1624 | cTorso = v[1] | |
| 1625 | mag = v[2] | |
| 1626 | end | |
| 1627 | wait() | |
| 1628 | end | |
| 1629 | count = count + 1 | |
| 1630 | fuckingdiethro(dude) | |
| 1631 | if not cTorso or mag < 1 or count > 7 then | |
| 1632 | stopIt = true | |
| 1633 | else | |
| 1634 | asd(cTorso) | |
| 1635 | end | |
| 1636 | else | |
| 1637 | stopIt = true | |
| 1638 | end | |
| 1639 | ||
| 1640 | ||
| 1641 | end | |
| 1642 | func = coroutine.wrap(function() | |
| 1643 | asd(targetted) | |
| 1644 | end)() | |
| 1645 | repeat wait() until stopIt == true | |
| 1646 | wait(3) | |
| 1647 | for i,v in next, Knifu:children() do | |
| 1648 | if v:IsA"BasePart" and v.Name ~= "Hitbox" then | |
| 1649 | v.Transparency = 0 | |
| 1650 | end | |
| 1651 | end | |
| 1652 | p2mit.Enabled = true | |
| 1653 | p3mit.Enabled = true | |
| 1654 | attack = false | |
| 1655 | Humanoid.WalkSpeed = 8 | |
| 1656 | Humanoid.JumpPower = 50 | |
| 1657 | end | |
| 1658 | function throwit() | |
| 1659 | attack = true | |
| 1660 | Humanoid.WalkSpeed = 0 | |
| 1661 | for i = 0, 0.05, 0.1 do | |
| 1662 | swait() | |
| 1663 | PlayAnimationFromTable({
| |
| 1664 | CFrame.new(0, -0, 0, 0.999999881, 1.80938514e-07, -6.51925802e-08, 1.80938514e-07, 0.99999994, 3.16649675e-08, -6.51925802e-08, 3.16649675e-08, 0.999999166) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1665 | CFrame.new(-0.0562468916, 1.5148555, -0.185029209, 0.985933602, -0.147041202, -0.0794581771, 0.166522875, 0.904925287, 0.391637921, 0.0143166762, -0.399360269, 0.916681409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1666 | CFrame.new(1.52798259, 0.437558174, 0.521697879, 0.997940063, -0.0485750884, 0.0419071428, -0.0418144763, 0.00291904411, 0.999121189, -0.0486547761, -0.99881494, 0.00088191824) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1667 | CFrame.new(-1.52652156, 0.0404321998, -7.48408866e-06, 0.997243881, 0.0741921589, -3.1106174e-07, -0.0741918012, 0.997244, -1.04247592e-05, -5.96046448e-07, 1.0473188e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1668 | CFrame.new(0.540302217, -1.99793744, -6.02283308e-06, 0.998698354, -0.0510029495, 5.62518835e-07, 0.0510033108, 0.998698413, -1.04014762e-05, -1.54599547e-07, 1.0486925e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1669 | CFrame.new(-0.539564013, -1.99794042, 9.50125104e-06, 0.998631001, 0.0523072742, -2.32830644e-07, -0.0523069166, 0.998631001, -1.04270875e-05, -4.45172191e-07, 1.04820356e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1670 | }, .4, false) | |
| 1671 | --KWeld.C0 = clerp(KWeld.C0, CFrame.new(-7.71878695e-06, -0.99999249, 0.25000006, -1.00000012, 5.82076609e-11, 8.94069672e-08, 8.94069672e-08, 4.42378223e-08, 1.00000012, 8.73114914e-11, 1.00000012, -4.3772161e-08) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
| 1672 | end | |
| 1673 | swait() | |
| 1674 | for i = 0, 0.45, 0.1 do | |
| 1675 | swait() | |
| 1676 | PlayAnimationFromTable({
| |
| 1677 | CFrame.new(0, -0, 0, 0.999999881, 1.80938514e-07, -6.51925802e-08, 1.80938514e-07, 0.99999994, 3.16649675e-08, -6.51925802e-08, 3.16649675e-08, 0.999999166) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1678 | CFrame.new(-0.0562468916, 1.5148555, -0.185029209, 0.985933602, -0.147041202, -0.0794581771, 0.166522875, 0.904925287, 0.391637921, 0.0143166762, -0.399360269, 0.916681409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1679 | CFrame.new(1.55079103, 1.21950901, 0.0761990994, 0.994141698, -0.090331316, 0.0593510792, -0.0904476494, -0.995900929, -0.000725974329, 0.0591732934, -0.00464646891, -0.998236537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1680 | CFrame.new(-1.52652156, 0.0404321998, -7.48408866e-06, 0.997243881, 0.0741921589, -3.1106174e-07, -0.0741918012, 0.997244, -1.04247592e-05, -5.96046448e-07, 1.0473188e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1681 | CFrame.new(0.540302217, -1.99793744, -6.02283308e-06, 0.998698354, -0.0510029495, 5.62518835e-07, 0.0510033108, 0.998698413, -1.04014762e-05, -1.54599547e-07, 1.0486925e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1682 | CFrame.new(-0.539564013, -1.99794042, 9.50125104e-06, 0.998631001, 0.0523072742, -2.32830644e-07, -0.0523069166, 0.998631001, -1.04270875e-05, -4.45172191e-07, 1.04820356e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1683 | }, .6, false) | |
| 1684 | end | |
| 1685 | if targetted.Name ~= "Quil_Cyndaquil" and targetted.Name ~= "Salvo_Starly" and targetted.Name ~= "CKbackup" and targetted.Name ~= "Lime_Pidgey" then | |
| 1686 | for i,v in next, Knifu:children() do | |
| 1687 | if v:IsA"BasePart" and v.Name ~= "Hitbox" then | |
| 1688 | v.Transparency = 1 | |
| 1689 | end | |
| 1690 | end | |
| 1691 | p2mit.Enabled = false | |
| 1692 | p3mit.Enabled = false | |
| 1693 | ohshityougothit(targetted) | |
| 1694 | fuckingdiethro(targetted) | |
| 1695 | wait(3) | |
| 1696 | for i,v in next, Knifu:children() do | |
| 1697 | if v:IsA"BasePart" and v.Name ~= "Hitbox" then | |
| 1698 | v.Transparency = 0 | |
| 1699 | end | |
| 1700 | end | |
| 1701 | p2mit.Enabled = true | |
| 1702 | p3mit.Enabled = true | |
| 1703 | attack = false | |
| 1704 | Character.Torso.Anchored = false | |
| 1705 | Humanoid.WalkSpeed = 8 | |
| 1706 | Humanoid.JumpPower = 50 | |
| 1707 | elseif targetted.Name == "CKbackup" then | |
| 1708 | wait(2) | |
| 1709 | for i = 0, 1, 0.1 do | |
| 1710 | swait() | |
| 1711 | PlayAnimationFromTable({
| |
| 1712 | CFrame.new(0, -0, 0, 0.999999881, 1.80938514e-07, -6.51925802e-08, 1.80938514e-07, 0.99999994, 3.16649675e-08, -6.51925802e-08, 3.16649675e-08, 0.999999166) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1713 | CFrame.new(-0.0562468916, 1.5148555, -0.185029209, 0.985933602, -0.147041202, -0.0794581771, 0.166522875, 0.904925287, 0.391637921, 0.0143166762, -0.399360269, 0.916681409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1714 | CFrame.new(1.56826949, 1.34040046, -0.462332547, 0.993520677, -0.100954898, 0.0522000715, -0.0726195872, -0.917213261, -0.391722202, 0.0874247849, 0.385393262, -0.918601215) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1715 | CFrame.new(-1.52652156, 0.0404321998, -7.48408866e-06, 0.997243881, 0.0741921589, -3.1106174e-07, -0.0741918012, 0.997244, -1.04247592e-05, -5.96046448e-07, 1.0473188e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1716 | CFrame.new(0.540302217, -1.99793744, -6.02283308e-06, 0.998698354, -0.0510029495, 5.62518835e-07, 0.0510033108, 0.998698413, -1.04014762e-05, -1.54599547e-07, 1.0486925e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1717 | CFrame.new(-0.539564013, -1.99794042, 9.50125104e-06, 0.998631001, 0.0523072742, -2.32830644e-07, -0.0523069166, 0.998631001, -1.04270875e-05, -4.45172191e-07, 1.04820356e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1718 | }, .3, false) | |
| 1719 | end | |
| 1720 | local sel = math.random(1,3) | |
| 1721 | if sel == 1 then | |
| 1722 | chat("Sorry, thought you were on the other side.")
| |
| 1723 | elseif sel == 2 then | |
| 1724 | chat("I forgot, we are one and the same. Psychopaths.")
| |
| 1725 | elseif sel == 3 then | |
| 1726 | chat("Oh, Psycho! How's the Genocider been?")
| |
| 1727 | end | |
| 1728 | wait(2) | |
| 1729 | attack = false | |
| 1730 | Character.Torso.Anchored = false | |
| 1731 | Humanoid.WalkSpeed = 8 | |
| 1732 | Humanoid.JumpPower = 50 | |
| 1733 | elseif targetted.Name == "Lime_Pidgey" then | |
| 1734 | wait(2) | |
| 1735 | local sel = math.random(1,3) | |
| 1736 | if sel == 1 then | |
| 1737 | chat("Sorry, thought you were on the other side.")
| |
| 1738 | elseif sel == 2 then | |
| 1739 | chat("Heyy... Jerry? I think it was?")
| |
| 1740 | elseif sel == 3 then | |
| 1741 | chat("Uhh... Sorry.")
| |
| 1742 | end | |
| 1743 | for i = 0, 5, 0.1 do | |
| 1744 | swait() | |
| 1745 | PlayAnimationFromTable({
| |
| 1746 | CFrame.new(0, 0, 0, 0.999999881, 5.04870979e-29, -4.21790838e-43, 5.04870979e-29, 1, -5.04870979e-29, -4.21790838e-43, -5.04870979e-29, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1747 | CFrame.new(-0.0399715528, 1.42130852, -0.217550665, 0.985933542, -0.136098281, -0.097015582, 0.166522697, 0.849608123, 0.500436008, 0.0143167432, -0.509551942, 0.860320628) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0- .4 * math.cos((sine) / 5), 0), | |
| 1748 | CFrame.new(1.57258642, 0.0433240086, 3.83948304e-08, 0.990993857, -0.133906633, -2.60571618e-08, 0.133906662, 0.990993977, 5.96046341e-08, 1.78410318e-08, -6.25570422e-08, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1749 | CFrame.new(-0.693957031, 0.999676406, -0.811627388, 0.817211449, -0.569911301, -0.0858340934, -0.499626935, -0.626295447, -0.598442137, 0.287295371, 0.531934083, -0.796558976) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1750 | CFrame.new(0.540301144, -1.99792778, 1.70425119e-06, 0.998698354, -0.0510031469, 6.26438805e-07, 0.0510031544, 0.998698473, -1.04335422e-05, -9.34800966e-08, 1.04519122e-05, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1751 | CFrame.new(-0.539563119, -1.99793291, 1.9016752e-06, 0.998630941, 0.0523070693, -1.67712614e-07, -0.0523070768, 0.99863106, -1.0458818e-05, -3.79587107e-07, 1.04532719e-05, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1752 | }, .3, false) | |
| 1753 | end | |
| 1754 | wait(2) | |
| 1755 | attack = false | |
| 1756 | Character.Torso.Anchored = false | |
| 1757 | Humanoid.WalkSpeed = 8 | |
| 1758 | Humanoid.JumpPower = 50 | |
| 1759 | elseif targetted.Name == "Salvo_Starly" then | |
| 1760 | wait(2) | |
| 1761 | for i = 0, 1, 0.1 do | |
| 1762 | swait() | |
| 1763 | PlayAnimationFromTable({
| |
| 1764 | CFrame.new(0, -0, 0, 0.999999881, 1.80938514e-07, -6.51925802e-08, 1.80938514e-07, 0.99999994, 3.16649675e-08, -6.51925802e-08, 3.16649675e-08, 0.999999166) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1765 | CFrame.new(-0.0562468916, 1.5148555, -0.185029209, 0.985933602, -0.147041202, -0.0794581771, 0.166522875, 0.904925287, 0.391637921, 0.0143166762, -0.399360269, 0.916681409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1766 | CFrame.new(1.56826949, 1.34040046, -0.462332547, 0.993520677, -0.100954898, 0.0522000715, -0.0726195872, -0.917213261, -0.391722202, 0.0874247849, 0.385393262, -0.918601215) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1767 | CFrame.new(-1.52652156, 0.0404321998, -7.48408866e-06, 0.997243881, 0.0741921589, -3.1106174e-07, -0.0741918012, 0.997244, -1.04247592e-05, -5.96046448e-07, 1.0473188e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1768 | CFrame.new(0.540302217, -1.99793744, -6.02283308e-06, 0.998698354, -0.0510029495, 5.62518835e-07, 0.0510033108, 0.998698413, -1.04014762e-05, -1.54599547e-07, 1.0486925e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1769 | CFrame.new(-0.539564013, -1.99794042, 9.50125104e-06, 0.998631001, 0.0523072742, -2.32830644e-07, -0.0523069166, 0.998631001, -1.04270875e-05, -4.45172191e-07, 1.04820356e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1770 | }, .3, false) | |
| 1771 | end | |
| 1772 | local sel = math.random(1,3) | |
| 1773 | if sel == 1 then | |
| 1774 | chat("Sorry, thought you were on the other side.")
| |
| 1775 | elseif sel == 2 then | |
| 1776 | chat("Ah, Genocider. We've got to talk more!")
| |
| 1777 | elseif sel == 3 then | |
| 1778 | chat("Oh, it's you.. How's Sugarie?")
| |
| 1779 | end | |
| 1780 | wait(2) | |
| 1781 | attack = false | |
| 1782 | Character.Torso.Anchored = false | |
| 1783 | Humanoid.WalkSpeed = 8 | |
| 1784 | Humanoid.JumpPower = 50 | |
| 1785 | else | |
| 1786 | wait(2) | |
| 1787 | for i = 0, 1, 0.1 do | |
| 1788 | swait() | |
| 1789 | PlayAnimationFromTable({
| |
| 1790 | CFrame.new(0, -0, 0, 0.999999881, 1.80938514e-07, -6.51925802e-08, 1.80938514e-07, 0.99999994, 3.16649675e-08, -6.51925802e-08, 3.16649675e-08, 0.999999166) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1791 | CFrame.new(-0.0562468916, 1.5148555, -0.185029209, 0.985933602, -0.147041202, -0.0794581771, 0.166522875, 0.904925287, 0.391637921, 0.0143166762, -0.399360269, 0.916681409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1792 | CFrame.new(1.56826949, 1.34040046, -0.462332547, 0.993520677, -0.100954898, 0.0522000715, -0.0726195872, -0.917213261, -0.391722202, 0.0874247849, 0.385393262, -0.918601215) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1793 | CFrame.new(-1.52652156, 0.0404321998, -7.48408866e-06, 0.997243881, 0.0741921589, -3.1106174e-07, -0.0741918012, 0.997244, -1.04247592e-05, -5.96046448e-07, 1.0473188e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1794 | CFrame.new(0.540302217, -1.99793744, -6.02283308e-06, 0.998698354, -0.0510029495, 5.62518835e-07, 0.0510033108, 0.998698413, -1.04014762e-05, -1.54599547e-07, 1.0486925e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1795 | CFrame.new(-0.539564013, -1.99794042, 9.50125104e-06, 0.998631001, 0.0523072742, -2.32830644e-07, -0.0523069166, 0.998631001, -1.04270875e-05, -4.45172191e-07, 1.04820356e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1796 | }, .3, false) | |
| 1797 | end | |
| 1798 | local sel = math.random(1,3) | |
| 1799 | if sel == 1 then | |
| 1800 | chat("Why.. Did I even try?")
| |
| 1801 | elseif sel == 2 then | |
| 1802 | chat("Sorry, Nebula. I thought you were against me")
| |
| 1803 | elseif sel == 3 then | |
| 1804 | chat("I can't")
| |
| 1805 | end | |
| 1806 | wait(2) | |
| 1807 | attack = false | |
| 1808 | Character.Torso.Anchored = false | |
| 1809 | Humanoid.WalkSpeed = 8 | |
| 1810 | Humanoid.JumpPower = 50 | |
| 1811 | end | |
| 1812 | end | |
| 1813 | function LockOn() | |
| 1814 | if Mouse.Target and Mouse.Target.Parent then | |
| 1815 | local a = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1816 | if a and a.Parent ~= Character then | |
| 1817 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=743521450", Character, 1, .8)
| |
| 1818 | coroutine.wrap(function() | |
| 1819 | if targetted ~= Mouse.Target.Parent then | |
| 1820 | targetted = Mouse.Target.Parent | |
| 1821 | img2.Size = UDim2.new(1,0,1,0) | |
| 1822 | img2.ImageTransparency = 0 | |
| 1823 | img2.Position = UDim2.new(0,0,0,0) | |
| 1824 | for i = 0, 2, 0.1 do | |
| 1825 | swait() | |
| 1826 | img2.Size = img2.Size + UDim2.new(.05,0,.05,0) | |
| 1827 | img2.Position = img2.Position + UDim2.new(-.025,0,-.025,0) | |
| 1828 | img2.ImageTransparency = img2.ImageTransparency + 0.05 | |
| 1829 | end | |
| 1830 | end | |
| 1831 | end)() | |
| 1832 | end | |
| 1833 | end | |
| 1834 | end | |
| 1835 | Mouse.KeyDown:connect(function(k) | |
| 1836 | if k == 'q' and attack == false and combo == false then | |
| 1837 | LockOn() | |
| 1838 | end | |
| 1839 | end) | |
| 1840 | Mouse.KeyDown:connect(function(k) | |
| 1841 | if k == 'z' and attack == false and targetted ~= nil and combo == false then | |
| 1842 | sleepchild() | |
| 1843 | end | |
| 1844 | end) | |
| 1845 | ||
| 1846 | ||
| 1847 | ||
| 1848 | Mouse.KeyDown:connect(function(k) | |
| 1849 | if targetted ~= nil and k == 't' and attack == false and combo == false then | |
| 1850 | throwit() | |
| 1851 | end | |
| 1852 | end) | |
| 1853 | ||
| 1854 | Mouse.KeyDown:connect(function(k) | |
| 1855 | if k == 'c' and attack == false and combo == false then | |
| 1856 | coroutine.wrap(function() | |
| 1857 | combo = true | |
| 1858 | Humanoid.WalkSpeed = 0 | |
| 1859 | Humanoid.JumpPower = 0 | |
| 1860 | local asd = false | |
| 1861 | for i = 0, 1.5, .1 do | |
| 1862 | wait(.1) | |
| 1863 | if combo == false then | |
| 1864 | asd = true | |
| 1865 | break; | |
| 1866 | end | |
| 1867 | end | |
| 1868 | if asd == false then | |
| 1869 | if combo == true or input ~= '' then | |
| 1870 | Humanoid.WalkSpeed = 8 | |
| 1871 | Humanoid.JumpPower = 50 | |
| 1872 | combo = false | |
| 1873 | input = '' | |
| 1874 | end | |
| 1875 | end | |
| 1876 | end)() | |
| 1877 | end | |
| 1878 | end) | |
| 1879 | ||
| 1880 | local Keys = {
| |
| 1881 | [48] = "LShift", | |
| 1882 | [13] = "Enter", | |
| 1883 | [32] = "Space", | |
| 1884 | [47] = "RShift", | |
| 1885 | [92] = "Backslash", | |
| 1886 | [50] = "LCtrl", | |
| 1887 | [52] = "LAlt", | |
| 1888 | [49] = "RCtrl", | |
| 1889 | [51] = "RAlt", | |
| 1890 | [8] = "Backspace", | |
| 1891 | [45] = "CapsLock" | |
| 1892 | ||
| 1893 | } | |
| 1894 | ||
| 1895 | local alreadyEnded = false | |
| 1896 | Mouse.KeyDown:connect(function(k) | |
| 1897 | if k == 'n' and not attack and not combo then | |
| 1898 | Sitting = not Sitting | |
| 1899 | end | |
| 1900 | end) | |
| 1901 | ||
| 1902 | Mouse.KeyDown:connect(function(k) | |
| 1903 | if attack == false and combo == true then | |
| 1904 | k = string.lower(k) | |
| 1905 | if k == 'c' or k == 'q' or k == 'e' or k == 'h' or k == 'r' or k == 't' or k == 'n' or k == 'z' or k == 'x' or k == 'm' or k == 'w' or k == 'a' or k == 's' or k == 'd' then | |
| 1906 | if #input < 8 then | |
| 1907 | input = input..k | |
| 1908 | print(input) | |
| 1909 | end | |
| 1910 | elseif Keys[string.byte(k)] == "Enter" then | |
| 1911 | combo = false | |
| 1912 | warn("Trying to execute combo: "..input)
| |
| 1913 | if string.lower(input) == "aawdq" then | |
| 1914 | if targetted and attack == false then | |
| 1915 | chainreaction() | |
| 1916 | elseif not targetted then | |
| 1917 | Humanoid.WalkSpeed = 8 | |
| 1918 | Humanoid.JumpPower = 50 | |
| 1919 | chat("I need a target!")
| |
| 1920 | end | |
| 1921 | elseif string.lower(input) == "etwzx" then | |
| 1922 | if attack == false then | |
| 1923 | if not alreadyEnded then | |
| 1924 | alreadyEnded = true | |
| 1925 | endit() | |
| 1926 | else | |
| 1927 | Humanoid.WalkSpeed = 8 | |
| 1928 | Humanoid.JumpPower = 50 | |
| 1929 | chat("I can't end it again..!")
| |
| 1930 | end | |
| 1931 | end | |
| 1932 | else | |
| 1933 | Humanoid.WalkSpeed = 8 | |
| 1934 | Humanoid.JumpPower = 50 | |
| 1935 | end | |
| 1936 | input = '' | |
| 1937 | end | |
| 1938 | end | |
| 1939 | end) | |
| 1940 | ||
| 1941 | local idleC = 0 | |
| 1942 | while true do | |
| 1943 | swait() | |
| 1944 | imgl.Rotation = imgl.Rotation + 3 | |
| 1945 | img2.Rotation = img2.Rotation + 3 | |
| 1946 | if targetted ~= nil then | |
| 1947 | abss.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
| |
| 1948 | abss.Enabled = true | |
| 1949 | elseif targetted == nil then | |
| 1950 | abss.Adornee = nil | |
| 1951 | abss.Enabled = false | |
| 1952 | end | |
| 1953 | for i, v in pairs(Character:GetChildren()) do | |
| 1954 | if v:IsA("Part") then
| |
| 1955 | v.Material = "SmoothPlastic" | |
| 1956 | elseif v:IsA("Accessory") then
| |
| 1957 | v:WaitForChild("Handle").Material = "SmoothPlastic"
| |
| 1958 | end | |
| 1959 | end | |
| 1960 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1961 | velocity = RootPart.Velocity.y | |
| 1962 | sine = sine + change | |
| 1963 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 1964 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 1965 | Anim = "Jump" | |
| 1966 | idleC = 0 | |
| 1967 | if attack == false then | |
| 1968 | PlayAnimationFromTable({
| |
| 1969 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1970 | CFrame.new(-0.0579944476, 1.48445117, -0.000906195492, 0.999631822, -0.0259140469, -0.00804444961, 0.0262291897, 0.998776913, 0.0419151038, 0.0069484422, -0.0421099029, 0.999089062) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1971 | CFrame.new(1.68067598, 0.167780995, 5.50026158e-08, 0.965881884, -0.258982956, -3.41060513e-13, 0.258982956, 0.965881884, 4.47034836e-07, 8.49010675e-08, 3.16640808e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1972 | CFrame.new(-1.67620921, 0.188169807, -3.04922651e-07, 0.95698452, 0.290146649, -2.61441073e-07, -0.290146649, 0.95698452, -1.0069979e-05, -2.89639524e-06, 1.04542296e-05, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1973 | CFrame.new(0.537238836, -1.93797374, 0.176598221, 0.998698533, -0.0506777391, -0.00574572897, 0.0510024093, 0.992341697, 0.112511501, -6.35704041e-08, -0.112657718, 0.993634105) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1974 | CFrame.new(-0.536944568, -1.94808352, 0.126473114, 0.998626292, 0.0520468242, 0.00521374354, -0.0523067154, 0.993665218, 0.0995327011, -3.84102691e-07, -0.099668026, 0.995023906) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1975 | }, .3, false) | |
| 1976 | KWeld.C0= CFrame.new(0,-.25,1)*CFrame.Angles(math.rad(-90),0,math.rad(180)) | |
| 1977 | end | |
| 1978 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 1979 | Anim = "Fall" | |
| 1980 | idleC = 0 | |
| 1981 | if attack == false then | |
| 1982 | PlayAnimationFromTable({
| |
| 1983 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1984 | CFrame.new(-0.0576509275, 1.50532985, -0.129091382, 0.999631822, -0.0231846143, -0.0140984114, 0.0262298863, 0.958684564, 0.283279002, 0.00694822101, -0.283544153, 0.958935201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1985 | CFrame.new(1.68622994, 0.21415168, 7.02040666e-08, 0.881990671, -0.471266806, -3.41060513e-13, 0.471266806, 0.881990671, 4.47034836e-07, 1.54493137e-07, 2.89139166e-07, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1986 | CFrame.new(-1.72513735, 0.240890861, 2.54038241e-07, 0.814108491, 0.58071363, -2.61430017e-07, -0.580713034, 0.814108849, -1.00698489e-05, -6.08482924e-06, 8.98058715e-06, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1987 | CFrame.new(0.536720514, -1.92783141, 0.223740995, 0.998698533, -0.0498600565, -0.0107376017, 0.0510031059, 0.976314366, 0.210260883, -3.04512355e-07, -0.210534185, 0.977587521) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1988 | CFrame.new(-0.535922825, -1.92850935, 0.222419083, 0.99863112, 0.0512506701, 0.0104565797, -0.0523065142, 0.978474379, 0.199629858, -3.7062793e-07, -0.199902818, 0.97981596) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1989 | }, .3, false) | |
| 1990 | KWeld.C0= CFrame.new(0,-.25,1)*CFrame.Angles(math.rad(-90),0,math.rad(180)) | |
| 1991 | end | |
| 1992 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 1993 | if Sitting then | |
| 1994 | Anim = "Sitting" | |
| 1995 | if attack == false then | |
| 1996 | idleC = idleC+1 | |
| 1997 | PlayAnimationFromTable({
| |
| 1998 | CFrame.new(0.000827711076, -1.65770507, 0.458721817, 0.999484241, -0.0122322068, 0.0296938289, 0.0252500642, 0.870653987, -0.491247624, -0.0198440049, 0.491744012, 0.870513737) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 1999 | CFrame.new(-0.0562419407, 1.51485705, -0.185010612, 0.985933542, -0.147043079, -0.0794572532, 0.166523844, 0.904925764, 0.391636789, 0.014315445, -0.399359286, 0.916682839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2000 | CFrame.new(1.49053812, -0.00525209308, 0.341132015, 0.968288898, -0.249781534, 0.0050949771, 0.230188534, 0.899891436, 0.370417148, -0.0971082747, -0.35749796, 0.928851664) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2001 | CFrame.new(-1.53550422, 0.00908520445, 0.289719999, 0.964274764, 0.237935737, 0.11645104, -0.264904231, 0.866110563, 0.423885047, -2.08616257e-06, -0.439589977, 0.898198724) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2002 | CFrame.new(0.877631247, -1.43620968, -0.684172571, 0.881371081, -0.470902473, 0.0379017182, 0.26241079, 0.421269089, -0.868151844, 0.392844826, 0.775101304, 0.494869024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2003 | CFrame.new(-0.741793275, -1.41195464, -0.697883487, 0.966170251, 0.249477178, -0.0653936565, -0.179010332, 0.466165125, -0.866398215, -0.18566227, 0.848794281, 0.495053828) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2004 | }, .3, false) | |
| 2005 | KWeld.C0= CFrame.new(0,-.25,1)*CFrame.Angles(math.rad(-90),0,math.rad(180)) | |
| 2006 | end | |
| 2007 | else | |
| 2008 | Anim = "Idle" | |
| 2009 | if attack == false then | |
| 2010 | idleC = idleC+1 | |
| 2011 | change = 1 | |
| 2012 | if idleC < 175 then | |
| 2013 | PlayAnimationFromTable({
| |
| 2014 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2015 | CFrame.new(-0.0575585738, 1.52553558, -0.218724757, 0.985934377, -0.143356442, -0.0859283879, 0.166522771, 0.886584163, 0.431554198, 0.0143168001, -0.439792335, 0.897985697) * CFrame.new(0, -.05- .05 * math.cos((sine) / 55), 0- .05 * math.cos((sine) / 55)) * CFrame.Angles(math.rad(0 - 5 * math.cos((sine) / 55)), 0, 0), | |
| 2016 | CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0- 0.025 * math.cos((sine) / 45), 0, 0) * CFrame.Angles(0, 0, 0- 0.05 * math.cos((sine) / 45)), | |
| 2017 | CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0+ 0.025 * math.cos((sine) / 45), 0, 0) * CFrame.Angles(0, 0, 0+ 0.05 * math.cos((sine) / 45)), | |
| 2018 | 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) * CFrame.Angles(0, 0, 0), | |
| 2019 | 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) * CFrame.Angles(0, 0, 0), | |
| 2020 | }, .3, false) | |
| 2021 | KWeld.C0= CFrame.new(0,-.25,1)*CFrame.Angles(math.rad(-90),0,math.rad(180)) | |
| 2022 | elseif idleC >= 175 and idleC < 200 then | |
| 2023 | PlayAnimationFromTable({
| |
| 2024 | CFrame.new(0, -0, 0, 0.999999881, 1.80938514e-07, -6.51925802e-08, 1.80938514e-07, 0.99999994, 3.16649675e-08, -6.51925802e-08, 3.16649675e-08, 0.999999166) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2025 | CFrame.new(-0.0562468916, 1.5148555, -0.185029209, 0.985933602, -0.147041202, -0.0794581771, 0.166522875, 0.904925287, 0.391637921, 0.0143166762, -0.399360269, 0.916681409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2026 | CFrame.new(1.29851341, 0.443963498, -0.396169066, 0.0157513712, 0.186539456, -0.982321262, -0.998143196, 0.0607455187, -0.00446989527, 0.0588377416, 0.980567396, 0.187149927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2027 | CFrame.new(-1.0340364, 0.367607117, -0.614107132, 0.883662701, -0.353060901, 0.307383537, 0.318954408, -0.0265178736, -0.94740808, 0.342643917, 0.935224652, 0.0891784057) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2028 | CFrame.new(0.540302217, -1.99793744, -6.02283308e-06, 0.998698354, -0.0510029495, 5.62518835e-07, 0.0510033108, 0.998698413, -1.04014762e-05, -1.54599547e-07, 1.0486925e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2029 | CFrame.new(-0.539564013, -1.99794042, 9.50125104e-06, 0.998631001, 0.0523072742, -2.32830644e-07, -0.0523069166, 0.998631001, -1.04270875e-05, -4.45172191e-07, 1.04820356e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2030 | }, .1, false) | |
| 2031 | KWeld.C0= CFrame.new(0,-.25,1)*CFrame.Angles(math.rad(-90),0,math.rad(180)) | |
| 2032 | elseif idleC >= 200 and idleC < 325 then | |
| 2033 | PlayAnimationFromTable({
| |
| 2034 | CFrame.new(0, -0, 0, 0.999999881, 1.80938514e-07, -6.51925802e-08, 1.80938514e-07, 0.99999994, 3.16649675e-08, -6.51925802e-08, 3.16649675e-08, 0.999999166) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2035 | CFrame.new(-0.0562468916, 1.5148555, -0.185029209, 0.985933602, -0.147041202, -0.0794581771, 0.166522875, 0.904925287, 0.391637921, 0.0143166762, -0.399360269, 0.916681409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2036 | CFrame.new(1.29851341, 0.443963498, -0.396169066, 0.0157513712, 0.186539456, -0.982321262, -0.998143196, 0.0607455187, -0.00446989527, 0.0588377416, 0.980567396, 0.187149927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2037 | CFrame.new(-0.454344451, 0.36049974, -0.596875072, 0.572839379, -0.80925262, 0.130250588, 0.259049803, 0.0279791299, -0.965458691, 0.777655363, 0.586793959, 0.225664154) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2038 | CFrame.new(0.540302217, -1.99793744, -6.02283308e-06, 0.998698354, -0.0510029495, 5.62518835e-07, 0.0510033108, 0.998698413, -1.04014762e-05, -1.54599547e-07, 1.0486925e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2039 | CFrame.new(-0.539564013, -1.99794042, 9.50125104e-06, 0.998631001, 0.0523072742, -2.32830644e-07, -0.0523069166, 0.998631001, -1.04270875e-05, -4.45172191e-07, 1.04820356e-05, 0.999999225) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2040 | }, .01, false) | |
| 2041 | else | |
| 2042 | idleC = 0 | |
| 2043 | end | |
| 2044 | end | |
| 2045 | end | |
| 2046 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 2047 | Anim = "Walk" | |
| 2048 | idleC = 0 | |
| 2049 | if attack == false then | |
| 2050 | PlayAnimationFromTable({
| |
| 2051 | CFrame.new(0, 0, 0, 1, -2.21689355e-12, -5.11591203e-13, -2.21689355e-12, 1, 7.74860496e-07, -5.11591203e-13, 7.74860496e-07, 1.00000048) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, 0, 0), | |
| 2052 | CFrame.new(-0.0595112406, 1.55331731, -0.0425721854, 0.999631822, -0.0248252042, -0.010953242, 0.0262294486, 0.987443328, 0.155781403, 0.00694842171, -0.156010598, 0.987731278) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
| 2053 | CFrame.new(1.54809988, 0.041232653, 1.35168499e-08, 0.996376455, -0.0850530341, -3.41060513e-13, 0.0850530341, 0.996376455, 4.47034836e-07, 2.78823862e-08, 3.26637689e-07, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
| 2054 | CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
| 2055 | 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+ .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), | |
| 2056 | 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- .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), | |
| 2057 | }, .3, false) | |
| 2058 | KWeld.C0= CFrame.new(0,-.25,1)*CFrame.Angles(math.rad(-90),0,math.rad(180)) | |
| 2059 | end | |
| 2060 | end | |
| 2061 | if 0 < #Effects then | |
| 2062 | for e = 1, #Effects do | |
| 2063 | if Effects[e] ~= nil then | |
| 2064 | local Thing = Effects[e] | |
| 2065 | if Thing ~= nil then | |
| 2066 | local Part = Thing[1] | |
| 2067 | local Mode = Thing[2] | |
| 2068 | local Delay = Thing[3] | |
| 2069 | local IncX = Thing[4] | |
| 2070 | local IncY = Thing[5] | |
| 2071 | local IncZ = Thing[6] | |
| 2072 | if Thing[2] == "Shoot" then | |
| 2073 | local Look = Thing[1] | |
| 2074 | local move = 30 | |
| 2075 | if Thing[8] == 3 then | |
| 2076 | move = 10 | |
| 2077 | end | |
| 2078 | local hit, pos = rayCast(Thing[4], Thing[1], move, m) | |
| 2079 | if Thing[10] ~= nil then | |
| 2080 | da = pos | |
| 2081 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
| 2082 | cfa = CFrame.new(Thing[4], pos) | |
| 2083 | tehCF = cfa:lerp(cf2, 0.2) | |
| 2084 | Thing[1] = tehCF.lookVector | |
| 2085 | end | |
| 2086 | local mag = (Thing[4] - pos).magnitude | |
| 2087 | 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) | |
| 2088 | if Thing[8] == 2 then | |
| 2089 | 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) | |
| 2090 | end | |
| 2091 | Thing[4] = Thing[4] + Look * move | |
| 2092 | Thing[3] = Thing[3] - 1 | |
| 2093 | if 2 < Thing[5] then | |
| 2094 | Thing[5] = Thing[5] - 0.3 | |
| 2095 | Thing[6] = Thing[6] - 0.3 | |
| 2096 | end | |
| 2097 | if hit ~= nil then | |
| 2098 | Thing[3] = 0 | |
| 2099 | if Thing[8] == 1 or Thing[8] == 3 then | |
| 2100 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
| 2101 | else | |
| 2102 | if Thing[8] == 2 then | |
| 2103 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
| 2104 | if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then
| |
| 2105 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
| |
| 2106 | ref.Anchored = true | |
| 2107 | ref.CFrame = CFrame.new(pos) | |
| 2108 | CFuncs["Sound"].Create("161006093", ref, 1, 1.2)
| |
| 2109 | game:GetService("Debris"):AddItem(ref, 0.2)
| |
| 2110 | 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) | |
| 2111 | 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)
| |
| 2112 | MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1) | |
| 2113 | end | |
| 2114 | end | |
| 2115 | end | |
| 2116 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new())
| |
| 2117 | ref.Anchored = true | |
| 2118 | ref.CFrame = CFrame.new(pos) | |
| 2119 | Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) | |
| 2120 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 2121 | end | |
| 2122 | if Thing[3] <= 0 then | |
| 2123 | table.remove(Effects, e) | |
| 2124 | end | |
| 2125 | end | |
| 2126 | do | |
| 2127 | do | |
| 2128 | if Thing[2] == "FireWave" then | |
| 2129 | if Thing[3] <= Thing[4] then | |
| 2130 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
| 2131 | Thing[3] = Thing[3] + 1 | |
| 2132 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
| 2133 | else | |
| 2134 | Part.Parent = nil | |
| 2135 | table.remove(Effects, e) | |
| 2136 | end | |
| 2137 | end | |
| 2138 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
| 2139 | if Thing[1].Transparency <= 1 then | |
| 2140 | if Thing[2] == "Block1" then | |
| 2141 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 2142 | Mesh = Thing[7] | |
| 2143 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2144 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2145 | else | |
| 2146 | if Thing[2] == "Block2" then | |
| 2147 | Thing[1].CFrame = Thing[1].CFrame | |
| 2148 | Mesh = Thing[7] | |
| 2149 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2150 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2151 | else | |
| 2152 | if Thing[2] == "Fire" then | |
| 2153 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
| 2154 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 2155 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2156 | else | |
| 2157 | if Thing[2] == "Cylinder" then | |
| 2158 | Mesh = Thing[7] | |
| 2159 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2160 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2161 | else | |
| 2162 | if Thing[2] == "Blood" then | |
| 2163 | Mesh = Thing[7] | |
| 2164 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
| 2165 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2166 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2167 | else | |
| 2168 | if Thing[2] == "Elec" then | |
| 2169 | Mesh = Thing[10] | |
| 2170 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 2171 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2172 | else | |
| 2173 | if Thing[2] == "Disappear" then | |
| 2174 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2175 | else | |
| 2176 | if Thing[2] == "Shatter" then | |
| 2177 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2178 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 2179 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 2180 | Thing[6] = Thing[6] + Thing[5] | |
| 2181 | end | |
| 2182 | end | |
| 2183 | end | |
| 2184 | end | |
| 2185 | end | |
| 2186 | end | |
| 2187 | end | |
| 2188 | end | |
| 2189 | else | |
| 2190 | Part.Parent = nil | |
| 2191 | table.remove(Effects, e) | |
| 2192 | end | |
| 2193 | end | |
| 2194 | end | |
| 2195 | end | |
| 2196 | end | |
| 2197 | end | |
| 2198 | end | |
| 2199 | end | |
| 2200 | end |