SHOW:
|
|
- or go back to the newest paste.
| 1 | - | Player = game:GetService("Players").LocalPlayer
|
| 1 | + | -- This script has been converted to FE by TameDoNotClick :) |
| 2 | ||
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | print("Translated to FE by me, TameDoNotClick. Enjoy ;)")
| |
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | - | mouse = Player:GetMouse() |
| 63 | + | local Event = script:WaitForChild("UserInput_Event")
|
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | Player = owner | |
| 88 | Character = Player.Character | |
| 89 | PlayerGui = Player.PlayerGui | |
| 90 | Backpack = Player.Backpack | |
| 91 | Torso = Character.Torso | |
| 92 | Head = Character.Head | |
| 93 | Humanoid = Character.Humanoid | |
| 94 | LeftArm = Character["Left Arm"] | |
| 95 | LeftLeg = Character["Left Leg"] | |
| 96 | RightArm = Character["Right Arm"] | |
| 97 | RightLeg = Character["Right Leg"] | |
| 98 | LS = Torso["Left Shoulder"] | |
| 99 | LH = Torso["Left Hip"] | |
| 100 | RS = Torso["Right Shoulder"] | |
| 101 | it = Instance.new | |
| 102 | RH = Torso["Right Hip"] | |
| 103 | Face = Head.face | |
| 104 | Neck = Torso.Neck | |
| 105 | xenabled = true | |
| 106 | cenabled = true | |
| 107 | venabled = true | |
| 108 | zenabled = true | |
| 109 | attacktype = 1 | |
| 110 | vt = Vector3.new | |
| 111 | cf = CFrame.new | |
| 112 | euler = CFrame.fromEulerAnglesXYZ | |
| 113 | angles = CFrame.Angles | |
| 114 | cloaked = false | |
| 115 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 116 | necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 117 | LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 118 | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 119 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 120 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 121 | RootPart = Character.HumanoidRootPart | |
| 122 | RootJoint = RootPart.RootJoint | |
| 123 | RootCF = euler(-1.57, 0, 3.14) | |
| 124 | attack = false | |
| 125 | attackdebounce = false | |
| 126 | deb = false | |
| 127 | equipped = true | |
| 128 | hand = false | |
| 129 | MMouse = nil | |
| 130 | combo = 0 | |
| 131 | mana = 100 | |
| 132 | trispeed = 0.2 | |
| 133 | attackmode = "none" | |
| 134 | local idle = 0 | |
| 135 | local Anim = "Idle" | |
| 136 | local Effects = {}
| |
| 137 | local gun = false | |
| 138 | ZTarget = nil | |
| 139 | RocketTarget = nil | |
| 140 | local shoot = false | |
| 141 | player = nil | |
| 142 | mana = 100 | |
| 143 | cam = workspace.CurrentCamera | |
| 144 | ZTarget = nil | |
| 145 | RocketTarget = nil | |
| 146 | local m = Instance.new("Model", Character)
| |
| 147 | m.Name = "WeaponModel" | |
| 148 | Humanoid.JumpPower = 100 | |
| 149 | RSH = nil | |
| 150 | RW = Instance.new("Weld")
| |
| 151 | RW.Name = "Right Shoulder" | |
| 152 | LW = Instance.new("Weld")
| |
| 153 | LW.Name = "Left Shoulder" | |
| 154 | LH = Torso["Left Hip"] | |
| 155 | RH = Torso["Right Hip"] | |
| 156 | TorsoColor = Torso.BrickColor | |
| 157 | NoOutline = function(Part) | |
| 158 | Part.TopSurface = 10 | |
| 159 | end | |
| 160 | ||
| 161 | player = Player | |
| 162 | ch = Character | |
| 163 | RSH = ch.Torso["Right Shoulder"] | |
| 164 | LSH = ch.Torso["Left Shoulder"] | |
| 165 | RSH.Parent = nil | |
| 166 | LSH.Parent = nil | |
| 167 | RW.Name = "Right Shoulder" | |
| 168 | RW.Part0 = ch.Torso | |
| 169 | RW.C0 = cf(1.5, 0.5, 0) | |
| 170 | RW.C1 = cf(0, 0.5, 0) | |
| 171 | RW.Part1 = ch["Right Arm"] | |
| 172 | RW.Parent = ch.Torso | |
| 173 | LW.Name = "Left Shoulder" | |
| 174 | LW.Part0 = ch.Torso | |
| 175 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 176 | LW.C1 = cf(0, 0.5, 0) | |
| 177 | LW.Part1 = ch["Left Arm"] | |
| 178 | LW.Parent = ch.Torso | |
| 179 | RemoveOutlines = function(part) | |
| 180 | part.TopSurface = 10 | |
| 181 | end | |
| 182 | ||
| 183 | CreatePart = function(FormFactor, Parent, Material, Reflectance, Transparency, BC, Name, Size) | |
| 184 | local Part = Instance.new("Part")
| |
| 185 | Part.formFactor = FormFactor | |
| 186 | Part.Parent = Parent | |
| 187 | Part.Reflectance = Reflectance | |
| 188 | Part.Transparency = Transparency | |
| 189 | Part.CanCollide = false | |
| 190 | Part.Locked = true | |
| 191 | Part.BrickColor = BrickColor.new(tostring(BC)) | |
| 192 | Part.Name = Name | |
| 193 | Part.Size = Size | |
| 194 | Part.Material = Material | |
| 195 | RemoveOutlines(Part) | |
| 196 | return Part | |
| 197 | end | |
| 198 | ||
| 199 | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 200 | local Msh = Instance.new(Mesh) | |
| 201 | Msh.Parent = Part | |
| 202 | Msh.Offset = OffSet | |
| 203 | Msh.Scale = Scale | |
| 204 | if Mesh == "SpecialMesh" then | |
| 205 | Msh.MeshType = MeshType | |
| 206 | Msh.MeshId = MeshId | |
| 207 | end | |
| 208 | return Msh | |
| 209 | end | |
| 210 | ||
| 211 | CreateWeld = function(Parent, P0, P1, c0, c1) | |
| 212 | local W = Instance.new("Weld")
| |
| 213 | W.Parent = Parent | |
| 214 | W.Part0 = P0 | |
| 215 | W.Part1 = P1 | |
| 216 | W.C0 = c0 | |
| 217 | W.C1 = c1 | |
| 218 | return W | |
| 219 | end | |
| 220 | ||
| 221 | it = Instance.new | |
| 222 | local fengui = it("GuiMain")
| |
| 223 | fengui.Parent = Player.PlayerGui | |
| 224 | fengui.Name = "WeaponGUI" | |
| 225 | local fenframe = it("Frame")
| |
| 226 | fenframe.Parent = fengui | |
| 227 | fenframe.BackgroundColor3 = Color3.new(255, 255, 255) | |
| 228 | fenframe.BackgroundTransparency = 1 | |
| 229 | fenframe.BorderColor3 = Color3.new(17, 17, 17) | |
| 230 | fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0) | |
| 231 | fenframe.Position = UDim2.new(0.4, 0, 0.1, 0) | |
| 232 | local fenbarmana1 = it("TextLabel")
| |
| 233 | fenbarmana1.Parent = fenframe | |
| 234 | fenbarmana1.Text = " " | |
| 235 | fenbarmana1.BackgroundTransparency = 0 | |
| 236 | fenbarmana1.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 237 | fenbarmana1.SizeConstraint = "RelativeXY" | |
| 238 | fenbarmana1.TextXAlignment = "Center" | |
| 239 | fenbarmana1.TextYAlignment = "Center" | |
| 240 | fenbarmana1.Position = UDim2.new(0, 0, 0, 0) | |
| 241 | fenbarmana1.Size = UDim2.new(4, 0, 0.2, 0) | |
| 242 | local fenbarmana2 = it("TextLabel")
| |
| 243 | fenbarmana2.Parent = fenframe | |
| 244 | fenbarmana2.Text = " " | |
| 245 | fenbarmana2.BackgroundTransparency = 0 | |
| 246 | fenbarmana2.BackgroundColor3 = Torso.Color | |
| 247 | fenbarmana2.SizeConstraint = "RelativeXY" | |
| 248 | fenbarmana2.TextXAlignment = "Center" | |
| 249 | fenbarmana2.TextYAlignment = "Center" | |
| 250 | fenbarmana2.Position = UDim2.new(0, 0, 0, 0) | |
| 251 | fenbarmana2.Size = UDim2.new(4 * mana / 100, 0, 0.2, 0) | |
| 252 | local fenbarmana3 = it("TextLabel")
| |
| 253 | fenbarmana3.Parent = fenframe | |
| 254 | fenbarmana3.Text = " " | |
| 255 | fenbarmana3.BackgroundTransparency = 0 | |
| 256 | fenbarmana3.BackgroundColor3 = Color3.new(Col1, Col2, Col3) | |
| 257 | fenbarmana3.SizeConstraint = "RelativeXY" | |
| 258 | fenbarmana3.TextXAlignment = "Center" | |
| 259 | fenbarmana3.TextYAlignment = "Center" | |
| 260 | fenbarmana3.Position = UDim2.new(0, 0, 0, 0) | |
| 261 | fenbarmana3.Size = UDim2.new(0, 0, 0.2, 0) | |
| 262 | local fenbarmana4 = it("TextLabel")
| |
| 263 | fenbarmana4.Parent = fenframe | |
| 264 | fenbarmana4.Text = "Energy(" .. mana .. ")"
| |
| 265 | fenbarmana4.BackgroundTransparency = 1 | |
| 266 | fenbarmana4.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 267 | fenbarmana4.SizeConstraint = "RelativeXY" | |
| 268 | fenbarmana4.TextXAlignment = "Center" | |
| 269 | fenbarmana4.TextYAlignment = "Center" | |
| 270 | fenbarmana4.Position = UDim2.new(0, 0, -0.3, 0) | |
| 271 | fenbarmana4.Size = UDim2.new(4, 0, 0.2, 0) | |
| 272 | fenbarmana4.FontSize = "Size9" | |
| 273 | fenbarmana4.TextStrokeTransparency = 0 | |
| 274 | fenbarmana4.TextColor = BrickColor.new("White")
| |
| 275 | so = function(id, par, vol, pit) | |
| 276 | coroutine.resume(coroutine.create(function() | |
| 277 | local sou = Instance.new("Sound", par or workspace)
| |
| 278 | sou.Volume = vol | |
| 279 | sou.Pitch = pit or 1 | |
| 280 | sou.SoundId = id | |
| 281 | swait() | |
| 282 | sou:play() | |
| 283 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 284 | end | |
| 285 | )) | |
| 286 | end | |
| 287 | ||
| 288 | clerp = function(a, b, t) | |
| 289 | return a:lerp(b, t) | |
| 290 | end | |
| 291 | ||
| 292 | makegui = function(ador, text) | |
| 293 | local a = math.random(-10, 10) / 100 | |
| 294 | local bg = Instance.new("BillboardGui", m)
| |
| 295 | bg.Adornee = ador | |
| 296 | bg.Size = UDim2.new(1, 0, 1, 0) | |
| 297 | bg.StudsOffset = Vector3.new(0, 0, 0) | |
| 298 | bg.AlwaysOnTop = false | |
| 299 | local tl = Instance.new("TextLabel", bg)
| |
| 300 | tl.BackgroundTransparency = 1 | |
| 301 | tl.Size = UDim2.new(1, 0, 1, 0) | |
| 302 | tl.Text = text | |
| 303 | tl.Font = "SourceSansBold" | |
| 304 | tl.FontSize = "Size42" | |
| 305 | tl.TextColor3 = Color3.new(255, 255, 255) | |
| 306 | tl.TextStrokeTransparency = 0 | |
| 307 | tl.TextScaled = true | |
| 308 | tl.TextWrapped = true | |
| 309 | coroutine.wrap(function() | |
| 310 | for i = 1, 50 do | |
| 311 | swait() | |
| 312 | bg.StudsOffset = bg.StudsOffset + Vector3.new(a, 0.1, a) | |
| 313 | end | |
| 314 | wait(1) | |
| 315 | for i = 1, 10 do | |
| 316 | swait() | |
| 317 | tl.TextTransparency = tl.TextTransparency + 0.1 | |
| 318 | end | |
| 319 | wait(5) | |
| 320 | bg:remove() | |
| 321 | end | |
| 322 | )() | |
| 323 | end | |
| 324 | ||
| 325 | local fengui = it("GuiMain")
| |
| 326 | fengui.Parent = Player.PlayerGui | |
| 327 | fengui.Name = "WeaponGUI" | |
| 328 | local fenframe1 = it("TextLabel")
| |
| 329 | fenframe1.Parent = fengui | |
| 330 | fenframe1.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255) | |
| 331 | fenframe1.BackgroundTransparency = 0.3 | |
| 332 | fenframe1.BorderSizePixel = 5 | |
| 333 | fenframe1.BorderColor3 = Color3.new(1, 1, 1) | |
| 334 | fenframe1.Size = UDim2.new(0.05, 0, 0.1, 0) | |
| 335 | fenframe1.Position = UDim2.new(0.325, 0, 0.7, 0) | |
| 336 | fenframe1.Text = "Z" | |
| 337 | fenframe1.TextWrapped = true | |
| 338 | fenframe1.FontSize = 7 | |
| 339 | fenframe1.TextColor3 = Color3.new(1, 1, 1) | |
| 340 | local fenframe1a = it("TextLabel")
| |
| 341 | fenframe1a.Parent = fengui | |
| 342 | fenframe1a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902) | |
| 343 | fenframe1a.BackgroundTransparency = 0.3 | |
| 344 | fenframe1a.BorderSizePixel = 5 | |
| 345 | fenframe1a.BorderColor3 = Color3.new(1, 1, 1) | |
| 346 | fenframe1a.Size = UDim2.new(0.05, 0, 0.1, 0) | |
| 347 | fenframe1a.Position = UDim2.new(0.325, 0, 0.7, 0) | |
| 348 | fenframe1a.Text = "" | |
| 349 | local fenframe2 = it("TextLabel")
| |
| 350 | fenframe2.Parent = fengui | |
| 351 | fenframe2.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255) | |
| 352 | fenframe2.BackgroundTransparency = 0.3 | |
| 353 | fenframe2.BorderSizePixel = 5 | |
| 354 | fenframe2.BorderColor3 = Color3.new(1, 1, 1) | |
| 355 | fenframe2.Size = UDim2.new(0.05, 0, 0.1, 0) | |
| 356 | fenframe2.Position = UDim2.new(0.425, 0, 0.7, 0) | |
| 357 | fenframe2.Text = "X" | |
| 358 | fenframe2.TextWrapped = true | |
| 359 | fenframe2.FontSize = 7 | |
| 360 | fenframe2.TextColor3 = Color3.new(1, 1, 1) | |
| 361 | local fenframe2a = it("TextLabel")
| |
| 362 | fenframe2a.Parent = fengui | |
| 363 | fenframe2a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902) | |
| 364 | fenframe2a.BackgroundTransparency = 0.3 | |
| 365 | fenframe2a.BorderSizePixel = 5 | |
| 366 | fenframe2a.BorderColor3 = Color3.new(1, 1, 1) | |
| 367 | fenframe2a.Size = UDim2.new(0.05, 0, 0.1, 0) | |
| 368 | fenframe2a.Position = UDim2.new(0.425, 0, 0.7, 0) | |
| 369 | fenframe2a.Text = "" | |
| 370 | local fenframe3 = it("TextLabel")
| |
| 371 | fenframe3.Parent = fengui | |
| 372 | fenframe3.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255) | |
| 373 | fenframe3.BackgroundTransparency = 0.3 | |
| 374 | fenframe3.BorderSizePixel = 5 | |
| 375 | fenframe3.BorderColor3 = Color3.new(1, 1, 1) | |
| 376 | fenframe3.Size = UDim2.new(0.05, 0, 0.1, 0) | |
| 377 | fenframe3.Position = UDim2.new(0.525, 0, 0.7, 0) | |
| 378 | fenframe3.Text = "C" | |
| 379 | fenframe3.TextWrapped = true | |
| 380 | fenframe3.FontSize = 7 | |
| 381 | fenframe3.TextColor3 = Color3.new(1, 1, 1) | |
| 382 | local fenframe3a = it("TextLabel")
| |
| 383 | fenframe3a.Parent = fengui | |
| 384 | fenframe3a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902) | |
| 385 | fenframe3a.BackgroundTransparency = 0.3 | |
| 386 | fenframe3a.BorderSizePixel = 5 | |
| 387 | fenframe3a.BorderColor3 = Color3.new(1, 1, 1) | |
| 388 | fenframe3a.Size = UDim2.new(0.05, 0, 0.1, 0) | |
| 389 | fenframe3a.Position = UDim2.new(0.525, 0, 0.7, 0) | |
| 390 | fenframe3a.Text = "" | |
| 391 | local fenframe4 = it("TextLabel")
| |
| 392 | fenframe4.Parent = fengui | |
| 393 | fenframe4.BackgroundColor3 = Color3.new(0.19607843137255, 0.19607843137255, 0.19607843137255) | |
| 394 | fenframe4.BackgroundTransparency = 0.3 | |
| 395 | fenframe4.BorderSizePixel = 5 | |
| 396 | fenframe4.BorderColor3 = Color3.new(1, 1, 1) | |
| 397 | fenframe4.Size = UDim2.new(0.05, 0, 0.1, 0) | |
| 398 | fenframe4.Position = UDim2.new(0.625, 0, 0.7, 0) | |
| 399 | fenframe4.Text = "V" | |
| 400 | fenframe4.TextWrapped = true | |
| 401 | fenframe4.FontSize = 7 | |
| 402 | fenframe4.TextColor3 = Color3.new(1, 1, 1) | |
| 403 | local fenframe4a = it("TextLabel")
| |
| 404 | fenframe4a.Parent = fengui | |
| 405 | fenframe4a.BackgroundColor3 = Color3.new(0.7843137254902, 0.7843137254902, 0.7843137254902) | |
| 406 | fenframe4a.BackgroundTransparency = 0.3 | |
| 407 | fenframe4a.BorderSizePixel = 5 | |
| 408 | fenframe4a.BorderColor3 = Color3.new(1, 1, 1) | |
| 409 | fenframe4a.Size = UDim2.new(0.05, 0, 0.1, 0) | |
| 410 | fenframe4a.Position = UDim2.new(0.625, 0, 0.7, 0) | |
| 411 | fenframe4a.Text = "" | |
| 412 | fenframe1a.Size = UDim2.new(0, 0, 0.1, 0) | |
| 413 | fenframe2a.Size = UDim2.new(0, 0, 0.1, 0) | |
| 414 | fenframe3a.Size = UDim2.new(0, 0, 0.1, 0) | |
| 415 | fenframe4a.Size = UDim2.new(0, 0, 0.1, 0) | |
| 416 | damage = function(hit, mind, maxd, knock, type, prop) | |
| 417 | if hit.Parent == nil then | |
| 418 | return | |
| 419 | end | |
| 420 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 421 | for i,v in pairs(hit.Parent:children()) do | |
| 422 | if v:IsA("Humanoid") then
| |
| 423 | h = v | |
| 424 | end | |
| 425 | end | |
| 426 | if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
| |
| 427 | h = hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 428 | end | |
| 429 | if hit.Parent:IsA("Hat") then
| |
| 430 | hit = hit.Parent.Parent:findFirstChild("Head")
| |
| 431 | end | |
| 432 | local D = math.random(mind, maxd) | |
| 433 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 434 | if type == 1 then | |
| 435 | h.Health = h.Health - D | |
| 436 | makegui(h.Parent.Torso, tostring(D)) | |
| 437 | so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
| |
| 438 | local vp = Instance.new("BodyVelocity")
| |
| 439 | vp.P = 500 | |
| 440 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
| 441 | vp.velocity = prop.CFrame.lookVector * knock + prop.Velocity / 1.05 | |
| 442 | if knock > 0 then | |
| 443 | vp.Parent = hit.Parent.Torso | |
| 444 | end | |
| 445 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 446 | else | |
| 447 | do | |
| 448 | if type == 2 then | |
| 449 | so("http://www.roblox.com/asset/?id=169462037", hit, 1, math.random(150, 200) / 100)
| |
| 450 | h.Health = h.Health - D | |
| 451 | makegui(h.Parent.Torso, tostring(D)) | |
| 452 | end | |
| 453 | end | |
| 454 | end | |
| 455 | end | |
| 456 | end | |
| 457 | ||
| 458 | rayCast = function(Pos, Dir, Max, Ignore) | |
| 459 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 460 | end | |
| 461 | ||
| 462 | Handle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Lime green", "Handle", Vector3.new(0.301632881, 2.05244946, 0.301632911)) | |
| 463 | Handleweld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.900724411, 0.0686532855, 0.100441933, -9.87591953e-013, -0.999999881, 4.85088272e-012, 5.21260915e-007, -4.85088272e-012, -1, 1, -9.87589351e-013, 5.21260915e-007)) | |
| 464 | Handle2 = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Lime green", "Handle2", Vector3.new(0.301632881, 2.05244946, 0.301632911)) | |
| 465 | Handleweld2 = CreateWeld(m, Character["Left Arm"], Handle2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.900724411, 0.0686532855, 0.100441933, -9.87591953e-013, -0.999999881, 4.85088272e-012, 5.21260915e-007, -4.85088272e-012, -1, 1, -9.87589351e-013, 5.21260915e-007)) | |
| 466 | CreateMesh("CylinderMesh", Handle2, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 467 | FakeHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Lime green", "FakeHandle", Vector3.new(0.301632881, 1.05244946, 0.301632911)) | |
| 468 | FakeHandleweld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.100000024, 0, 1, 0, 3.49105374e-020, 0, 1, 0, 3.49105374e-020, 0, 1)) | |
| 469 | FakeHandle2 = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0.3, "Lime green", "FakeHandle2", Vector3.new(0.301632881, 1.05244946, 0.301632911)) | |
| 470 | FakeHandleweld2 = CreateWeld(m, Handle2, FakeHandle2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.12, -0.100000024, 1.25, 1, 0, 3.49105374e-020, 0, 1, 0, 3.49105374e-020, 0, 1)) | |
| 471 | CreateMesh("CylinderMesh", FakeHandle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 472 | CreateMesh("SpecialMesh", FakeHandle2, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=45728702", Vector3.new(0, 0, 0), Vector3.new(2, 3, 3))
| |
| 473 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0.5, "Lime green", "Part", Vector3.new(0.200000003, 0.904898763, 1.50816441)) | |
| 474 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000781536102, 0.000250577927, 6.81403255, -1.49028878e-008, 9.31697571e-007, -0.999994278, 0.999994278, 1.89689118e-007, -1.49028523e-008, 1.89689047e-007, -0.999999702, -1.03599632e-006)) | |
| 475 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.123669446, 1, 1))
| |
| 476 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.452449292, 0.200000003, 0.301632941)) | |
| 477 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000460863113, -0.000703811646, 5.1551156, 0.999994278, -2.56082499e-011, -8.24284271e-013, 7.24824226e-013, 6.13397333e-010, 0.999994278, -2.4641773e-011, -0.999999702, -1.0368808e-007)) | |
| 478 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.904898703, 1))
| |
| 479 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0.5, 0, "Light stone grey", "Part", Vector3.new(0.200000003, 0.603265822, 1.05571508)) | |
| 480 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000776290894, 0.00021648407, 6.58780527, -1.49040176e-008, 1.66174368e-006, -0.999994278, 0.999994278, 1.89681401e-007, -1.4903847e-008, 1.89681316e-007, -0.999999702, -1.76603862e-006)) | |
| 481 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 1, 1))
| |
| 482 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 4.67530966, 0.200000003)) | |
| 483 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000900506973, -3.72235155, -0.000814437866, 0.999994278, -9.57904242e-011, -5.90481917e-012, 9.48240444e-011, 0.999999702, 7.09023971e-006, 5.73459726e-012, -6.98597478e-006, 0.999994278)) | |
| 484 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 1, 0.829490483))
| |
| 485 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.452449292, 0.200000003, 0.301632941)) | |
| 486 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000506877899, -0.000769615173, 4.40096092, 0.999994278, -7.22328586e-011, -4.83882639e-012, 4.68256814e-012, -4.27471787e-006, 0.999994278, -7.12533782e-011, -0.999999702, -4.37899871e-006)) | |
| 487 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.904898703, 1))
| |
| 488 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 489 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000766277313, -0.226443529, -3.57149124, 1.48977106e-008, 6.26339715e-006, -0.999994278, -0.999994278, -1.93668285e-007, -1.48987827e-008, -1.93668299e-007, 0.999999702, 6.36766708e-006)) | |
| 490 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 0.754082263, 0.754082263))
| |
| 491 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lime green", "Part", Vector3.new(0.200000003, 4.67530966, 0.200000003)) | |
| 492 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000900506973, -3.72235155, -0.000761985779, 0.999994278, -9.81090348e-011, -6.22590998e-012, 9.71359521e-011, 0.999999702, 7.29890962e-006, 6.05515291e-012, -7.19464515e-006, 0.999994278)) | |
| 493 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.120653138, 1, 0.837031305))
| |
| 494 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.603265882, 0.200000003)) | |
| 495 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.22638917, -3.94854045, -0.000765800476, 0.999994278, -7.93771299e-011, -4.7180081e-012, 7.83965046e-011, 0.999999702, 5.94327139e-006, 4.55733238e-012, -5.83899919e-006, 0.999994278)) | |
| 496 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 1, 0.754082263))
| |
| 497 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0.5, 0, "Light stone grey", "Part", Vector3.new(0.200000003, 1.65898108, 0.200000003)) | |
| 498 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.22638917, -5.2304635, -0.000760555267, 0.999994278, -6.92162577e-011, -4.20806055e-012, 6.8235681e-011, 0.999999702, 5.52625534e-006, 4.04747373e-012, -5.42198086e-006, 0.999994278)) | |
| 499 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 1, 0.754082263))
| |
| 500 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0.5, 0, "Light stone grey", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 501 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000786304474, 0.226445198, -4.32553482, -1.48974175e-008, -5.79835444e-007, 0.999994278, 0.999994278, -1.89793411e-007, 1.4897128e-008, 1.89791407e-007, 0.999999702, 6.84136694e-007)) | |
| 502 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 0.754082263, 0.754082263))
| |
| 503 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0.5, 0, "Light stone grey", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 504 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000786304474, 0.226443529, 3.57149148, -1.49031347e-008, 8.27100678e-007, -0.999994278, 0.999994278, 1.89686276e-007, -1.49031187e-008, 1.89686205e-007, -0.999999702, -9.31400564e-007)) | |
| 505 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 0.754082263, 0.754082263))
| |
| 506 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lime green", "Part", Vector3.new(0.452449292, 0.200000003, 0.200000003)) | |
| 507 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000460863113, 0.00170040131, 3.48783398, 0.999994278, -6.29633429e-011, -4.78628595e-012, 4.66688624e-012, -3.23251811e-006, 0.999994278, -6.19969701e-011, -0.999999702, -3.33680305e-006)) | |
| 508 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.942602754, 0.754082263))
| |
| 509 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lime green", "Part", Vector3.new(0.452449292, 0.200000003, 0.200000003)) | |
| 510 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000460863113, 0.00170660019, 5.14681053, 0.999994278, -6.29633429e-011, -4.78628595e-012, 4.66688624e-012, -3.23251811e-006, 0.999994278, -6.19969701e-011, -0.999999702, -3.33680305e-006)) | |
| 511 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.942602754, 0.754082263))
| |
| 512 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0.5, 0, "Light stone grey", "Part", Vector3.new(0.301632881, 4.67530966, 0.200000003)) | |
| 513 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000160694122, -3.72235155, -0.00077009201, 0.999994278, -7.02250896e-011, -3.89532287e-012, 6.9244506e-011, 0.999999702, 5.10900372e-006, 3.73475946e-012, -5.00472652e-006, 0.999994278)) | |
| 514 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.754082263))
| |
| 515 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lime green", "Part", Vector3.new(0.452449292, 0.200000003, 0.200000003)) | |
| 516 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000460863113, 0.00170373917, 4.3927021, 0.999994278, -6.29633429e-011, -4.78628595e-012, 4.66688624e-012, -3.23251811e-006, 0.999994278, -6.19969701e-011, -0.999999702, -3.33680305e-006)) | |
| 517 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.942602754, 0.754082263))
| |
| 518 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 519 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000761985779, -0.226445198, 4.32553482, 1.49031258e-008, -6.22759217e-006, 0.999994278, -0.999994278, 1.9377616e-007, 1.49045132e-008, -1.93774227e-007, -0.999999702, -6.3318621e-006)) | |
| 520 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 0.754082263, 0.754082263))
| |
| 521 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 522 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000786304474, -0.226062298, -3.57149124, 7.45085771e-008, -9.02447312e-007, 0.999994278, 0.999994278, -1.29337536e-007, -7.45088684e-008, 1.2933593e-007, 0.999999702, 1.00674674e-006)) | |
| 523 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 0.754082263, 0.754082263))
| |
| 524 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0.5, 0, "Light stone grey", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 525 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000760555267, 0.226063848, -4.32552719, -7.45085771e-008, 6.58613544e-006, -0.999994278, -0.999994278, -2.54132573e-007, 7.45070352e-008, -2.54131749e-007, 0.999999702, 6.69040401e-006)) | |
| 526 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 0.754082263, 0.754082263))
| |
| 527 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.452449352, 0.301632941, 0.301632911)) | |
| 528 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.40486073, 2.28881836e-005, 4.76837158e-007, -7.4510659e-008, 0.999999642, -5.19771334e-007, -0.999999464, 8.94021142e-008, -4.55381871e-010, 1.08580016e-008, 4.77549349e-007, 0.999999642)) | |
| 529 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.463006377, 0.473563731, 1.8791728))
| |
| 530 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Lime green", "Part", Vector3.new(0.301632881, 0.452449381, 0.301632911)) | |
| 531 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.5, 4.76837158e-007, 1, 0, 3.49105374e-020, 0, 1, 0, 3.49105374e-020, 0, 1)) | |
| 532 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 533 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632881, 0.200000003, 0.301632911)) | |
| 534 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000160694122, -0.706498325, -0.000161170959, 0.999994278, -8.12544892e-011, -4.6401741e-012, 8.02827874e-011, 0.999999702, 5.73445595e-006, 4.46345478e-012, -5.63018284e-006, 0.999994278)) | |
| 535 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.754082263, 1))
| |
| 536 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 537 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000784397125, -0.226063848, 4.32552719, -7.45085771e-008, 9.38253208e-007, -0.999994278, 0.999994278, 2.58115534e-007, -7.45084705e-008, 2.5811508e-007, -0.999999702, -1.04255219e-006)) | |
| 538 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 0.754082263, 0.754082263))
| |
| 539 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Lime green", "Part", Vector3.new(0.301632881, 0.452449381, 0.301632911)) | |
| 540 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000160694122, -0.404852629, -0.000162601471, 0.999994278, -8.12544892e-011, -4.6401741e-012, 8.02827874e-011, 0.999999702, 5.73445595e-006, 4.46345478e-012, -5.63018284e-006, 0.999994278)) | |
| 541 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 542 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Lime green", "Part", Vector3.new(0.301632881, 0.200000003, 0.301632911)) | |
| 543 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.2649765e-005, 0.952409267, -5.24520874e-006, 1, -2.90482699e-012, -6.25005202e-013, 2.90482742e-012, 1, 3.1322088e-007, 6.25004334e-013, -3.13220937e-007, 1)) | |
| 544 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.754082263, 1))
| |
| 545 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632881, 0.200000003, 0.301632911)) | |
| 546 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000160694122, 0.198386788, -0.000166416168, 0.999994278, -8.12544892e-011, -4.6401741e-012, 8.02827874e-011, 0.999999702, 5.73445595e-006, 4.46345478e-012, -5.63018284e-006, 0.999994278)) | |
| 547 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.754082263, 1))
| |
| 548 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.603265882, 0.200000003)) | |
| 549 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.226004839, -3.94852328, 0.000782966614, -0.999994278, -6.44144791e-008, 7.45087902e-008, -6.44149978e-008, 0.999999702, 1.63986601e-006, -7.45087405e-008, 1.53557016e-006, -0.999994278)) | |
| 550 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 1, 0.754082263))
| |
| 551 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0.5, 0, "Light stone grey", "Part", Vector3.new(0.200000003, 1.65898108, 0.200000003)) | |
| 552 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.226004839, -5.23044777, 0.000778198242, -0.999994278, -6.44043041e-008, 7.45087902e-008, -6.44047944e-008, 0.999999702, 2.05687343e-006, -7.45087618e-008, 1.95257962e-006, -0.999994278)) | |
| 553 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 1, 0.754082263))
| |
| 554 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632822, 0.301632911, 0.301632941)) | |
| 555 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000160694122, -1.23431873, -0.000158309937, 0.999994278, -7.58783383e-011, -4.41249901e-012, 7.49053597e-011, 0.999999702, 5.52591155e-006, 4.24203684e-012, -5.42163707e-006, 0.999994278)) | |
| 556 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632881, 0.200000003, 0.301632911)) | |
| 557 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-2.2649765e-005, 0.801642776, -5.24520874e-006, 1, -2.90482699e-012, -6.25005202e-013, 2.90482742e-012, 1, 3.1322088e-007, 6.25004334e-013, -3.13220937e-007, 1)) | |
| 558 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.754082263, 1))
| |
| 559 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Lime green", "Part", Vector3.new(0.301632881, 0.200000003, 0.301632911)) | |
| 560 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000160694122, 0.047641933, -0.000165462494, 0.999994278, -8.12544892e-011, -4.6401741e-012, 8.02827874e-011, 0.999999702, 5.73445595e-006, 4.46345478e-012, -5.63018284e-006, 0.999994278)) | |
| 561 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.754082263, 1))
| |
| 562 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632881, 0.200000003, 0.301632911)) | |
| 563 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000116825104, 1.10333133, -0.000106334686, 1, -8.73691189e-011, -7.57409153e-012, 8.73691744e-011, 1, 7.19496757e-006, 7.57346269e-012, -7.19496757e-006, 1)) | |
| 564 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.754082263, 1))
| |
| 565 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0.5, 0, "Light stone grey", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 566 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000766277313, 0.226062536, 3.57149148, 7.45085771e-008, -6.33886475e-006, 0.999994278, -0.999994278, 1.25355314e-007, 7.45095434e-008, -1.25354148e-007, -0.999999702, -6.44313423e-006)) | |
| 567 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 0.754082263, 0.754082263))
| |
| 568 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.452449292, 0.200000003, 0.301632941)) | |
| 569 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000506877899, -0.000774383545, 3.49609566, 0.999994278, -7.31991967e-011, -4.93830194e-012, 4.78204325e-012, -4.1704161e-006, 0.999994278, -7.22190502e-011, -0.999999702, -4.27469786e-006)) | |
| 570 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.904898703, 1))
| |
| 571 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0.5, "Lime green", "Part", Vector3.new(0.904898703, 4.67530966, 0.200000003)) | |
| 572 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000299930573, -3.72235155, 0.000774860382, -0.999994278, -6.44028191e-008, 7.45117816e-008, -6.44031601e-008, 0.999999702, 3.93397568e-006, -7.45118669e-008, 3.82969256e-006, -0.999994278)) | |
| 573 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.0980306864))
| |
| 574 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.452449292, 0.200000003, 0.301632941)) | |
| 575 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000506877899, -0.000778675079, 2.74198365, 0.999994278, -7.27333055e-011, -4.87426852e-012, 4.67926956e-012, -3.96196538e-006, 0.999994278, -7.17527218e-011, -0.999999702, -4.06624804e-006)) | |
| 576 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.904898703, 1))
| |
| 577 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632881, 0.301632911, 0.452449381)) | |
| 578 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000200271606, 1.23434317, 0.376773, 1.23888171e-008, 3.24624557e-006, -0.999994278, -8.94632066e-008, -0.999999702, -3.35053187e-006, -0.999994278, 8.94646988e-008, -1.23883597e-008)) | |
| 579 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 580 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632881, 0.301632911, 0.603265882)) | |
| 581 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000160217285, -0.301415563, -1.08350956, -1.19206696e-007, -3.91693493e-006, 0.999994278, 0.999994278, 2.97053617e-008, 1.19206646e-007, -2.97066389e-008, 0.999999702, 4.02121714e-006)) | |
| 582 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 583 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632881, 0.452449381, 0.301632911)) | |
| 584 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000160217285, 1.00810027, 0.301787853, -2.97987164e-008, -4.72161719e-006, 0.999994278, -7.00291214e-011, -0.999999702, -4.8258953e-006, 0.999994278, -7.11414885e-011, 2.9798553e-008)) | |
| 585 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 586 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632881, 0.200000003, 1.20653164)) | |
| 587 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(9.15527344e-005, -0.376680851, 1.98807502, 6.10957045e-007, 2.30473438e-006, -0.999994278, 0.999994278, -5.97264247e-008, 6.10956761e-007, -5.97237104e-008, -0.999999702, -2.40902614e-006)) | |
| 588 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.754082263, 1))
| |
| 589 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632822, 0.316714555, 0.301632941)) | |
| 590 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.452566624, -0.000160217285, 1.23431873, 0.999994278, -6.81050077e-011, -3.46748129e-012, 3.30411198e-012, -3.64876109e-006, 0.999994278, -6.71349226e-011, -0.999999702, -3.75304512e-006)) | |
| 591 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 592 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632881, 0.200000003, 1.20653164)) | |
| 593 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000101566315, 0.225869298, 1.98805106, -5.51343817e-007, 2.41004295e-006, 0.999994278, -0.999994278, -5.97035381e-008, -5.51343476e-007, 5.97028773e-008, -0.999999702, 2.30572573e-006)) | |
| 594 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.754082263, 1))
| |
| 595 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.301632911)) | |
| 596 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.22638917, -1.30971909, -0.000157833099, 0.999994278, -7.5721332e-011, -4.24837986e-012, 7.47407344e-011, 0.999999702, 5.4216589e-006, 4.08776485e-012, -5.31738306e-006, 0.999994278)) | |
| 597 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 0.754082263, 1))
| |
| 598 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0.5, 0, "Light stone grey", "Part", Vector3.new(0.200000003, 2.11143041, 0.200000003)) | |
| 599 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.226004958, -2.44035769, 0.000785827637, -0.999994278, -6.44114166e-008, 7.45090389e-008, -6.44119211e-008, 0.999999702, 1.84849864e-006, -7.45090034e-008, 1.7442037e-006, -0.999994278)) | |
| 600 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 1, 0.754082263))
| |
| 601 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lime green", "Part", Vector3.new(0.452449292, 0.200000003, 0.200000003)) | |
| 602 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000460863113, 0.00169754028, 2.73375678, 0.999994278, -6.29633429e-011, -4.78628595e-012, 4.66688624e-012, -3.23251811e-006, 0.999994278, -6.19969701e-011, -0.999999702, -3.33680305e-006)) | |
| 603 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.942602754, 0.754082263))
| |
| 604 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632881, 0.200000003, 0.301632911)) | |
| 605 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000160694122, -1.00806975, -0.000158786774, 0.999994278, -8.51322832e-011, -5.37915415e-012, 8.41605743e-011, 0.999999702, 6.15139652e-006, 5.21480515e-012, -6.04712568e-006, 0.999994278)) | |
| 606 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.754082263, 1))
| |
| 607 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lime green", "Part", Vector3.new(0.301632822, 0.331796169, 0.200000003)) | |
| 608 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.452520609, -9.58442688e-005, 1.23446751, 0.999994278, -5.5805336e-011, -2.06513279e-012, 1.90487188e-012, -8.32826402e-007, 0.999994278, -5.48248356e-011, -0.999999702, -9.37126288e-007)) | |
| 609 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.754082322))
| |
| 610 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Lime green", "Part", Vector3.new(0.301632881, 0.200000003, 0.301632911)) | |
| 611 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000160694122, -0.857257009, -0.000160217285, 0.999994278, -8.12544892e-011, -4.6401741e-012, 8.02827874e-011, 0.999999702, 5.73445595e-006, 4.46345478e-012, -5.63018284e-006, 0.999994278)) | |
| 612 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.754082263, 1))
| |
| 613 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0.5, 0, "Light stone grey", "Part", Vector3.new(0.200000003, 2.11143041, 0.200000003)) | |
| 614 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.22638917, -2.44035769, -0.000775337219, 0.999994278, -7.71317871e-011, -4.71892274e-012, 7.61511756e-011, 0.999999702, 6.04763136e-006, 4.55825265e-012, -5.94335961e-006, 0.999994278)) | |
| 615 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.754082203, 1, 0.754082263))
| |
| 616 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Lime green", "Part", Vector3.new(0.301632881, 0.301632911, 0.200000003)) | |
| 617 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.2649765e-005, -4.76837158e-007, -1.40486121, -1, -4.85088315e-012, -9.87589459e-013, 9.87591953e-013, -5.21260915e-007, -1, 4.85088272e-012, -1, 5.21260915e-007)) | |
| 618 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/Asset/?id=9756362", Vector3.new(0, 0, 0), Vector3.new(0.0935061872, 0.18248795, 0.334812433))
| |
| 619 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632881, 0.200000003, 0.301632911)) | |
| 620 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000160694122, -0.103231549, -0.00016450882, 0.999994278, -8.12544892e-011, -4.6401741e-012, 8.02827874e-011, 0.999999702, 5.73445595e-006, 4.46345478e-012, -5.63018284e-006, 0.999994278)) | |
| 621 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.754082263, 1))
| |
| 622 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.301632881, 0.301632911, 0.452449381)) | |
| 623 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000157356262, -0.452600718, 1.46049201, 3.77276812e-012, -5.00457736e-006, 0.999994278, -0.999994278, 2.98778282e-008, 4.08561423e-012, -2.98766878e-008, -0.999999702, -5.10885457e-006)) | |
| 624 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 625 | Hitbox = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 1, "Lime green", "Hitbox", Vector3.new(0.904898703, 6.27530956, 0.200000003)) | |
| 626 | Hitboxweld = CreateWeld(m, FakeHandle, Hitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000299930573, -4.52235365, 0.000774860382, -0.999994278, -6.44028191e-008, 7.45117816e-008, -6.44031601e-008, 0.999999702, 3.93397568e-006, -7.45118669e-008, 3.82969256e-006, -0.999994278)) | |
| 627 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.452449381)) | |
| 628 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00029706955, 0.00348496437, 6.28616476, -1.49025681e-008, 4.09715824e-007, -0.999994278, 0.999994278, 1.89689203e-007, -1.49026409e-008, 1.89689132e-007, -0.999999702, -5.14017074e-007)) | |
| 629 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.791786313, 0.754082263, 1))
| |
| 630 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lime green", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 631 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00029706955, 0.00348496437, 6.13534832, -1.49025681e-008, 4.0970491e-007, -0.999994278, 0.999994278, 1.89689203e-007, -1.49026409e-008, 1.89689132e-007, -0.999999702, -5.1400616e-007)) | |
| 632 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.806038439, 0.102555193, 0.754082263))
| |
| 633 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 634 | ArtificialHB.Name = "Heartbeat" | |
| 635 | script:WaitForChild("Heartbeat")
| |
| 636 | frame = 0.016666666666667 | |
| 637 | tf = 0 | |
| 638 | allowframeloss = false | |
| 639 | tossremainder = false | |
| 640 | lastframe = tick() | |
| 641 | script.Heartbeat:Fire() | |
| 642 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 643 | tf = tf + s | |
| 644 | if frame <= tf then | |
| 645 | if allowframeloss then | |
| 646 | script.Heartbeat:Fire() | |
| 647 | lastframe = tick() | |
| 648 | else | |
| 649 | for i = 1, math.floor(tf / frame) do | |
| 650 | script.Heartbeat:Fire() | |
| 651 | end | |
| 652 | lastframe = tick() | |
| 653 | end | |
| 654 | if tossremainder then | |
| 655 | tf = 0 | |
| 656 | else | |
| 657 | tf = tf - frame * math.floor(tf / frame) | |
| 658 | end | |
| 659 | end | |
| 660 | end | |
| 661 | ) | |
| 662 | swait = function(num) | |
| 663 | if num == 0 or num == nil then | |
| 664 | ArtificialHB.Event:wait() | |
| 665 | else | |
| 666 | for i = 0, num do | |
| 667 | ArtificialHB.Event:wait() | |
| 668 | end | |
| 669 | end | |
| 670 | end | |
| 671 | ||
| 672 | pwait = function(num) | |
| 673 | if num == 0 or num == nil then | |
| 674 | game:service("RunService").Heartbeat:wait(0)
| |
| 675 | else | |
| 676 | for i = 0, num do | |
| 677 | game:service("RunService").Heartbeat:wait(0)
| |
| 678 | end | |
| 679 | end | |
| 680 | end | |
| 681 | ||
| 682 | trail = function(color, part) | |
| 683 | trailling = true | |
| 684 | local lastPoint = part.Position | |
| 685 | coroutine.resume(coroutine.create(function() | |
| 686 | while trailling do | |
| 687 | swait() | |
| 688 | local mag = (lastPoint - part.Position).magnitude | |
| 689 | do | |
| 690 | local p = Instance.new("Part", m)
| |
| 691 | p.Anchored = true | |
| 692 | p.CanCollide = false | |
| 693 | p.Transparency = 0.2 | |
| 694 | p.BrickColor = BrickColor.new(color) | |
| 695 | p.Material = "Neon" | |
| 696 | p.FormFactor = "Custom" | |
| 697 | p.Size = Vector3.new(1, 1, 1) | |
| 698 | p.CFrame = CFrame.new(lastPoint, part.Position) * CFrame.new(0, 0, -mag / 2) | |
| 699 | local mesh = Instance.new("BlockMesh", p)
| |
| 700 | mesh.Scale = Vector3.new(0.1, 0.1, mag + 0.2) | |
| 701 | lastPoint = part.Position | |
| 702 | coroutine.wrap(function() | |
| 703 | for x = 1, 10 do | |
| 704 | swait() | |
| 705 | mesh.Scale = mesh.Scale - Vector3.new(0.01, 0.01, 0) | |
| 706 | end | |
| 707 | p:remove() | |
| 708 | end | |
| 709 | )() | |
| 710 | end | |
| 711 | end | |
| 712 | end | |
| 713 | )) | |
| 714 | end | |
| 715 | ||
| 716 | DoubleJump = function() | |
| 717 | attack = true | |
| 718 | Torso.Velocity = vt(0, 100, 0) | |
| 719 | Humanoid.WalkSpeed = 50 | |
| 720 | for i = 0, 1, 0.1 do | |
| 721 | swait() | |
| 722 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(6 * i, math.rad(0), math.rad(0)), 0.3) | |
| 723 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3) | |
| 724 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(0)), 0.3) | |
| 725 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(0)), 0.3) | |
| 726 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(-50)) * angles(math.rad(-6), math.rad(0), math.rad(0)), 0.3) | |
| 727 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-80), math.rad(50)) * angles(math.rad(-6), math.rad(0), math.rad(0)), 0.3) | |
| 728 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(180), math.rad(230)), 0.3) | |
| 729 | end | |
| 730 | for i = 0, 1, 0.06 do | |
| 731 | swait() | |
| 732 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), 0.3) | |
| 733 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.3) | |
| 734 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.3) | |
| 735 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-40)), 0.3) | |
| 736 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3) | |
| 737 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-80), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.3) | |
| 738 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(180), math.rad(230)), 0.3) | |
| 739 | end | |
| 740 | attack = false | |
| 741 | Humanoid.WalkSpeed = 16 | |
| 742 | end | |
| 743 | ||
| 744 | attackone = function() | |
| 745 | attack = true | |
| 746 | for i = 0, 1, 0.16 do | |
| 747 | swait() | |
| 748 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(0, 0, 1), 0.4) | |
| 749 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(0, 0, -1), 0.4) | |
| 750 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(0, 1.3, 1.3), 0.4) | |
| 751 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(-0.6, 0, -0.5), 0.4) | |
| 752 | RH.C0 = clerp(RH.C0, cf(1, -1, 0.3) * angles(0, 0.7, 0) * angles(0, 0, 0), 0.3) | |
| 753 | LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * angles(0, -2.3, 0) * angles(0, 0, 0.2), 0.3) | |
| 754 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5) | |
| 755 | end | |
| 756 | local Con1 = Hitbox.Touched:connect(function(hit) | |
| 757 | Damagefunc(Hitbox, hit, 10, 15, math.random(5, 10), "Normal", RootPart, 0.1, "Hit2", 1) | |
| 758 | end | |
| 759 | ) | |
| 760 | trail("Lime green", Hitbox)
| |
| 761 | so("http://roblox.com/asset/?id=320557413", Hitbox, 1, 1)
| |
| 762 | for i = 0, 1, 0.16 do | |
| 763 | swait() | |
| 764 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(0, 0, -1), 0.4) | |
| 765 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(0.1, 0.1, 1), 0.4) | |
| 766 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(0, -0.5, 1), 0.4) | |
| 767 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(0.8, 0, -0.5), 0.4) | |
| 768 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * angles(0, 2.3, 0) * angles(0, 0, -0.2), 0.3) | |
| 769 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0.3) * angles(0, -0.7, 0) * angles(0, 0, -0.1), 0.3) | |
| 770 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.5) | |
| 771 | end | |
| 772 | trailling = false | |
| 773 | attack = false | |
| 774 | Con1:disconnect() | |
| 775 | end | |
| 776 | ||
| 777 | MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 778 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt()) | |
| 779 | prt.Anchored = true | |
| 780 | prt.CFrame = cframe | |
| 781 | msh = CreateMesh("BlockMesh", prt, "", "", vt(), vt(x1, y1, z1))
| |
| 782 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 783 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3})
| |
| 784 | end | |
| 785 | ||
| 786 | ShowDamage = function(Pos, Text, Time, Color) | |
| 787 | local Rate = 0.033333333333333 | |
| 788 | if not Pos then | |
| 789 | local Pos = Vector3.new(0, 0, 0) | |
| 790 | end | |
| 791 | local Text = Text or "" | |
| 792 | local Time = Time or 2 | |
| 793 | if not Color then | |
| 794 | local Color = Color3.new(1, 0, 0) | |
| 795 | end | |
| 796 | local EffectPart = CreatePart("Custom", workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
| |
| 797 | EffectPart.Anchored = true | |
| 798 | local BillboardGui = Instance.new("BillboardGui")
| |
| 799 | BillboardGui.Size = UDim2.new(3, 0, 3, 0) | |
| 800 | BillboardGui.Adornee = EffectPart | |
| 801 | local TextLabel = Instance.new("TextLabel")
| |
| 802 | TextLabel.BackgroundTransparency = 1 | |
| 803 | TextLabel.Size = UDim2.new(1, 0, 1, 0) | |
| 804 | TextLabel.Text = Text | |
| 805 | TextLabel.TextColor3 = Color | |
| 806 | TextLabel.TextScaled = true | |
| 807 | TextLabel.Font = Enum.Font.ArialBold | |
| 808 | TextLabel.Parent = BillboardGui | |
| 809 | BillboardGui.Parent = EffectPart | |
| 810 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
| 811 | EffectPart.Parent = game:GetService("Workspace")
| |
| 812 | Delay(0, function() | |
| 813 | local Frames = Time / Rate | |
| 814 | for Frame = 1, Frames do | |
| 815 | wait(Rate) | |
| 816 | local Percent = Frame / Frames | |
| 817 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 818 | TextLabel.TextTransparency = Percent | |
| 819 | end | |
| 820 | if EffectPart and EffectPart.Parent then | |
| 821 | EffectPart:Destroy() | |
| 822 | end | |
| 823 | end | |
| 824 | ) | |
| 825 | end | |
| 826 | ||
| 827 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, decreaseblock) | |
| 828 | if hit.Parent == nil then | |
| 829 | return | |
| 830 | end | |
| 831 | local h = hit.Parent:FindFirstChild("Humanoid")
| |
| 832 | for _,v in pairs(hit.Parent:children()) do | |
| 833 | if v:IsA("Humanoid") then
| |
| 834 | h = v | |
| 835 | end | |
| 836 | end | |
| 837 | if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
| |
| 838 | h = hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 839 | end | |
| 840 | if hit.Parent.className == "Hat" then | |
| 841 | hit = hit.Parent.Parent:findFirstChild("Head")
| |
| 842 | end | |
| 843 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 844 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 845 | return | |
| 846 | end | |
| 847 | local c = Instance.new("ObjectValue")
| |
| 848 | c.Name = "creator" | |
| 849 | c.Value = game:service("Players").LocalPlayer
| |
| 850 | c.Parent = h | |
| 851 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 852 | local Damage = math.random(minim, maxim) | |
| 853 | local blocked = false | |
| 854 | local block = hit.Parent:findFirstChild("Block")
| |
| 855 | if block ~= nil then | |
| 856 | print(block.className) | |
| 857 | if block.className == "NumberValue" and block.Value > 0 then | |
| 858 | blocked = true | |
| 859 | if decreaseblock == nil then | |
| 860 | block.Value = block.Value - 1 | |
| 861 | end | |
| 862 | end | |
| 863 | if block.className == "IntValue" and block.Value > 0 then | |
| 864 | blocked = true | |
| 865 | if decreaseblock ~= nil then | |
| 866 | block.Value = block.Value - 1 | |
| 867 | end | |
| 868 | end | |
| 869 | end | |
| 870 | if blocked == false then | |
| 871 | HitHealth = h.Health | |
| 872 | h.Health = h.Health - Damage | |
| 873 | if HitHealth ~= h.Health and HitHealth ~= 0 and h.Health <= 0 and h.Parent.Name ~= "Lost Soul" then | |
| 874 | print("gained spree")
| |
| 875 | game.Players.LocalPlayer:FindFirstChild("leaderstats").Spree.Value = game.Players.LocalPlayer.leaderstats.Spree.Value + 1
| |
| 876 | end | |
| 877 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 878 | else | |
| 879 | h.Health = h.Health - Damage / 2 | |
| 880 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, BrickColor.new("Bright blue").Color)
| |
| 881 | end | |
| 882 | if Type == "Knockdown" then | |
| 883 | local hum = hit.Parent.Humanoid | |
| 884 | hum.PlatformStand = true | |
| 885 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 886 | swait(1) | |
| 887 | HHumanoid.PlatformStand = false | |
| 888 | end | |
| 889 | ), hum) | |
| 890 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 891 | local bodvol = Instance.new("BodyVelocity")
| |
| 892 | bodvol.velocity = angle * knockback | |
| 893 | bodvol.P = 5000 | |
| 894 | bodvol.maxForce = Vector3.new(8000, 8000, 8000) | |
| 895 | bodvol.Parent = hit | |
| 896 | local rl = Instance.new("BodyAngularVelocity")
| |
| 897 | rl.P = 3000 | |
| 898 | rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000 | |
| 899 | rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
| 900 | rl.Parent = hit | |
| 901 | game:GetService("Debris"):AddItem(bodvol, 0.5)
| |
| 902 | game:GetService("Debris"):AddItem(rl, 0.5)
| |
| 903 | else | |
| 904 | do | |
| 905 | if Type == "Normal" then | |
| 906 | local vp = Instance.new("BodyVelocity")
| |
| 907 | vp.P = 500 | |
| 908 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
| 909 | if KnockbackType == 1 then | |
| 910 | vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 911 | else | |
| 912 | if KnockbackType == 2 then | |
| 913 | vp.velocity = Property.CFrame.lookVector * knockback | |
| 914 | end | |
| 915 | end | |
| 916 | if knockback > 0 then | |
| 917 | vp.Parent = hit.Parent.Torso | |
| 918 | end | |
| 919 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 920 | else | |
| 921 | do | |
| 922 | if Type == "Up" then | |
| 923 | local bodyVelocity = Instance.new("BodyVelocity")
| |
| 924 | bodyVelocity.velocity = vt(0, 60, 0) | |
| 925 | bodyVelocity.P = 5000 | |
| 926 | bodyVelocity.maxForce = Vector3.new(8000, 8000, 8000) | |
| 927 | bodyVelocity.Parent = hit | |
| 928 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 929 | local rl = Instance.new("BodyAngularVelocity")
| |
| 930 | rl.P = 3000 | |
| 931 | rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000 | |
| 932 | rl.angularvelocity = Vector3.new(math.random(-30, 30), math.random(-30, 30), math.random(-30, 30)) | |
| 933 | rl.Parent = hit | |
| 934 | game:GetService("Debris"):AddItem(rl, 0.5)
| |
| 935 | else | |
| 936 | do | |
| 937 | if Type == "Snare" then | |
| 938 | local bp = Instance.new("BodyPosition")
| |
| 939 | bp.P = 2000 | |
| 940 | bp.D = 100 | |
| 941 | bp.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 942 | bp.position = hit.Parent.Torso.Position | |
| 943 | bp.Parent = hit.Parent.Torso | |
| 944 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 945 | else | |
| 946 | do | |
| 947 | if Type == "Target" then | |
| 948 | local Targetting = false | |
| 949 | if Targetting == false then | |
| 950 | ZTarget = hit.Parent.Torso | |
| 951 | coroutine.resume(coroutine.create(function(Part) | |
| 952 | so("http://www.roblox.com/asset/?id=15666462", Part, 1, 1.5)
| |
| 953 | swait(5) | |
| 954 | so("http://www.roblox.com/asset/?id=15666462", Part, 1, 1.5)
| |
| 955 | end | |
| 956 | ), ZTarget) | |
| 957 | local TargHum = ZTarget.Parent:findFirstChild("Humanoid")
| |
| 958 | local targetgui = Instance.new("BillboardGui")
| |
| 959 | targetgui.Parent = ZTarget | |
| 960 | targetgui.Size = UDim2.new(10, 100, 10, 100) | |
| 961 | local targ = Instance.new("ImageLabel")
| |
| 962 | targ.Parent = targetgui | |
| 963 | targ.BackgroundTransparency = 1 | |
| 964 | targ.Image = "rbxassetid://4834067" | |
| 965 | targ.Size = UDim2.new(1, 0, 1, 0) | |
| 966 | cam.CameraType = "Scriptable" | |
| 967 | cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position) | |
| 968 | local dir = Vector3.new(cam.CoordinateFrame.lookVector.x, 0, cam.CoordinateFrame.lookVector.z) | |
| 969 | workspace.CurrentCamera.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position) | |
| 970 | Targetting = true | |
| 971 | RocketTarget = ZTarget | |
| 972 | for i = 1, Property do | |
| 973 | if Humanoid.Health > 0 and Character.Parent ~= nil and TargHum.Health > 0 and TargHum.Parent ~= nil and Targetting == true then | |
| 974 | swait() | |
| 975 | end | |
| 976 | cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position) | |
| 977 | dir = Vector3.new(cam.CoordinateFrame.lookVector.x, 0, cam.CoordinateFrame.lookVector.z) | |
| 978 | cam.CoordinateFrame = CFrame.new(Head.CFrame.p, ZTarget.Position) * cf(0, 5, 10) * euler(-0.3, 0, 0) | |
| 979 | end | |
| 980 | Targetting = false | |
| 981 | RocketTarget = nil | |
| 982 | targetgui.Parent = nil | |
| 983 | cam.CameraType = "Custom" | |
| 984 | end | |
| 985 | end | |
| 986 | do | |
| 987 | local debounce = Instance.new("BoolValue")
| |
| 988 | debounce.Name = "DebounceHit" | |
| 989 | debounce.Parent = hit.Parent | |
| 990 | debounce.Value = true | |
| 991 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 992 | c = Instance.new("ObjectValue")
| |
| 993 | c.Name = "creator" | |
| 994 | c.Value = Player | |
| 995 | c.Parent = h | |
| 996 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 997 | end | |
| 998 | end | |
| 999 | end | |
| 1000 | end | |
| 1001 | end | |
| 1002 | end | |
| 1003 | end | |
| 1004 | end | |
| 1005 | end | |
| 1006 | end | |
| 1007 | end | |
| 1008 | ||
| 1009 | MagniDamage = function(Hit, Part, magni, mindam, maxdam, knock, Type) | |
| 1010 | for _,c in pairs(workspace:children()) do | |
| 1011 | local hum = c:findFirstChild("Humanoid")
| |
| 1012 | if hum ~= nil then | |
| 1013 | local head = c:findFirstChild("Torso")
| |
| 1014 | if head ~= nil then | |
| 1015 | local targ = head.Position - Part.Position | |
| 1016 | local mag = targ.magnitude | |
| 1017 | if mag <= magni and c.Name ~= Player.Name then | |
| 1018 | Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, 0.2, 1, 3) | |
| 1019 | end | |
| 1020 | end | |
| 1021 | end | |
| 1022 | end | |
| 1023 | end | |
| 1024 | ||
| 1025 | MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1026 | local prt = CreatePart(3, Character, "SmoothPlastic", 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2)) | |
| 1027 | prt.Anchored = true | |
| 1028 | prt.CFrame = cframe | |
| 1029 | msh = CreateMesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1030 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 1031 | Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
| |
| 1032 | end | |
| 1033 | ||
| 1034 | ShootCannon = function(asd, mindam, maxdam, x, y, z, mag) | |
| 1035 | so("rbxassetid://263623156", asd, 0.5, 1)
| |
| 1036 | so("rbxassetid://263610152", asd, 0.5, 1)
| |
| 1037 | so("rbxassetid://263623139", asd, 0.5, 1)
| |
| 1038 | local MainPos = asd.Position | |
| 1039 | local MainPos2 = mouse.Hit.p | |
| 1040 | local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2) | |
| 1041 | num = 30 | |
| 1042 | coroutine.resume(coroutine.create(function() | |
| 1043 | repeat | |
| 1044 | wait() | |
| 1045 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, Character) | |
| 1046 | local mag = MainPos - pos.magnitude | |
| 1047 | MagicCylinder2(BrickColor.new("Lime green"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 0.1, mag * 8, 0.1, 0.2, 0, 0.2, 0.03)
| |
| 1048 | MainPos = MainPos + MouseLook.lookVector * 10 | |
| 1049 | num = num - 1 | |
| 1050 | if hit ~= nil then | |
| 1051 | num = 0 | |
| 1052 | local ref = CreatePart(3, workspace, "SmoothPlastic", 0, 1, BrickColor.new("Lime green"), "Reference", vt())
| |
| 1053 | ref.Anchored = true | |
| 1054 | ref.CFrame = cf(pos) | |
| 1055 | game.Debris:AddItem(ref, 3) | |
| 1056 | MagniDamage(ref, hit, 1, mindam, maxdam, 1, "Normal") | |
| 1057 | so("rbxassetid://263610039", ref, 1, 1)
| |
| 1058 | so("rbxassetid://263610111", ref, 1, 1)
| |
| 1059 | MagicBlock(BrickColor.new("Lime green"), cf(pos), 5, 5, 5, 0.5, 0.5, 0.5, 0.05)
| |
| 1060 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 1061 | MagniDamage(ref, ref, 5, mindam, maxdam, 10, "Normal") | |
| 1062 | end | |
| 1063 | until num <= 0 | |
| 1064 | end | |
| 1065 | )) | |
| 1066 | end | |
| 1067 | ||
| 1068 | Spin = function() | |
| 1069 | attack = true | |
| 1070 | mana = mana | |
| 1071 | for i = 0, 1, 0.16 do | |
| 1072 | swait() | |
| 1073 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4) | |
| 1074 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1075 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(0, 1.3, 1.3), 0.4) | |
| 1076 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(-0.6, 0, -0.5), 0.4) | |
| 1077 | RH.C0 = clerp(RH.C0, cf(1, -1, 0.3) * angles(0, 0.7, 0) * angles(0, 0, 0), 0.3) | |
| 1078 | LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * angles(0, -2.3, 0) * angles(0, 0, 0.2), 0.3) | |
| 1079 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5) | |
| 1080 | end | |
| 1081 | local Con1 = Hitbox.Touched:connect(function(hit) | |
| 1082 | Damagefunc(Hitbox, hit, 10, 15, math.random(5, 10), "Normal", RootPart, 0.1, "Hit2", 1) | |
| 1083 | end | |
| 1084 | ) | |
| 1085 | trail("Lime green", Hitbox)
| |
| 1086 | so("http://roblox.com/asset/?id=320557413", Hitbox, 1, 1)
| |
| 1087 | coroutine.resume(coroutine.create(function() | |
| 1088 | for i = 0, 1, 0.05 do | |
| 1089 | swait() | |
| 1090 | if i >= 0.1 and i >= 0.3 and i <= 0.8 and i <= 0.5 then | |
| 1091 | so("http://roblox.com/asset/?id=161006212", FakeHandle, 1, 0.7)
| |
| 1092 | end | |
| 1093 | end | |
| 1094 | end | |
| 1095 | )) | |
| 1096 | coroutine.resume(coroutine.create(function() | |
| 1097 | for i = 0, 4, 0.2 do | |
| 1098 | swait() | |
| 1099 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0 + 360 * i), math.rad(-60), math.rad(0)), 0.5) | |
| 1100 | end | |
| 1101 | end | |
| 1102 | )) | |
| 1103 | for i = 0, 1, 0.05 do | |
| 1104 | swait() | |
| 1105 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1106 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4) | |
| 1107 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.4) | |
| 1108 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(0.8, 0, -0.5), 0.4) | |
| 1109 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * angles(0, 2.3, 0) * angles(0, 0, -0.2), 0.3) | |
| 1110 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0.3) * angles(0, -0.7, 0) * angles(0, 0, -0.1), 0.3) | |
| 1111 | end | |
| 1112 | trailling = false | |
| 1113 | attack = false | |
| 1114 | Con1:disconnect() | |
| 1115 | end | |
| 1116 | ||
| 1117 | Throw = function() | |
| 1118 | attack = true | |
| 1119 | mana = mana | |
| 1120 | Humanoid.WalkSpeed = 10 | |
| 1121 | coroutine.resume(coroutine.create(function() | |
| 1122 | for i = 0, 4, 0.2 do | |
| 1123 | swait() | |
| 1124 | FakeHandleweld2.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(360), math.rad(0), math.rad(0)), 0.5) | |
| 1125 | end | |
| 1126 | end | |
| 1127 | )) | |
| 1128 | for i = 0, 1, 0.1 do | |
| 1129 | swait() | |
| 1130 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1131 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4) | |
| 1132 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(20), math.rad(100)), 0.4) | |
| 1133 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(-0.6, 0, -0.5), 0.4) | |
| 1134 | RH.C0 = clerp(RH.C0, cf(1, -1, 0.3) * angles(0, 0.7, 0) * angles(0, 0, 0), 0.3) | |
| 1135 | LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * angles(0, -2.3, 0) * angles(0, 0, 0.2), 0.3) | |
| 1136 | end | |
| 1137 | trail("Lime green", Hitbox)
| |
| 1138 | MagicCircle(BrickColor.new("Lime green"), FakeHandle2.CFrame, 5, 5, 5, 0.5, 0.5, 0.5, 0.06)
| |
| 1139 | so("http://roblox.com/asset/?id=320557413", Hitbox, 1, 1)
| |
| 1140 | do | |
| 1141 | for i = 0, 1, 0.05 do | |
| 1142 | swait() | |
| 1143 | local FireColors = {"Lime green", "Really black"}
| |
| 1144 | local p = Instance.new("Part", Character.Torso)
| |
| 1145 | p.Transparency = 0.5 | |
| 1146 | p.BrickColor = BrickColor.new(FireColors[math.random(1, #FireColors)]) | |
| 1147 | p.FormFactor = "Custom" | |
| 1148 | p.Size = Vector3.new(0.8, 0.8, 0.8) | |
| 1149 | p.CanCollide = false | |
| 1150 | p.Anchored = true | |
| 1151 | p.Locked = true | |
| 1152 | p.CFrame = FakeHandle2.CFrame * CFrame.Angles(math.random(0, 3), math.random(0, 3), math.random(0, 3)) | |
| 1153 | Instance.new("BlockMesh", p)
| |
| 1154 | coroutine.wrap(function() | |
| 1155 | for i = 1, 10 do | |
| 1156 | p.Mesh.Scale = p.Mesh.Scale - Vector3.new(0.1, 0.1, 0.1) | |
| 1157 | p.CFrame = p.CFrame * CFrame.new(0, -0.15, 0) | |
| 1158 | wait() | |
| 1159 | end | |
| 1160 | end | |
| 1161 | )() | |
| 1162 | game:service("Debris"):AddItem(p, 2)
| |
| 1163 | if i == 0.2 then | |
| 1164 | MagicCircle(BrickColor.new("Lime green"), FakeHandle2.CFrame, 15, 15, 15, 2, 2, 2, 0.2)
| |
| 1165 | FakeHandle2.Transparency = 1 | |
| 1166 | ShootCannon(LeftArm, 10, 15, 5, 5, 5, 3) | |
| 1167 | end | |
| 1168 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4) | |
| 1169 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1170 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.4) | |
| 1171 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(math.rad(0), math.rad(20), math.rad(-100)), 0.4) | |
| 1172 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * angles(0, 2.3, 0) * angles(0, 0, -0.2), 0.3) | |
| 1173 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0.3) * angles(0, -0.7, 0) * angles(0, 0, -0.1), 0.3) | |
| 1174 | end | |
| 1175 | end | |
| 1176 | trailling = false | |
| 1177 | FakeHandle2.Transparency = 0.5 | |
| 1178 | Humanoid.WalkSpeed = 16 | |
| 1179 | attack = false | |
| 1180 | end | |
| 1181 | ||
| 1182 | VisionDash = function() | |
| 1183 | attack = true | |
| 1184 | Humanoid.WalkSpeed = 0 | |
| 1185 | mana = mana | |
| 1186 | coroutine.resume(coroutine.create(function() | |
| 1187 | for i = 0, 4, 0.2 do | |
| 1188 | swait() | |
| 1189 | FakeHandleweld2.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(360), math.rad(0), math.rad(0)), 0.5) | |
| 1190 | end | |
| 1191 | end | |
| 1192 | )) | |
| 1193 | for i = 0, 1, 0.05 do | |
| 1194 | swait() | |
| 1195 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(90)), 0.4) | |
| 1196 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(-90)), 0.4) | |
| 1197 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(20), math.rad(20), math.rad(100)), 0.4) | |
| 1198 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(-0.6, 0, -0.5), 0.4) | |
| 1199 | RH.C0 = clerp(RH.C0, cf(1, -1, 0.3) * angles(0, 0.7, 0) * angles(0, 0, 0), 0.3) | |
| 1200 | LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * angles(0, -2.3, 0) * angles(0, 0, 0.2), 0.3) | |
| 1201 | end | |
| 1202 | trail("Lime green", Hitbox)
| |
| 1203 | MagicCircle(BrickColor.new("Lime green"), Torso.CFrame, 35, 35, 35, 5, 5, 5, 0.06)
| |
| 1204 | MagicBlock(BrickColor.new("Really black"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1205 | MagicBlock(BrickColor.new("Lime green"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1206 | so("http://roblox.com/asset/?id=320557413", Hitbox, 1, 1)
| |
| 1207 | for i = 0, 1, 0.2 do | |
| 1208 | swait() | |
| 1209 | if i == 0.4 then | |
| 1210 | MagicCircle(BrickColor.new("Lime green"), Torso.CFrame, 35, 35, 35, 5, 5, 5, 0.06)
| |
| 1211 | MagicBlock(BrickColor.new("Really black"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1212 | so("http://roblox.com/asset/?id=233856146", Torso, 1, 0.8)
| |
| 1213 | MagniDamage(Torso, Torso, 20, 10, 20, 5, "Normal") | |
| 1214 | MagicBlock(BrickColor.new("Lime green"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1215 | end | |
| 1216 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(10, -5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4) | |
| 1217 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1218 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.4) | |
| 1219 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(math.rad(0), math.rad(20), math.rad(-100)), 0.4) | |
| 1220 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * angles(0, 2.3, 0) * angles(0, 0, -0.2), 0.3) | |
| 1221 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0.3) * angles(0, -0.7, 0) * angles(0, 0, -0.1), 0.3) | |
| 1222 | end | |
| 1223 | for i = 0, 1, 0.2 do | |
| 1224 | swait() | |
| 1225 | if i == 0.4 then | |
| 1226 | MagicCircle(BrickColor.new("Lime green"), Torso.CFrame, 35, 35, 35, 5, 5, 5, 0.06)
| |
| 1227 | MagicBlock(BrickColor.new("Really black"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1228 | so("http://roblox.com/asset/?id=233856146", Torso, 1, 0.8)
| |
| 1229 | MagniDamage(Torso, Torso, 20, 10, 20, 5, "Normal") | |
| 1230 | MagicBlock(BrickColor.new("Lime green"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1231 | end | |
| 1232 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(-10, -10, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4) | |
| 1233 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1234 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(50), math.rad(100)), 0.4) | |
| 1235 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(math.rad(0), math.rad(20), math.rad(-100)), 0.4) | |
| 1236 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * angles(0, 2.3, 0) * angles(0, 0, -0.2), 0.3) | |
| 1237 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0.3) * angles(0, -0.7, 0) * angles(0, 0, -0.1), 0.3) | |
| 1238 | end | |
| 1239 | for i = 0, 1, 0.2 do | |
| 1240 | swait() | |
| 1241 | if i == 0.4 then | |
| 1242 | MagicCircle(BrickColor.new("Lime green"), Torso.CFrame, 35, 35, 35, 5, 5, 5, 0.06)
| |
| 1243 | MagniDamage(Torso, Torso, 20, 10, 20, 5, "Normal") | |
| 1244 | so("http://roblox.com/asset/?id=233856146", Torso, 1, 0.8)
| |
| 1245 | MagicBlock(BrickColor.new("Really black"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1246 | MagicBlock(BrickColor.new("Lime green"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1247 | end | |
| 1248 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(10, -15, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1249 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1250 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.4) | |
| 1251 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(math.rad(0), math.rad(20), math.rad(-100)), 0.4) | |
| 1252 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * angles(0, 2.3, 0) * angles(0, 0, -0.2), 0.3) | |
| 1253 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0.3) * angles(0, -0.7, 0) * angles(0, 0, -0.1), 0.3) | |
| 1254 | end | |
| 1255 | RootPart.CFrame = RootPart.CFrame * cf(0, 0, -15) | |
| 1256 | Humanoid.WalkSpeed = 16 | |
| 1257 | trailling = false | |
| 1258 | FakeHandle2.Transparency = 0.5 | |
| 1259 | attack = false | |
| 1260 | end | |
| 1261 | ||
| 1262 | Illusion = function() | |
| 1263 | attack = true | |
| 1264 | mana = mana | |
| 1265 | hitdebounce = false | |
| 1266 | local Con1 = Hitbox.Touched:connect(function(hit) | |
| 1267 | local ht = hit.Parent | |
| 1268 | local hum1 = ht:FindFirstChild("Humanoid")
| |
| 1269 | if hum1 ~= nil and hitdebounce == false then | |
| 1270 | hitdebounce = true | |
| 1271 | mana = mana | |
| 1272 | Humanoid.WalkSpeed = 0 | |
| 1273 | trail("Lime green", Hitbox)
| |
| 1274 | MagicCircle(BrickColor.new("Lime green"), Torso.CFrame, 35, 35, 35, 5, 5, 5, 0.06)
| |
| 1275 | MagicBlock(BrickColor.new("Really black"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1276 | MagicBlock(BrickColor.new("Lime green"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1277 | so("http://roblox.com/asset/?id=233856146", Torso, 1, 0.6)
| |
| 1278 | so("http://roblox.com/asset/?id=320557413", Hitbox, 1, 1)
| |
| 1279 | for i = 0, 1, 0.2 do | |
| 1280 | swait() | |
| 1281 | if i == 0.4 then | |
| 1282 | MagniDamage(Torso, Torso, 10, 5, 10, 5, "Normal") | |
| 1283 | so("http://roblox.com/asset/?id=233856146", Torso, 1, 0.6)
| |
| 1284 | MagicCircle(BrickColor.new("Lime green"), Torso.CFrame, 35, 35, 35, 5, 5, 5, 0.06)
| |
| 1285 | MagicBlock(BrickColor.new("Really black"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1286 | MagicBlock(BrickColor.new("Lime green"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1287 | end | |
| 1288 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(10, -10, 0) * angles(math.rad(0), math.rad(0), math.rad(30)), 0.4) | |
| 1289 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1290 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.4) | |
| 1291 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(math.rad(0), math.rad(20), math.rad(-100)), 0.4) | |
| 1292 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * angles(0, 2.3, 0) * angles(0, 0, -0.2), 0.3) | |
| 1293 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0.3) * angles(0, -0.7, 0) * angles(0, 0, -0.1), 0.3) | |
| 1294 | end | |
| 1295 | for i = 0, 1, 0.2 do | |
| 1296 | swait() | |
| 1297 | if i == 0.4 then | |
| 1298 | MagniDamage(Torso, Torso, 10, 5, 10, 5, "Normal") | |
| 1299 | so("http://roblox.com/asset/?id=233856146", Torso, 1, 0.6)
| |
| 1300 | MagicCircle(BrickColor.new("Lime green"), Torso.CFrame, 35, 35, 35, 5, 5, 5, 0.06)
| |
| 1301 | MagicBlock(BrickColor.new("Really black"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1302 | MagicBlock(BrickColor.new("Lime green"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1303 | end | |
| 1304 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(10, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.4) | |
| 1305 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1306 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(50), math.rad(100)), 0.4) | |
| 1307 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(math.rad(0), math.rad(20), math.rad(-100)), 0.4) | |
| 1308 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * angles(0, 2.3, 0) * angles(0, 0, -0.2), 0.3) | |
| 1309 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0.3) * angles(0, -0.7, 0) * angles(0, 0, -0.1), 0.3) | |
| 1310 | end | |
| 1311 | for i = 0, 1, 0.2 do | |
| 1312 | swait() | |
| 1313 | if i == 0.4 then | |
| 1314 | MagniDamage(Torso, Torso, 10, 5, 10, 5, "Normal") | |
| 1315 | MagicCircle(BrickColor.new("Lime green"), Torso.CFrame, 35, 35, 35, 5, 5, 5, 0.06)
| |
| 1316 | so("http://roblox.com/asset/?id=233856146", Torso, 1, 0.6)
| |
| 1317 | MagicBlock(BrickColor.new("Really black"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1318 | MagicBlock(BrickColor.new("Lime green"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1319 | end | |
| 1320 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(-15, -7.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1321 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1322 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.4) | |
| 1323 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(math.rad(0), math.rad(20), math.rad(-100)), 0.4) | |
| 1324 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * angles(0, 2.3, 0) * angles(0, 0, -0.2), 0.3) | |
| 1325 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0.3) * angles(0, -0.7, 0) * angles(0, 0, -0.1), 0.3) | |
| 1326 | end | |
| 1327 | for i = 0, 1, 0.2 do | |
| 1328 | swait() | |
| 1329 | if i == 0.4 then | |
| 1330 | MagniDamage(Torso, Torso, 10, 5, 10, 5, "Normal") | |
| 1331 | MagicCircle(BrickColor.new("Lime green"), Torso.CFrame, 35, 35, 35, 5, 5, 5, 0.06)
| |
| 1332 | so("http://roblox.com/asset/?id=233856146", Torso, 1, 0.6)
| |
| 1333 | MagicBlock(BrickColor.new("Really black"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1334 | MagicBlock(BrickColor.new("Lime green"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1335 | end | |
| 1336 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(15, -7.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.4) | |
| 1337 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1338 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.4) | |
| 1339 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(math.rad(0), math.rad(20), math.rad(-100)), 0.4) | |
| 1340 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * angles(0, 2.3, 0) * angles(0, 0, -0.2), 0.3) | |
| 1341 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0.3) * angles(0, -0.7, 0) * angles(0, 0, -0.1), 0.3) | |
| 1342 | end | |
| 1343 | for i = 0, 1, 0.2 do | |
| 1344 | swait() | |
| 1345 | if i == 0.4 then | |
| 1346 | MagniDamage(Torso, Torso, 10, 5, 10, 5, "Normal") | |
| 1347 | MagicCircle(BrickColor.new("Lime green"), Torso.CFrame, 35, 35, 35, 5, 5, 5, 0.06)
| |
| 1348 | so("http://roblox.com/asset/?id=233856146", Torso, 1, 0.6)
| |
| 1349 | MagicBlock(BrickColor.new("Really black"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1350 | MagicBlock(BrickColor.new("Lime green"), Torso.CFrame, 25, 25, 25, 0.5, 0.5, 0.5, 0.06)
| |
| 1351 | end | |
| 1352 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(-10, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.4) | |
| 1353 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(90)), 0.4) | |
| 1354 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(0), math.rad(100)), 0.4) | |
| 1355 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(math.rad(0), math.rad(20), math.rad(-100)), 0.4) | |
| 1356 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * angles(0, 2.3, 0) * angles(0, 0, -0.2), 0.3) | |
| 1357 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0.3) * angles(0, -0.7, 0) * angles(0, 0, -0.1), 0.3) | |
| 1358 | end | |
| 1359 | end | |
| 1360 | end | |
| 1361 | ) | |
| 1362 | for i = 0, 1, 0.05 do | |
| 1363 | swait() | |
| 1364 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(90)), 0.4) | |
| 1365 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(-90)), 0.4) | |
| 1366 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(20), math.rad(20), math.rad(100)), 0.4) | |
| 1367 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(-0.6, 0, -0.5), 0.4) | |
| 1368 | RH.C0 = clerp(RH.C0, cf(1, -1, 0.3) * angles(0, 0.7, 0) * angles(0, 0, 0), 0.3) | |
| 1369 | LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * angles(0, -2.3, 0) * angles(0, 0, 0.2), 0.3) | |
| 1370 | end | |
| 1371 | Humanoid.WalkSpeed = 16 | |
| 1372 | trailling = false | |
| 1373 | FakeHandle2.Transparency = 0.5 | |
| 1374 | attack = false | |
| 1375 | Con1:disconnect() | |
| 1376 | end | |
| 1377 | ||
| 1378 | attacktwo = function() | |
| 1379 | attack = true | |
| 1380 | for i = 0, 1, 0.16 do | |
| 1381 | swait() | |
| 1382 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(0, 0, -1), 0.4) | |
| 1383 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(0.1, 0.1, 1), 0.4) | |
| 1384 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(0, -0.5, 1), 0.4) | |
| 1385 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(0.8, 0, -0.5), 0.4) | |
| 1386 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * angles(0, 2.3, 0) * angles(0, 0, -0.2), 0.3) | |
| 1387 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0.3) * angles(0, -0.7, 0) * angles(0, 0, -0.1), 0.3) | |
| 1388 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.5) | |
| 1389 | end | |
| 1390 | so("http://roblox.com/asset/?id=320557413", Hitbox, 1, 1.2)
| |
| 1391 | local Con1 = Hitbox.Touched:connect(function(hit) | |
| 1392 | Damagefunc(Hitbox, hit, 10, 15, math.random(5, 10), "Normal", RootPart, 0.1, "Hit2", 1) | |
| 1393 | end | |
| 1394 | ) | |
| 1395 | trail("Lime green", Hitbox)
| |
| 1396 | so("http://roblox.com/asset/?id=320557413", Hitbox, 1, 1)
| |
| 1397 | for i = 0, 1, 0.16 do | |
| 1398 | swait() | |
| 1399 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(0, 0, 1.5), 0.4) | |
| 1400 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(-0.1, -0.1, -1.5), 0.4) | |
| 1401 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(0, 1.3, 2), 0.4) | |
| 1402 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(-0.6, 0, -0.5), 0.4) | |
| 1403 | RH.C0 = clerp(RH.C0, cf(1, -1, 0.3) * angles(0, 0.7, 0) * angles(0, 0, 0), 0.3) | |
| 1404 | LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * angles(0, -2.3, 0) * angles(0, 0, 0.2), 0.3) | |
| 1405 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(180), math.rad(0)), 1) | |
| 1406 | end | |
| 1407 | trailling = false | |
| 1408 | attack = false | |
| 1409 | Con1:disconnect() | |
| 1410 | end | |
| 1411 | ||
| 1412 | attackthree = function() | |
| 1413 | attack = true | |
| 1414 | for i = 0, 1, 0.16 do | |
| 1415 | swait() | |
| 1416 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(0, 0, -1), 0.4) | |
| 1417 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(0, 0, 1), 0.4) | |
| 1418 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(1.6, -1.4, 0) * angles(1, 0, 0), 0.4) | |
| 1419 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.4, -0.2) * angles(0.7, 0, -0.5), 0.4) | |
| 1420 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(0, 1.6, 0) * angles(0, 0.5, 0), 0.3) | |
| 1421 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(0, -1.6, 0) * angles(0, 0.5, -0.2), 0.3) | |
| 1422 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.5) | |
| 1423 | end | |
| 1424 | local Con1 = Hitbox.Touched:connect(function(hit) | |
| 1425 | Damagefunc(Hitbox, hit, 10, 15, math.random(5, 10), "Normal", RootPart, 0.1, "Hit2", 1) | |
| 1426 | end | |
| 1427 | ) | |
| 1428 | trail("Lime green", Hitbox)
| |
| 1429 | so("http://roblox.com/asset/?id=320557413", Hitbox, 1, 1.2)
| |
| 1430 | for i = 0, 1, 0.16 do | |
| 1431 | swait() | |
| 1432 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(0, 0, 1), 0.4) | |
| 1433 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(0, 0, -1), 0.4) | |
| 1434 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.6) * angles(1.6, -1.4, 0) * angles(-1, 0, 0), 0.4) | |
| 1435 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.4, -0.2) * angles(-0.7, 0, -0.3), 0.4) | |
| 1436 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(0, 1.6, 0) * angles(0, -0.5, 0), 0.3) | |
| 1437 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(0, -1.6, 0) * angles(0, -0.5, 0.2), 0.3) | |
| 1438 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.5) | |
| 1439 | end | |
| 1440 | trailling = false | |
| 1441 | attack = false | |
| 1442 | Con1:disconnect() | |
| 1443 | end | |
| 1444 | ||
| 1445 | attackfour = function() | |
| 1446 | attack = true | |
| 1447 | for i = 0, 1, 0.16 do | |
| 1448 | swait() | |
| 1449 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(0, 0, 1), 0.4) | |
| 1450 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(0, 0, -1), 0.4) | |
| 1451 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.6) * angles(1.6, -1.4, 0) * angles(-1, 0, 0), 0.4) | |
| 1452 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.4, -0.2) * angles(-0.7, 0, -0.3), 0.4) | |
| 1453 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(0, 1.6, 0) * angles(0, -0.5, 0), 0.3) | |
| 1454 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(0, -1.6, 0) * angles(0, -0.5, 0.2), 0.3) | |
| 1455 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.5) | |
| 1456 | end | |
| 1457 | trail("Lime green", Hitbox)
| |
| 1458 | so("http://roblox.com/asset/?id=320557413", Hitbox, 1, 1)
| |
| 1459 | so("http://roblox.com/asset/?id=320557413", Hitbox, 1, 1)
| |
| 1460 | local Con1 = Hitbox.Touched:connect(function(hit) | |
| 1461 | Damagefunc(Hitbox, hit, 10, 15, math.random(5, 10), "Normal", RootPart, 0.1, "Hit2", 1) | |
| 1462 | end | |
| 1463 | ) | |
| 1464 | for i = 0, 1, 0.16 do | |
| 1465 | swait() | |
| 1466 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(0, 0, -1), 0.4) | |
| 1467 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(0.1, 0.1, 1), 0.4) | |
| 1468 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(1.6, -1.4, 0) * angles(2, 0, 0), 0.4) | |
| 1469 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.4, -0.3) * angles(0.8, 0, -0.5), 0.4) | |
| 1470 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * angles(0, 2.3, 0) * angles(0, 0, -0.2), 0.3) | |
| 1471 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0.3) * angles(0, -0.7, 0) * angles(0, 0, -0.1), 0.3) | |
| 1472 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.5) | |
| 1473 | end | |
| 1474 | trailling = false | |
| 1475 | attack = false | |
| 1476 | Con1:disconnect() | |
| 1477 | end | |
| 1478 | ||
| 1479 | MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1480 | local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", vt()) | |
| 1481 | prt.Anchored = true | |
| 1482 | prt.CFrame = cframe | |
| 1483 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1484 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 1485 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
| |
| 1486 | end | |
| 1487 | ||
| 1488 | ob1u = function() | |
| 1489 | end | |
| 1490 | ||
| 1491 | ob1d = function() | |
| 1492 | if attack == false and attacktype == 1 then | |
| 1493 | attacktype = 2 | |
| 1494 | attackone() | |
| 1495 | else | |
| 1496 | if attack == false and attacktype == 2 then | |
| 1497 | attacktype = 3 | |
| 1498 | attacktwo() | |
| 1499 | else | |
| 1500 | if attack == false and attacktype == 3 then | |
| 1501 | attacktype = 4 | |
| 1502 | attackthree() | |
| 1503 | else | |
| 1504 | if attack == false and attacktype == 4 then | |
| 1505 | attacktype = 1 | |
| 1506 | attackfour() | |
| 1507 | end | |
| 1508 | end | |
| 1509 | end | |
| 1510 | end | |
| 1511 | end | |
| 1512 | ||
| 1513 | key = function(k) | |
| 1514 | k = k:lower() | |
| 1515 | if attack == false and k == "z" and mana >= 15 and zenabled == true then | |
| 1516 | zenabled = false | |
| 1517 | coroutine.resume(coroutine.create(function() | |
| 1518 | for i = 1, 0, -0.01 do | |
| 1519 | swait() | |
| 1520 | fenframe1a.Size = UDim2.new(0.05 * i, 0, 0.1, 0) | |
| 1521 | end | |
| 1522 | zenabled = true | |
| 1523 | fenframe1a.Size = UDim2.new(0, 0, 0.1, 0) | |
| 1524 | end | |
| 1525 | )) | |
| 1526 | Spin() | |
| 1527 | else | |
| 1528 | if attack == false and k == "x" and mana >= 10 and xenabled == true then | |
| 1529 | xenabled = false | |
| 1530 | coroutine.resume(coroutine.create(function() | |
| 1531 | for i = 1, 0, -0.1 do | |
| 1532 | swait() | |
| 1533 | fenframe2a.Size = UDim2.new(0.05 * i, 0, 0.1, 0) | |
| 1534 | end | |
| 1535 | xenabled = true | |
| 1536 | fenframe2a.Size = UDim2.new(0, 0, 0.1, 0) | |
| 1537 | end | |
| 1538 | )) | |
| 1539 | Throw() | |
| 1540 | else | |
| 1541 | if attack == false and k == "c" and mana >= 20 and cenabled == true then | |
| 1542 | cenabled = false | |
| 1543 | coroutine.resume(coroutine.create(function() | |
| 1544 | for i = 1, 0, -0.01 do | |
| 1545 | swait() | |
| 1546 | fenframe3a.Size = UDim2.new(0.05 * i, 0, 0.1, 0) | |
| 1547 | end | |
| 1548 | cenabled = true | |
| 1549 | fenframe3a.Size = UDim2.new(0, 0, 0.1, 0) | |
| 1550 | end | |
| 1551 | )) | |
| 1552 | VisionDash() | |
| 1553 | else | |
| 1554 | if attack == false and k == "v" and mana >= 45 and venabled == true then | |
| 1555 | venabled = false | |
| 1556 | coroutine.resume(coroutine.create(function() | |
| 1557 | for i = 1, 0, -0.001 do | |
| 1558 | swait() | |
| 1559 | fenframe4a.Size = UDim2.new(0.05 * i, 0, 0.1, 0) | |
| 1560 | end | |
| 1561 | venabled = true | |
| 1562 | fenframe4a.Size = UDim2.new(0, 0, 0.1, 0) | |
| 1563 | end | |
| 1564 | )) | |
| 1565 | Illusion() | |
| 1566 | end | |
| 1567 | end | |
| 1568 | end | |
| 1569 | end | |
| 1570 | end | |
| 1571 | ||
| 1572 | Bin = Instance.new("HopperBin", Player.Backpack)
| |
| 1573 | ds = function(mouse) | |
| 1574 | end | |
| 1575 | ||
| 1576 | s = function(mouse) | |
| 1577 | print("Selected")
| |
| 1578 | mouse.Button1Down:connect(function() | |
| 1579 | ob1d(mouse) | |
| 1580 | end | |
| 1581 | ) | |
| 1582 | mouse.Button1Up:connect(function() | |
| 1583 | ob1u(mouse) | |
| 1584 | end | |
| 1585 | ) | |
| 1586 | mouse.KeyDown:connect(key) | |
| 1587 | end | |
| 1588 | ||
| 1589 | Bin.Selected:connect(s) | |
| 1590 | Bin.Deselected:connect(ds) | |
| 1591 | local sine = 0 | |
| 1592 | local change = 1 | |
| 1593 | local val = 0 | |
| 1594 | local mananum = 0 | |
| 1595 | while 1 do | |
| 1596 | while 1 do | |
| 1597 | while 1 do | |
| 1598 | pwait() | |
| 1599 | sine = sine + change | |
| 1600 | local torvel = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude | |
| 1601 | local velderp = RootPart.Velocity.y | |
| 1602 | hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
| 1603 | if equipped == true or equipped == false then | |
| 1604 | if attack == false then | |
| 1605 | idle = idle + 1 | |
| 1606 | else | |
| 1607 | idle = 0 | |
| 1608 | end | |
| 1609 | if ((500 <= idle and attack ~= false) or 1 < RootPart.Velocity.y) and hitfloor == nil then | |
| 1610 | Anim = "Jump" | |
| 1611 | if attack == false then | |
| 1612 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(0.5, 0, 0), 0.3) | |
| 1613 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(0.3, 0, 0), 0.3) | |
| 1614 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(0.7, 0, 0.3), 0.3) | |
| 1615 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(-0.6, 0, -0.5), 0.3) | |
| 1616 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * angles(0, 1.6, 0) * angles(-0.1, 0, 0.3), 0.3) | |
| 1617 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(0, -1.6, 0) * angles(-0.1, 0, -0.3), 0.3) | |
| 1618 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(180), math.rad(200)), 0.3) | |
| 1619 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(0, 0, 0), 1) | |
| 1620 | end | |
| 1621 | else | |
| 1622 | if RootPart.Velocity.y < -1 and hitfloor == nil then | |
| 1623 | Anim = "Fall" | |
| 1624 | if attack == false then | |
| 1625 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(0.3, 0, 0), 0.3) | |
| 1626 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(0.2, 0, 0), 0.3) | |
| 1627 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(0.2, 0, 0.3), 0.3) | |
| 1628 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(-1, 0, -0.6), 0.3) | |
| 1629 | RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.5) * angles(0, 1.6, 0) * angles(0, 0, 0.3), 0.3) | |
| 1630 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(0, -1.6, 0) * angles(-0.1, 0, 0.5), 0.3) | |
| 1631 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(180), math.rad(200)), 0.3) | |
| 1632 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(0, 0, 0), 1) | |
| 1633 | end | |
| 1634 | else | |
| 1635 | if torvel.x < 1 and torvel.z < 1 and hitfloor ~= nil then | |
| 1636 | Anim = "Idle" | |
| 1637 | if attack == false then | |
| 1638 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * angles(0, 0, 0.5), 0.3) | |
| 1639 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(0.1, -0.1, -0.5), 0.3) | |
| 1640 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.6, -0.2) * angles(0.5, 0.3, 0.4), 0.3) | |
| 1641 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.4, 0.3) * angles(-0.6, 0, 0.3), 0.3) | |
| 1642 | RH.C0 = clerp(RH.C0, cf(1, -0.8, -0.3) * angles(0, 1.3, 0), 0.3) | |
| 1643 | LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * angles(-0.5, -1.4, 0), 0.3) | |
| 1644 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(180), math.rad(230)), 0.3) | |
| 1645 | FakeHandleweld2.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
| 1646 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(0, 0, 0), 1) | |
| 1647 | end | |
| 1648 | else | |
| 1649 | if 2 < torvel.x and torvel.z > 2 and hitfloor ~= nil then | |
| 1650 | Anim = "Walk" | |
| 1651 | if attack == false then | |
| 1652 | change = 3 | |
| 1653 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * angles(0.5, 0, 0), 0.3) | |
| 1654 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(-0.3, 0, 0), 0.3) | |
| 1655 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(0.6, 0, 0.2), 0.3) | |
| 1656 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(-0.5, 0, -0.3), 0.3) | |
| 1657 | RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * angles(0, 1.6, 0) * angles(-0.06, 0, 0.4), 0.3) | |
| 1658 | LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * angles(0, -1.6, 0) * angles(-0.06, 0, -0.4), 0.3) | |
| 1659 | FakeHandleweld.C0 = clerp(FakeHandleweld.C0, cf(0, 0, 0) * angles(math.rad(0), math.rad(180), math.rad(200)), 0.3) | |
| 1660 | Handleweld.C0 = clerp(Handleweld.C0, cf(0, 0, 0) * angles(0, 0, 0), 1) | |
| 1661 | end | |
| 1662 | end | |
| 1663 | end | |
| 1664 | end | |
| 1665 | end | |
| 1666 | end | |
| 1667 | if 0 < #Effects then | |
| 1668 | for e = 1, #Effects do | |
| 1669 | if Effects[e] ~= nil then | |
| 1670 | local Thing = Effects[e] | |
| 1671 | if Thing ~= nil then | |
| 1672 | local Part = Thing[1] | |
| 1673 | local Mode = Thing[2] | |
| 1674 | local Delay = Thing[3] | |
| 1675 | local IncX = Thing[4] | |
| 1676 | local IncY = Thing[5] | |
| 1677 | local IncZ = Thing[6] | |
| 1678 | if Thing[1].Transparency <= 1 then | |
| 1679 | if Thing[2] == "Block1" then | |
| 1680 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1681 | Mesh = Thing[1].Mesh | |
| 1682 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 1683 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1684 | else | |
| 1685 | if Thing[2] == "Cylinder" then | |
| 1686 | Mesh = Thing[1].Mesh | |
| 1687 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 1688 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1689 | else | |
| 1690 | if Thing[2] == "Blood" then | |
| 1691 | Mesh = Thing[7] | |
| 1692 | Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0) | |
| 1693 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 1694 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1695 | else | |
| 1696 | if Thing[2] == "Elec" then | |
| 1697 | Mesh = Thing[1].Mesh | |
| 1698 | Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9]) | |
| 1699 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1700 | else | |
| 1701 | if Thing[2] == "Disappear" then | |
| 1702 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1703 | end | |
| 1704 | end | |
| 1705 | end | |
| 1706 | end | |
| 1707 | end | |
| 1708 | else | |
| 1709 | Part.Parent = nil | |
| 1710 | table.remove(Effects, e) | |
| 1711 | end | |
| 1712 | end | |
| 1713 | end | |
| 1714 | end | |
| 1715 | end | |
| 1716 | do | |
| 1717 | fenbarmana2:TweenSize((UDim2.new(4 * mana / 100, 0, 0.2, 0)), nil, 1, 0.4, true) | |
| 1718 | fenbarmana4.Text = "[Power] <{[ " .. mana .. " ]}> [Power]"
| |
| 1719 | if 100 <= mana then | |
| 1720 | mana = 100 | |
| 1721 | end | |
| 1722 | end | |
| 1723 | end | |
| 1724 | if attack == false then | |
| 1725 | if mananum <= 8 then | |
| 1726 | mananum = mananum + 1 | |
| 1727 | end | |
| 1728 | end | |
| 1729 | end | |
| 1730 | mananum = 0 | |
| 1731 | mana = mana + 1 | |
| 1732 | end |