SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --https://github.com/Mokiros/roblox-FE-compatibility |
| 1 | + | -- This script has been converted to FE by iPxter |
| 2 | ||
| 3 | - | local Player,game,owner = owner,game |
| 3 | + | |
| 4 | - | local RealPlayer = Player |
| 4 | + | |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | - | print("FE Compatibility code V2 by Mokiros")
|
| 6 | + | |
| 7 | - | local RealPlayer = RealPlayer |
| 7 | + | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
|
| 8 | - | script.Parent = RealPlayer.Character |
| 8 | + | script.Parent = Player.Character |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | - | local Disconnect_Function = function(this) |
| 11 | + | local Event = Instance.new("RemoteEvent")
|
| 12 | - | this[1].Functions[this[2]] = nil |
| 12 | + | Event.Name = "UserInput_Event" |
| 13 | ||
| 14 | - | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
|
| 14 | + | |
| 15 | - | local FakeEvent_Metatable = {__index={
|
| 15 | + | local function fakeEvent() |
| 16 | - | Connect = function(this,f) |
| 16 | + | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
|
| 17 | - | local i = tostring(math.random(0,10000)) |
| 17 | + | t.connect = t.Connect |
| 18 | - | while this.Functions[i] do |
| 18 | + | return t |
| 19 | - | i = tostring(math.random(0,10000)) |
| 19 | + | |
| 20 | ||
| 21 | - | this.Functions[i] = f |
| 21 | + | --Creating fake input objects with fake variables |
| 22 | - | return setmetatable({this,i},Disconnect_Metatable)
|
| 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 | --[[NIGHTOWLACE_WEAPONRY]] | |
| 61 | local Player = game.Players.localPlayer | |
| 62 | local Character = Player.Character | |
| 63 | local Humanoid = Character.Humanoid | |
| 64 | Humanoid.WalkSpeed = 25 | |
| 65 | local mouse = Player:GetMouse() | |
| 66 | local m = Instance.new('Model', Character)
| |
| 67 | m.Name = "WeaponModel" | |
| 68 | local LeftArm = Character["Left Arm"] | |
| 69 | local RightArm = Character["Right Arm"] | |
| 70 | local LeftLeg = Character["Left Leg"] | |
| 71 | local RightLeg = Character["Right Leg"] | |
| 72 | local Head = Character.Head | |
| 73 | local Torso = Character.Torso | |
| 74 | local cam = game.Workspace.CurrentCamera | |
| 75 | local RootPart = Character.HumanoidRootPart | |
| 76 | local RootJoint = RootPart.RootJoint | |
| 77 | local equipped = false | |
| 78 | local attack = false | |
| 79 | local Anim = 'Idle' | |
| 80 | local idle = 0 | |
| 81 | local attacktype = 1 | |
| 82 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 83 | local velocity = RootPart.Velocity.y | |
| 84 | local sine = 0 | |
| 85 | local change = 1 | |
| 86 | local grabbed = false | |
| 87 | local cn = CFrame.new | |
| 88 | local mr = math.rad | |
| 89 | local angles = CFrame.Angles | |
| 90 | local ud = UDim2.new | |
| 91 | local c3 = Color3.new | |
| 92 | ||
| 93 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 94 | ||
| 95 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 96 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 97 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 98 | ||
| 99 | function clerp(a, b, t) | |
| 100 | return a:lerp(b, t) | |
| 101 | end | |
| 102 | ||
| 103 | --[[Credits to SazErenos for his Artificial Heartbeat]]-- | |
| 104 | ||
| 105 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 106 | ArtificialHB.Name = "Heartbeat" | |
| 107 | ||
| 108 | script:WaitForChild("Heartbeat")
| |
| 109 | ||
| 110 | frame = 1 / 30 | |
| 111 | tf = 0 | |
| 112 | allowframeloss = false | |
| 113 | tossremainder = false | |
| 114 | lastframe = tick() | |
| 115 | script.Heartbeat:Fire() | |
| 116 | ||
| 117 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 118 | tf = tf + s | |
| 119 | if tf >= frame then | |
| 120 | if allowframeloss then | |
| 121 | script.Heartbeat:Fire() | |
| 122 | lastframe = tick() | |
| 123 | else | |
| 124 | for i = 1, math.floor(tf / frame) do | |
| 125 | script.Heartbeat:Fire() | |
| 126 | end | |
| 127 | lastframe = tick() | |
| 128 | end | |
| 129 | if tossremainder then | |
| 130 | tf = 0 | |
| 131 | else | |
| 132 | tf = tf - frame * math.floor(tf / frame) | |
| 133 | end | |
| 134 | end | |
| 135 | end) | |
| 136 | ||
| 137 | function swait(num) | |
| 138 | if num == 0 or num == nil then | |
| 139 | ArtificialHB.Event:wait() | |
| 140 | else | |
| 141 | for i = 0, num do | |
| 142 | ArtificialHB.Event:wait() | |
| 143 | end | |
| 144 | end | |
| 145 | end | |
| 146 | ||
| 147 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 148 | local Create = RbxUtility.Create | |
| 149 | ||
| 150 | --[[ Credits to Fenrier for Outline-Remover, Part, Mesh, Weld, Raycase and Sound Creation functions ]]-- | |
| 151 | ||
| 152 | function RemoveOutlines(part) | |
| 153 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 154 | end | |
| 155 | ||
| 156 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 157 | local Part = Create("Part"){
| |
| 158 | Parent = Parent, | |
| 159 | Reflectance = Reflectance, | |
| 160 | Transparency = Transparency, | |
| 161 | CanCollide = false, | |
| 162 | Locked = true, | |
| 163 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 164 | Name = Name, | |
| 165 | Size = Size, | |
| 166 | Material = Material, | |
| 167 | } | |
| 168 | RemoveOutlines(Part) | |
| 169 | return Part | |
| 170 | end | |
| 171 | ||
| 172 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 173 | local Msh = Create(Mesh){
| |
| 174 | Parent = Part, | |
| 175 | Offset = OffSet, | |
| 176 | Scale = Scale, | |
| 177 | } | |
| 178 | if Mesh == "SpecialMesh" then | |
| 179 | Msh.MeshType = MeshType | |
| 180 | Msh.MeshId = MeshId | |
| 181 | end | |
| 182 | return Msh | |
| 183 | end | |
| 184 | ||
| 185 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 186 | local Weld = Create("Weld"){
| |
| 187 | Parent = Parent, | |
| 188 | Part0 = Part0, | |
| 189 | Part1 = Part1, | |
| 190 | C0 = C0, | |
| 191 | C1 = C1, | |
| 192 | } | |
| 193 | return Weld | |
| 194 | end | |
| 195 | ||
| 196 | function CreateBillBoardGui(Img, Pos, Siz) --returns a basic billboard gui object for further manipulation | |
| 197 | local billpar = Create("Part"){
| |
| 198 | Transparency = 1, | |
| 199 | Size = Vector3.new(1, 1, 1), | |
| 200 | Anchored = true, | |
| 201 | CanCollide = false, | |
| 202 | CFrame = CFrame.new(Pos), | |
| 203 | Name = "BillboardGuiPart", | |
| 204 | } | |
| 205 | local bill = Create("BillboardGui"){
| |
| 206 | Parent = billpar, | |
| 207 | Adornee = billpar, | |
| 208 | Size = UDim2.new(1, 0, 1, 0), | |
| 209 | SizeOffset = Vector2.new(Siz, Siz), | |
| 210 | } | |
| 211 | local d = Create("ImageLabel"){
| |
| 212 | Parent = bill, | |
| 213 | BackgroundTransparency = 1, | |
| 214 | Size = UDim2.new(1, 0, 1, 0), | |
| 215 | Image = Img, | |
| 216 | } | |
| 217 | return billpar | |
| 218 | end | |
| 219 | ||
| 220 | function rayCast(Position, Direction, Range, Ignore) | |
| 221 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 222 | end | |
| 223 | ||
| 224 | function CreateSound(id, par, vol, pit) | |
| 225 | coroutine.resume(coroutine.create(function() | |
| 226 | local S = Create("Sound"){
| |
| 227 | Volume = vol, | |
| 228 | Pitch = pit or 1, | |
| 229 | SoundId = id, | |
| 230 | Parent = par or workspace, | |
| 231 | } | |
| 232 | swait() | |
| 233 | S:play() | |
| 234 | game:GetService("Debris"):AddItem(S, 6)
| |
| 235 | end)) | |
| 236 | end | |
| 237 | ||
| 238 | local function GetNearest(obj, distance) | |
| 239 | local last, lastx = distance + 1 | |
| 240 | for i, v in pairs(workspace:GetChildren()) do | |
| 241 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
| |
| 242 | local t = v.Torso | |
| 243 | local dist = (t.Position - obj.Position).magnitude | |
| 244 | if dist <= distance then | |
| 245 | if dist < last then | |
| 246 | last = dist | |
| 247 | lastx = v | |
| 248 | end | |
| 249 | end | |
| 250 | end | |
| 251 | end | |
| 252 | return lastx | |
| 253 | end | |
| 254 | ||
| 255 | --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]-- | |
| 256 | ||
| 257 | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
| 258 | for i, v in pairs(hit:GetChildren()) do | |
| 259 | if v:IsA("Humanoid") and hit.Name ~= Character.Name then
| |
| 260 | local find = v:FindFirstChild("DebounceHit")
| |
| 261 | if not find then | |
| 262 | if v.Parent:findFirstChild("Head") then
| |
| 263 | local BillG = Create("BillboardGui"){
| |
| 264 | Parent = v.Parent.Head, | |
| 265 | Size = UDim2.new(1, 0, 1, 0), | |
| 266 | Adornee = v.Parent.Head, | |
| 267 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
| 268 | } | |
| 269 | local TL = Create("TextLabel"){
| |
| 270 | Parent = BillG, | |
| 271 | Size = UDim2.new(3, 3, 3, 3), | |
| 272 | BackgroundTransparency = 1, | |
| 273 | Text = tostring(damage).."-", | |
| 274 | TextColor3 = Color1.Color, | |
| 275 | TextStrokeColor3 = Color2.Color, | |
| 276 | TextStrokeTransparency = 0, | |
| 277 | TextXAlignment = Enum.TextXAlignment.Center, | |
| 278 | TextYAlignment = Enum.TextYAlignment.Center, | |
| 279 | FontSize = Enum.FontSize.Size18, | |
| 280 | Font = "ArialBold", | |
| 281 | } | |
| 282 | coroutine.resume(coroutine.create(function() | |
| 283 | swait(1) | |
| 284 | for i = 0, 1, .1 do | |
| 285 | swait(.1) | |
| 286 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
| 287 | end | |
| 288 | BillG:Destroy() | |
| 289 | end)) | |
| 290 | end | |
| 291 | v.Health = v.Health - damage | |
| 292 | local bool = Create("BoolValue"){
| |
| 293 | Parent = v, | |
| 294 | Name = "DebounceHit", | |
| 295 | } | |
| 296 | if HSound ~= nil and HPitch ~= nil then | |
| 297 | CreateSound(HSound, hit, 1, HPitch) | |
| 298 | end | |
| 299 | game:GetService("Debris"):AddItem(bool, cooldown)
| |
| 300 | end | |
| 301 | end | |
| 302 | end | |
| 303 | end | |
| 304 | ||
| 305 | function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch) | |
| 306 | for _, c in pairs(workspace:children()) do | |
| 307 | local hum = c:findFirstChild("Humanoid")
| |
| 308 | if hum ~= nil then | |
| 309 | local head = c:findFirstChild("Torso")
| |
| 310 | if head ~= nil then | |
| 311 | local targ = head.Position - Part.Position | |
| 312 | local mag = targ.magnitude | |
| 313 | if mag <= magni and c.Name ~= Player.Name then | |
| 314 | Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch) | |
| 315 | end | |
| 316 | end | |
| 317 | end | |
| 318 | end | |
| 319 | end | |
| 320 | ||
| 321 | Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(3.20000005, 0.320000023, 0.200000003)) | |
| 322 | HandleWeld = CreateWeld(m, Character["Torso"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.57640076, -0.105987549, -0.672006607, 0.866025388, 0.500000119, -8.94076351e-008, -0.500000119, 0.866025388, 1.49014454e-007, 1.51936518e-007, -8.43464605e-008, 1)) | |
| 323 | CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
| |
| 324 | FakeHandle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "FakeHandle", Vector3.new(1.92000008, 0.320000023, 0.200000003)) | |
| 325 | FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1)) | |
| 326 | BladeHitbox = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladeHitbox", Vector3.new(6.87999964, 1.28000009, 0.320000023)) | |
| 327 | BladeHitboxWeld = CreateWeld(m, FakeHandle, BladeHitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.83992767, 7.62939453e-006, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1)) | |
| 328 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(6.71999979, 0.640000045, 0.200000003)) | |
| 329 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.75999451, 0.320018768, -9.53674316e-007, -1.00000012, 0, -6.70215812e-008, 0, -1.00000012, 3.87433118e-007, -6.70215812e-008, 3.87433118e-007, 1)) | |
| 330 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0104, 0.0104, 0.00800000038))
| |
| 331 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(4.96000051, 0.320000023, 0.480000019)) | |
| 332 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.35999298, 0.176017761, -9.53674316e-007, -1.00000012, 0, -8.74827464e-008, 0, -1.00000012, 4.61938924e-007, -8.74827464e-008, 4.61938953e-007, 1)) | |
| 333 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00879999995, 0.00560000027, 0.0160000008))
| |
| 334 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(6.71999979, 0.320000023, 0.200000003)) | |
| 335 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.75999451, 0.159992218, 9.53674316e-007, -1, 1.49011612e-007, -9.26303798e-008, 1.49011612e-007, 1, -4.17235356e-007, 9.26303159e-008, -4.17235412e-007, -1)) | |
| 336 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00960000046, 0.00520000001, 0.00960000046))
| |
| 337 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(6.71999979, 0.320000023, 0.200000003)) | |
| 338 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.75999451, 0.160015106, 0, -1.00000012, 0, -8.7701622e-008, 0, -1.00000012, 3.87433118e-007, -8.7701622e-008, 3.87433118e-007, 1)) | |
| 339 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00960000046, 0.00520000001, 0.00960000046))
| |
| 340 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(4.32000065, 0.200000003, 0.480000019)) | |
| 341 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.5599823, 0.0879821777, 0, -1.00000012, 0, -8.89660754e-008, 0, 1.00000012, -5.36444873e-007, 8.89660896e-008, -5.36444816e-007, -1)) | |
| 342 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0064000003, 0.00320000015, 0.0200000014))
| |
| 343 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(4.96000004, 0.320000023, 0.480000019)) | |
| 344 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.36000061, 0.167987823, 9.53674316e-007, -1, 1.49011612e-007, -9.26303798e-008, 1.49011612e-007, 1, -4.17235356e-007, 9.26303159e-008, -4.17235412e-007, -1)) | |
| 345 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00879999995, 0.00560000027, 0.0160000008))
| |
| 346 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(6.71999979, 0.640000045, 0.200000003)) | |
| 347 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.76000214, 0.319988251, -9.53674316e-007, -1.00000012, 2.68220901e-007, -1.42108547e-014, 2.68220901e-007, 1.00000012, -2.9802888e-007, -6.59472477e-014, -2.9802888e-007, -1)) | |
| 348 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0104, 0.0104, 0.00800000038))
| |
| 349 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(4.32000065, 0.200000003, 0.480000019)) | |
| 350 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.5599823, 0.112014771, -9.53674316e-007, -1.00000012, 0, -8.74827464e-008, 0, -1.00000012, 4.61938924e-007, -8.74827464e-008, 4.61938953e-007, 1)) | |
| 351 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0064000003, 0.00320000015, 0.0200000014))
| |
| 352 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 353 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.59932709, 0.159358978, 1.23977661e-005, 1.00000012, 0, 0, 0, -1.00000012, 0, 0, 0, -1)) | |
| 354 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.800000072, 0.800000072))
| |
| 355 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003)) | |
| 356 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.59998322, 0.0799942017, -9.53674316e-007, -1, 1.49011612e-007, -9.10118445e-007, 1.49011612e-007, 1, -5.66248389e-007, 9.10118445e-007, -5.66248559e-007, -1)) | |
| 357 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 358 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 359 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.59931946, -0.160633087, 1.23977661e-005, 1.00000012, 0, 0, 0, -1.00000012, 0, 0, 0, -1)) | |
| 360 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.800000072, 0.800000072))
| |
| 361 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(3.20000005, 0.200000003, 0.200000003)) | |
| 362 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-7.62939453e-006, 0.079990387, 0, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1)) | |
| 363 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 364 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.960000038, 0.320000023)) | |
| 365 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.83992767, 1.14440918e-005, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1)) | |
| 366 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 1))
| |
| 367 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 3.20000005, 0.200000003)) | |
| 368 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.160007477, 7.62939453e-006, 0, 0, -1.00000012, 0, -1.00000012, 0, 1.42108547e-014, -1.42108547e-014, 7.10542736e-015, -1)) | |
| 369 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
| |
| 370 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(3.20000005, 0.200000003, 0.200000003)) | |
| 371 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.0800018311, 0, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1)) | |
| 372 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 373 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003)) | |
| 374 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.320007324, 1.6799469, -1.90734863e-006, -5.66244125e-007, -1, 5.23353265e-007, 1, -5.66244125e-007, 7.59964848e-007, -7.59964678e-007, 5.23353719e-007, 1)) | |
| 375 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 376 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003)) | |
| 377 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.59998322, -0.0799980164, -9.53674316e-007, -1, 1.49011612e-007, -9.10118445e-007, 1.49011612e-007, 1, -5.66248389e-007, 9.10118445e-007, -5.66248559e-007, -1)) | |
| 378 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 379 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003)) | |
| 380 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.319988251, 1.67993927, -1.90734863e-006, -5.66244125e-007, -1, 5.23353265e-007, 1, -5.66244125e-007, 7.59964848e-007, -7.59964678e-007, 5.23353719e-007, 1)) | |
| 381 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 382 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 3.20000005, 0.200000003)) | |
| 383 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.159992218, 1.52587891e-005, 0, 0, -1.00000012, 0, -1.00000012, 0, 1.42108547e-014, -1.42108547e-014, 7.10542736e-015, -1)) | |
| 384 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
| |
| 385 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.320000023, 0.320000023)) | |
| 386 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.480003357, -2.07992554, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1)) | |
| 387 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 388 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023)) | |
| 389 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.480003357, -1.8399353, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1)) | |
| 390 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
| |
| 391 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.320000023, 0.320000023)) | |
| 392 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.479980469, -2.07992554, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1)) | |
| 393 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 394 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.960000038, 0.320000023)) | |
| 395 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.07992554, 1.52587891e-005, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1)) | |
| 396 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023)) | |
| 397 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.480003357, -2.3199234, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1)) | |
| 398 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
| |
| 399 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.960000038, 0.320000023)) | |
| 400 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.31991577, 1.14440918e-005, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1)) | |
| 401 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 1))
| |
| 402 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023)) | |
| 403 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.479984283, -1.8399353, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1)) | |
| 404 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
| |
| 405 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023)) | |
| 406 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.479980469, -2.3199234, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1)) | |
| 407 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
| |
| 408 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.640000045, 0.200000003)) | |
| 409 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.67993164, 7.62939453e-006, 0, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1)) | |
| 410 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 0.800000072))
| |
| 411 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.351999998, 0.200000003, 0.200000003)) | |
| 412 | WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, 1.41417694, 1.52728844, -8.94076351e-008, 1.49014454e-007, 1, 0.707107067, -0.70710665, 1.68589878e-007, 0.70710665, 0.707107067, -4.21484252e-008)) | |
| 413 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 414 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.351999998, 0.200000003, 0.200000003)) | |
| 415 | WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -1.52731323, -1.41415596, -8.94076351e-008, 1.49014454e-007, 1, -0.707106829, 0.707106829, -1.68589878e-007, -0.707106829, -0.707106829, 4.2148379e-008)) | |
| 416 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 417 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003)) | |
| 418 | WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -2.15991974, 0.0800132751, -8.94076351e-008, 1.49014454e-007, 1, -1.00000012, 0, -8.94076351e-008, 0, -1.00000012, 1.49014454e-007)) | |
| 419 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 420 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003)) | |
| 421 | WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -0.0800132751, -1.99993896, -8.94076351e-008, 1.49014454e-007, 1, 0, 1.00000012, -1.49014454e-007, -1.00000012, 0, -8.94076351e-008)) | |
| 422 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 423 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003)) | |
| 424 | WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -0.079990387, 2.15991974, -8.94076351e-008, 1.49014454e-007, 1, -1.49011612e-007, -1, 1.49014426e-007, 1, -1.49011612e-007, 8.94076493e-008)) | |
| 425 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 426 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003)) | |
| 427 | WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, 1.99992371, 0.0799865723, -8.94076351e-008, 1.49014454e-007, 1, 1, -1.49011612e-007, 8.94076493e-008, 1.49011612e-007, 1, -1.49014426e-007)) | |
| 428 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 429 | CreateMesh("BlockMesh", FakeHandle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
| |
| 430 | HandleL = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HandleL", Vector3.new(1, 2, 1.01999998)) | |
| 431 | HandleLWeld = CreateWeld(m, Character["Left Arm"], HandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00849914551, 0.00999999046, 6.77108765e-005, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 432 | EffectPrt1 = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.30000001192093, "Really black", "EffectPrt1", Vector3.new(0.600000024, 0.600000024, 0.400000036)) | |
| 433 | EffectPrt1Weld = CreateWeld(m, HandleL, EffectPrt1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00999355316, -0.499996185, -0.509780884, 0, 0, 1, 0, 1, 0, -1, 0, 0)) | |
| 434 | CreateMesh("SpecialMesh", EffectPrt1, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 435 | EffectPrt2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.30000001192093, 0, "Mid gray", "EffectPrt2", Vector3.new(0.600000024, 0.600000024, 0.400000036)) | |
| 436 | EffectPrt2Weld = CreateWeld(m, HandleL, EffectPrt2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0100440979, 0.499996185, 0.509773254, 4.06801701e-005, 8.90720813e-008, 1, 2.13165718e-014, -1, 8.90720813e-008, 1, -3.60215091e-012, -4.06801701e-005)) | |
| 437 | CreateMesh("SpecialMesh", EffectPrt2, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.379999906, 0.399999678, 2.21999955))
| |
| 438 | HitboxL = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HitboxL", Vector3.new(1.20000005, 1.39999998, 1.01999998)) | |
| 439 | HitboxLWeld = CreateWeld(m, HandleL, HitboxL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999908447, 0.699999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 440 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003)) | |
| 441 | PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.12071991, 0.312129974, -0.409996033, 0.965925872, 0.258819103, 0, -0.258819103, 0.965925872, 0, 0, 0, 1)) | |
| 442 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.200000003, 1.01999998)) | |
| 443 | PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.354278564, 0.31212616, 0, 0.965925872, 0.258819103, 0, -0.258819103, 0.965925872, 0, 0, 0, 1)) | |
| 444 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.600000024, 0.200000003, 1.01999998)) | |
| 445 | PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.200004578, 0.899998903, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 446 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003)) | |
| 447 | PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.12071991, 0.312129974, 0.410003662, 0.965925872, 0.258819103, 0, -0.258819103, 0.965925872, 0, 0, 0, 1)) | |
| 448 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 1.20000005, 1.00999999)) | |
| 449 | PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.409751892, -0.412899256, 0.00154209137, -1, -5.71118512e-008, 0, -5.71118512e-008, 1, 1.6609139e-008, -9.48578645e-016, 1.6609139e-008, -1)) | |
| 450 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.19999998807907, "Really black", "Part", Vector3.new(0.400000036, 0.400000036, 0.400000006)) | |
| 451 | PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0105276108, -0.491856098, -0.509765625, 0, 0, 1, 0, 1, 0, -1, 0, 0)) | |
| 452 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 453 | ThunderHoleL = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "ThunderHoleL", Vector3.new(0.200000003, 1.05000007, 0.200000003)) | |
| 454 | ThunderHoleLWeld = CreateWeld(m, HandleL, ThunderHoleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.699999809, -0.000227928162, 0.228645325, 0, -1, 0, 0, 0, -1, 1, -0, 0)) | |
| 455 | CreateMesh("CylinderMesh", ThunderHoleL, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 456 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 457 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.21999836, 0.600001812, 0.62865448, 0, 0, -1, 0, 1, 0, 1, 0, 0)) | |
| 458 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 459 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
| 460 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.232361794, 0.0286483765, 1.10000181, -5.96046448e-008, 1.07931243e-007, 1, 1, 5.49689858e-008, 5.96046412e-008, -5.49689787e-008, 1, -1.07931243e-007)) | |
| 461 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 462 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
| 463 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.21999836, -0.528648376, 1.10000181, 0, 0, -1, -1, -5.96046377e-008, 0, -5.96046377e-008, 1, 0)) | |
| 464 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 465 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
| 466 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.21999836, 0.0286483765, 1.10000181, -5.96046448e-008, 1.07931243e-007, 1, 1, 5.49689858e-008, 5.96046412e-008, -5.49689787e-008, 1, -1.07931243e-007)) | |
| 467 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 468 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.01999998, 1.80999994, 0.619999945)) | |
| 469 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.104995966, -0.199783325, 0, 0, 1, 0, 1, 0, -1, 0, 0)) | |
| 470 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 471 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.03999996, 1.00999999, 1.01999998)) | |
| 472 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.494999886, -0.018661499, 0, 0, 1, 0, 1, 0, -1, 0, 0)) | |
| 473 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 474 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 475 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232361794, 0.600001812, 0.62865448, 0, 0, -1, 0, 1, 0, 1, 0, 0)) | |
| 476 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 477 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
| 478 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232361794, -0.528648376, 1.10000181, 0, 0, -1, -1, -5.96046377e-008, 0, -5.96046377e-008, 1, 0)) | |
| 479 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 480 | HandleR = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HandleR", Vector3.new(1, 2, 1.01999998)) | |
| 481 | HandleRWeld = CreateWeld(m, Character["Right Arm"], HandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00468444824, 0.0100209713, -0.00353145599, -1, -5.71118512e-008, 0, -5.71118512e-008, 1, 1.6609139e-008, -9.48578645e-016, 1.6609139e-008, -1)) | |
| 482 | Barrel1 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Barrel1", Vector3.new(0.600000024, 1.20000005, 0.400000036)) | |
| 483 | Barrel1Weld = CreateWeld(m, HandleR, Barrel1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.299865723, 0.599565029, 0.718658447, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007)) | |
| 484 | CreateMesh("SpecialMesh", Barrel1, Enum.MeshType.FileMesh, "rbxassetid://433397018", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
| |
| 485 | Barrel2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Barrel2", Vector3.new(0.600000024, 1.20000005, 0.400000036)) | |
| 486 | Barrel2Weld = CreateWeld(m, HandleR, Barrel2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.300126076, 0.599565029, 0.718658447, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007)) | |
| 487 | CreateMesh("SpecialMesh", Barrel2, Enum.MeshType.FileMesh, "rbxassetid://433397018", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
| |
| 488 | Choke1 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Choke1", Vector3.new(0.600000024, 0.400000006, 0.400000036)) | |
| 489 | Choke1Weld = CreateWeld(m, HandleR, Choke1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.297118187, 1.39956522, 0.718673706, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007)) | |
| 490 | CreateMesh("SpecialMesh", Choke1, Enum.MeshType.FileMesh, "rbxassetid://433397231", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
| |
| 491 | Choke2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Choke2", Vector3.new(0.600000024, 0.400000006, 0.400000036)) | |
| 492 | Choke2Weld = CreateWeld(m, HandleR, Choke2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.303283691, 1.3995651, 0.718673706, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007)) | |
| 493 | CreateMesh("SpecialMesh", Choke2, Enum.MeshType.FileMesh, "rbxassetid://433397231", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
| |
| 494 | HitboxR = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HitboxR", Vector3.new(1.20000005, 0.99999994, 1.01999998)) | |
| 495 | HitboxRWeld = CreateWeld(m, HandleR, HitboxR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.100006104, 0.700003862, 0, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1)) | |
| 496 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003)) | |
| 497 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.120735168, 0.312120438, 0.40998745, 0.965925872, 0.258819222, -5.53058896e-008, -0.258819222, 0.965925872, 3.094436e-008, 6.14303701e-008, -1.55757274e-008, 1)) | |
| 498 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.400000006, 0.819999993, 1.01999998)) | |
| 499 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.718658447, -0.4104321, -1.43051147e-005, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1)) | |
| 500 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.600000024, 0.200000003, 1.01999998)) | |
| 501 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, 0.900001049, 0, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1)) | |
| 502 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.409999996, 2.01999998, 1.01999998)) | |
| 503 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.313659668, -0.00999617577, 0, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1)) | |
| 504 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003)) | |
| 505 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.120735168, 0.312120438, -0.410010338, 0.965925872, 0.258819222, -5.53058896e-008, -0.258819222, 0.965925872, 3.094436e-008, 6.14303701e-008, -1.55757274e-008, 1)) | |
| 506 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.409999967, 0.200000003, 1.01999998)) | |
| 507 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0863342285, -0.919991493, -3.05175781e-005, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1)) | |
| 508 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.200000003, 1.01999998)) | |
| 509 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.354248047, 0.312124252, -1.43051147e-005, 0.965925872, 0.258819222, -5.53058896e-008, -0.258819222, 0.965925872, 3.094436e-008, 6.14303701e-008, -1.55757274e-008, 1)) | |
| 510 | ThunderHoleR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "ThunderHoleR", Vector3.new(0.200000003, 1.05000007, 0.200000003)) | |
| 511 | ThunderHoleRWeld = CreateWeld(m, HandleR, ThunderHoleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.700005054, -0.000213623047, 0.228675842, -1.0658141e-014, -1, -1.0658141e-014, 9.48578222e-016, 1.0658141e-014, -1, 1, -1.0658141e-014, 9.48578116e-016)) | |
| 512 | CreateMesh("CylinderMesh", ThunderHoleR, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 513 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 514 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232376099, 0.600004911, 0.628646851, 9.48580657e-016, -3.19744231e-014, -1, 0, 1, -3.19744231e-014, 1, 0, 9.48580551e-016)) | |
| 515 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 516 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
| 517 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.219985962, 0.0286712646, 1.10000277, -3.12924385e-007, 1.07931264e-007, 1, 1, 5.49689787e-008, 3.12924385e-007, -5.49689467e-008, 1, -1.07931285e-007)) | |
| 518 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 519 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
| 520 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232376099, -0.528656006, 1.100003, 9.48580657e-016, -3.19744231e-014, -1, -1, -5.9604659e-008, -9.48578539e-016, -5.9604659e-008, 1, -3.19744231e-014)) | |
| 521 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 522 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.400000006)) | |
| 523 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.43051147e-005, -0.920844555, 0.718658447, 9.48580657e-016, -3.19744231e-014, -1, 0, 1, -3.19744231e-014, 1, 0, 9.48580551e-016)) | |
| 524 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 525 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.03999996, 1.00999999, 1.01999998)) | |
| 526 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.495002031, -0.0186691284, -9.48580657e-016, 3.19744231e-014, 1, 0, 1, -3.19744231e-014, -1, 0, -9.48580551e-016)) | |
| 527 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 528 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
| 529 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.232390404, 0.0286712646, 1.100003, -3.12924385e-007, 1.07931264e-007, 1, 1, 5.49689787e-008, 3.12924385e-007, -5.49689467e-008, 1, -1.07931285e-007)) | |
| 530 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 531 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
| 532 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.219985962, -0.528671265, 1.100003, 9.48580657e-016, -3.19744231e-014, -1, -1, -5.9604659e-008, -9.48578539e-016, -5.9604659e-008, 1, -3.19744231e-014)) | |
| 533 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 534 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.400000006)) | |
| 535 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.43051147e-005, -0.100847006, 0.718658447, 2.45555211e-015, -5.96046306e-008, 1, -1.42108547e-014, -1, -5.96046306e-008, 1, -1.42108547e-014, -2.45555296e-015)) | |
| 536 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 537 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 538 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.220002174, 0.600004911, 0.628662109, 9.48580657e-016, -3.19744231e-014, -1, 0, 1, -3.19744231e-014, 1, 0, 9.48580551e-016)) | |
| 539 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 540 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.00999999, 0.410000026, 0.410000026)) | |
| 541 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00409030914, 0.623651981, 0.0869140625, 7.5121838e-016, 3.45568019e-009, -1, -5.9604659e-008, -1, -3.45568019e-009, -1, 5.9604659e-008, -5.45243684e-016)) | |
| 542 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 543 | ||
| 544 | --[[ Credits to Fenrier for the Effect Functions. ]]-- | |
| 545 | ||
| 546 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 547 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 548 | prt.Anchored = true | |
| 549 | prt.CFrame = cframe | |
| 550 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 551 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 552 | if Type == 1 or Type == nil then | |
| 553 | table.insert(Effects, {
| |
| 554 | prt, | |
| 555 | "Block1", | |
| 556 | delay, | |
| 557 | x3, | |
| 558 | y3, | |
| 559 | z3, | |
| 560 | msh | |
| 561 | }) | |
| 562 | elseif Type == 2 then | |
| 563 | table.insert(Effects, {
| |
| 564 | prt, | |
| 565 | "Block2", | |
| 566 | delay, | |
| 567 | x3, | |
| 568 | y3, | |
| 569 | z3, | |
| 570 | msh | |
| 571 | }) | |
| 572 | end | |
| 573 | end | |
| 574 | ||
| 575 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 576 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 577 | prt.Anchored = true | |
| 578 | prt.CFrame = cframe | |
| 579 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 580 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 581 | table.insert(Effects, {
| |
| 582 | prt, | |
| 583 | "Cylinder", | |
| 584 | delay, | |
| 585 | x3, | |
| 586 | y3, | |
| 587 | z3, | |
| 588 | msh | |
| 589 | }) | |
| 590 | end | |
| 591 | ||
| 592 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 593 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 594 | prt.Anchored = true | |
| 595 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
| 596 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 597 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 598 | table.insert(Effects, {
| |
| 599 | prt, | |
| 600 | "Cylinder", | |
| 601 | delay, | |
| 602 | x3, | |
| 603 | y3, | |
| 604 | z3, | |
| 605 | msh | |
| 606 | }) | |
| 607 | end | |
| 608 | ||
| 609 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 610 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 611 | prt.Anchored = true | |
| 612 | prt.CFrame = cframe | |
| 613 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 614 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 615 | table.insert(Effects, {
| |
| 616 | prt, | |
| 617 | "Cylinder", | |
| 618 | delay, | |
| 619 | x3, | |
| 620 | y3, | |
| 621 | z3, | |
| 622 | msh | |
| 623 | }) | |
| 624 | end | |
| 625 | ||
| 626 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 627 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 628 | prt.Anchored = true | |
| 629 | prt.CFrame = cframe | |
| 630 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 631 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 632 | table.insert(Effects, {
| |
| 633 | prt, | |
| 634 | "Cylinder", | |
| 635 | delay, | |
| 636 | x3, | |
| 637 | y3, | |
| 638 | z3, | |
| 639 | msh | |
| 640 | }) | |
| 641 | end | |
| 642 | ||
| 643 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 644 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 645 | prt.Anchored = true | |
| 646 | prt.CFrame = cframe | |
| 647 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 648 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 649 | table.insert(Effects, {
| |
| 650 | prt, | |
| 651 | "Cylinder", | |
| 652 | delay, | |
| 653 | x3, | |
| 654 | y3, | |
| 655 | z3, | |
| 656 | msh | |
| 657 | }) | |
| 658 | end | |
| 659 | ||
| 660 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
| 661 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 662 | prt.Anchored = true | |
| 663 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 664 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 665 | local num = math.random(10, 50) / 1000 | |
| 666 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 667 | table.insert(Effects, {
| |
| 668 | prt, | |
| 669 | "Shatter", | |
| 670 | num, | |
| 671 | prt.CFrame, | |
| 672 | math.random() - math.random(), | |
| 673 | 0, | |
| 674 | math.random(50, 100) / 100 | |
| 675 | }) | |
| 676 | end | |
| 677 | ||
| 678 | --[[ Attack Functions ]]-- | |
| 679 | ||
| 680 | local Mode = "Normal" | |
| 681 | ||
| 682 | RSH = Torso["Right Shoulder"] | |
| 683 | LSH = Torso["Left Shoulder"] | |
| 684 | RH = Torso["Right Hip"] | |
| 685 | LH = Torso["Left Hip"] | |
| 686 | Animate = Character.Animate | |
| 687 | Animator = Humanoid.Animator | |
| 688 | ||
| 689 | function Equip() | |
| 690 | attack = true | |
| 691 | equipped = true | |
| 692 | RSH.Parent = nil | |
| 693 | LSH.Parent = nil | |
| 694 | Animator.Parent = nil | |
| 695 | Animate.Disabled = true | |
| 696 | change = 3 | |
| 697 | RW = Create("Weld"){
| |
| 698 | Name = "Right Shoulder", | |
| 699 | Part0 = Torso , | |
| 700 | C0 = CFrame.new(1.5, 0.5, 0), | |
| 701 | C1 = CFrame.new(0, 0.5, 0), | |
| 702 | Part1 = RightArm , | |
| 703 | Parent = Torso , | |
| 704 | } | |
| 705 | LW = Create("Weld"){
| |
| 706 | Name = "Left Shoulder", | |
| 707 | Part0 = Torso , | |
| 708 | C0 = CFrame.new(-1.5, 0.5, 0), | |
| 709 | C1 = CFrame.new(0, 0.5, 0) , | |
| 710 | Part1 = LeftArm , | |
| 711 | Parent = Torso , | |
| 712 | } | |
| 713 | CreateSound("http://roblox.com/asset/?id=346134880", Torso, 1, 1)
| |
| 714 | for i = 0, 1, 0.1 do | |
| 715 | swait() | |
| 716 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2) | |
| 717 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 718 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(0), math.rad(170), math.rad(90)), .25) | |
| 719 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.7) * angles(math.rad(0), math.rad(-170), math.rad(-110)), .25) | |
| 720 | if Torsovelocity < 1 then | |
| 721 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2) | |
| 722 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2) | |
| 723 | elseif Torsovelocity > 2 then | |
| 724 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 725 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 726 | end | |
| 727 | end | |
| 728 | CreateSound("http://roblox.com/asset/?id=346134880", Torso, 1, .9)
| |
| 729 | for i = 0, 1, 0.1 do | |
| 730 | swait() | |
| 731 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2) | |
| 732 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 733 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(0), math.rad(170), math.rad(95)), .34) | |
| 734 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.7) * angles(math.rad(0), math.rad(-170), math.rad(-120)), .34) | |
| 735 | if Torsovelocity < 1 then | |
| 736 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2) | |
| 737 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2) | |
| 738 | elseif Torsovelocity > 2 then | |
| 739 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 740 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 741 | end | |
| 742 | end | |
| 743 | for i = 0, 1, 0.1 do | |
| 744 | swait() | |
| 745 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2) | |
| 746 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 747 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.7) * angles(math.rad(0), math.rad(170), math.rad(110)), .25) | |
| 748 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.5) * angles(math.rad(0), math.rad(-170), math.rad(-90)), .25) | |
| 749 | if Torsovelocity < 1 then | |
| 750 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2) | |
| 751 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2) | |
| 752 | elseif Torsovelocity > 2 then | |
| 753 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 754 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 755 | end | |
| 756 | end | |
| 757 | for i = 0, 1, 0.1 do | |
| 758 | swait() | |
| 759 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2) | |
| 760 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 761 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.7) * angles(math.rad(0), math.rad(170), math.rad(120)), .34) | |
| 762 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.7) * angles(math.rad(0), math.rad(-180), math.rad(-95)), .34) | |
| 763 | if Torsovelocity < 1 then | |
| 764 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2) | |
| 765 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2) | |
| 766 | elseif Torsovelocity > 2 then | |
| 767 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 768 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 769 | end | |
| 770 | end | |
| 771 | attack = false | |
| 772 | end | |
| 773 | ||
| 774 | function Unequip() | |
| 775 | attack = true | |
| 776 | for i = 0, 1, 0.1 do | |
| 777 | swait() | |
| 778 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 779 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 780 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 781 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 782 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 783 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 784 | end | |
| 785 | equipped = false | |
| 786 | RW.Parent = nil | |
| 787 | LW.Parent = nil | |
| 788 | RSH.Parent = Torso | |
| 789 | LSH.Parent = Torso | |
| 790 | Torso.Neck.C0 = NeckCF | |
| 791 | RootJoint.C0 = RootCF | |
| 792 | Animator.Parent = Humanoid | |
| 793 | Animate.Disabled = false | |
| 794 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 795 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 796 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 797 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 798 | attack = false | |
| 799 | end | |
| 800 | ||
| 801 | function attackone() | |
| 802 | attack = true | |
| 803 | local Con1 = HitboxL.Touched:connect(function(hit) | |
| 804 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 805 | end) | |
| 806 | for i = 0, 1, 0.13 do | |
| 807 | swait() | |
| 808 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(0), math.rad(0), math.rad(70)), .3) | |
| 809 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), .3) | |
| 810 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, -.3) * angles(math.rad(180), math.rad(-20), math.rad(10)), .3) | |
| 811 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.4, -.7) * angles(math.rad(0), math.rad(-150), math.rad(-90)), .3) | |
| 812 | RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-4), math.rad(-40), math.rad(0)), .3) | |
| 813 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-4), math.rad(-40), math.rad(30)), .3) | |
| 814 | end | |
| 815 | CreateSound("http://www.roblox.com/asset/?id=200632136", HitboxL, 1, 1)
| |
| 816 | for i = 0, 1, 0.12 do | |
| 817 | swait() | |
| 818 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(20), math.rad(0), math.rad(-80)), .54) | |
| 819 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(-10), math.rad(80)), .54) | |
| 820 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, .3) * angles(math.rad(50), math.rad(20), math.rad(0)), .54) | |
| 821 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, -.3) * angles(math.rad(0), math.rad(-20), math.rad(-110)), .54) | |
| 822 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-4), math.rad(40), math.rad(-10)), .54) | |
| 823 | LH.C0 = clerp(LH.C0, cn(-1, -.7, 0) * LHCF * angles(math.rad(-4), math.rad(40), math.rad(-20)), .54) | |
| 824 | end | |
| 825 | Con1:disconnect() | |
| 826 | attack = false | |
| 827 | end | |
| 828 | ||
| 829 | function attacktwo() | |
| 830 | attack = true | |
| 831 | local Con1 = HitboxR.Touched:connect(function(hit) | |
| 832 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 833 | end) | |
| 834 | for i = 0, 1, 0.13 do | |
| 835 | swait() | |
| 836 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.4) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
| 837 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
| 838 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(-90), math.rad(0)), .3) | |
| 839 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * angles(math.rad(120), math.rad(0), math.rad(10)), .3) | |
| 840 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-40)), .3) | |
| 841 | LH.C0 = clerp(LH.C0, cn(-1, -.7, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 842 | end | |
| 843 | CreateSound("http://www.roblox.com/asset/?id=200632136", HitboxR, 1, 1.1)
| |
| 844 | for i = 0, 1, 0.12 do | |
| 845 | swait() | |
| 846 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0) * angles(math.rad(0), math.rad(0), math.rad(80)), .55) | |
| 847 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .55) | |
| 848 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6, -.3) * angles(math.rad(180), math.rad(-20), math.rad(10)), .55) | |
| 849 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), .55) | |
| 850 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .55) | |
| 851 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .55) | |
| 852 | end | |
| 853 | Con1:disconnect() | |
| 854 | attack = false | |
| 855 | end | |
| 856 | ||
| 857 | function attackthree() | |
| 858 | attack = true | |
| 859 | local Con1 = HitboxL.Touched:connect(function(hit) | |
| 860 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 861 | end) | |
| 862 | local Con2 = HitboxR.Touched:connect(function(hit) | |
| 863 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 864 | end) | |
| 865 | for i = 0, 1, 0.13 do | |
| 866 | swait() | |
| 867 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), .3) | |
| 868 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .3) | |
| 869 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(90), math.rad(50), math.rad(0)), .3) | |
| 870 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.5) * angles(math.rad(90), math.rad(-50), math.rad(0)), .3) | |
| 871 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3) | |
| 872 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(20)), .3) | |
| 873 | end | |
| 874 | CreateSound("http://www.roblox.com/asset/?id=200632136", Torso, 1, .8)
| |
| 875 | Torso.Velocity = RootPart.CFrame.lookVector * 120 | |
| 876 | for i = 0, 1, 0.13 do | |
| 877 | swait() | |
| 878 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), .55) | |
| 879 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .55) | |
| 880 | RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.5, -.8) * angles(math.rad(120), math.rad(60), math.rad(0)), .55) | |
| 881 | LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.8) * angles(math.rad(120), math.rad(-60), math.rad(0)), .55) | |
| 882 | RH.C0 = clerp(RH.C0, cn(1, -.6, -.2) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3) | |
| 883 | LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .3) | |
| 884 | end | |
| 885 | Con1:disconnect() | |
| 886 | Con2:disconnect() | |
| 887 | attack = false | |
| 888 | end | |
| 889 | ||
| 890 | function attackfour() | |
| 891 | attack = true | |
| 892 | Torso.Velocity = Vector3.new(0, 100, 0) | |
| 893 | Humanoid.Jump = true | |
| 894 | CreateSound("http://roblox.com/asset/?id=199145327", Torso, 1, .8)
| |
| 895 | for i = 0, 1, 0.12 do | |
| 896 | swait() | |
| 897 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(6 * i, math.rad(0), math.rad(0)), .3) | |
| 898 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 899 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-40)), .3) | |
| 900 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(40)), .3) | |
| 901 | RH.C0 = clerp(RH.C0, cn(1, -.2, -.5) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
| 902 | LH.C0 = clerp(LH.C0, cn(-1, -.1, -.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
| 903 | end | |
| 904 | for i = 0, 1, 0.12 do | |
| 905 | swait() | |
| 906 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10 * i), math.rad(0), math.rad(0)), .5) | |
| 907 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .5) | |
| 908 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(60)), .5) | |
| 909 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-60)), .5) | |
| 910 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(40)), .5) | |
| 911 | LH.C0 = clerp(LH.C0, cn(-1, 0, -.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .5) | |
| 912 | end | |
| 913 | local hitfloor = nil | |
| 914 | while hitfloor == nil do | |
| 915 | swait() | |
| 916 | hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 3, Character) | |
| 917 | end | |
| 918 | MagnitudeDamage(RootPart, 30, 20, 35, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 919 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 6, Character) | |
| 920 | if hit ~= nil then | |
| 921 | local Color = hit.BrickColor | |
| 922 | local refpart = CreatePart(workspace, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new()) | |
| 923 | refpart.Anchored = true | |
| 924 | refpart.CFrame = CFrame.new(pos) | |
| 925 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 926 | CreateSound("http://www.roblox.com/asset/?id=199145477", refpart, .8, 1)
| |
| 927 | for i = 1, 5 do | |
| 928 | local Color = hit.BrickColor | |
| 929 | local Materials = hit.Material | |
| 930 | local groundpart = CreatePart(workspace, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(50, 100) / 100, math.random(50, 100) / 100, math.random(50, 100) / 100)) | |
| 931 | groundpart.Anchored = false | |
| 932 | groundpart.Material = Materials | |
| 933 | groundpart.CanCollide = true | |
| 934 | groundpart.Friction = 0.1 | |
| 935 | groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50)) | |
| 936 | groundpart.CFrame = CFrame.new(pos) * CFrame.new(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 937 | game:GetService("Debris"):AddItem(groundpart, 10)
| |
| 938 | end | |
| 939 | for i = 1, 6 do | |
| 940 | local Color = hit.BrickColor | |
| 941 | local Materials = hit.Material | |
| 942 | local actualgroundpart = CreatePart(workspace, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100)) | |
| 943 | actualgroundpart.Anchored = true | |
| 944 | actualgroundpart.Material = Materials | |
| 945 | actualgroundpart.CanCollide = true | |
| 946 | actualgroundpart.Friction = 1 | |
| 947 | actualgroundpart.CFrame = CFrame.new(pos) * CFrame.new(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 948 | game:GetService("Debris"):AddItem(actualgroundpart, 10)
| |
| 949 | end | |
| 950 | WaveEffect(hit.BrickColor, refpart.CFrame, .2, .2, .2, .5, .5, .5, .04) | |
| 951 | SphereEffect(hit.BrickColor, refpart.CFrame, .2, .2, .2, 3, 3, 3, .04) | |
| 952 | RingEffect(hit.BrickColor, refpart.CFrame * CFrame.Angles(math.random(5, 6), math.random(2, 7), math.random(3, 6)), .2, .2, .2, 1, 1, 1, .05) | |
| 953 | end | |
| 954 | attack = false | |
| 955 | end | |
| 956 | ||
| 957 | function ShootCannon(asd) | |
| 958 | local MainPos = asd.Position | |
| 959 | local MainPos2 = mouse.Hit.p | |
| 960 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
| 961 | num = 100 | |
| 962 | coroutine.resume(coroutine.create(function() | |
| 963 | repeat | |
| 964 | swait() | |
| 965 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, RootPart.Parent) | |
| 966 | local mag = (MainPos - pos).magnitude | |
| 967 | CylinderEffect(BrickColor.new("New Yeller"), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 100, .1, 0, 1.5, 0.1)
| |
| 968 | MainPos = MainPos + (MouseLook.lookVector * 10) | |
| 969 | num = num - 1 | |
| 970 | if hit ~= nil then | |
| 971 | num = 0 | |
| 972 | local ref = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new("New Yeller"), "Reference", Vector3.new())
| |
| 973 | ref.Anchored = true | |
| 974 | ref.CFrame = CFrame.new(pos) | |
| 975 | BlockEffect(BrickColor.new("New Yeller"), CFrame.new(pos), 20, 20, 20, 5, 5, 5, 0.1)
| |
| 976 | MagnitudeDamage(ref, 30, 25, 50, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 977 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 978 | end | |
| 979 | until num <= 0 | |
| 980 | end)) | |
| 981 | end | |
| 982 | ||
| 983 | gun = false | |
| 984 | ||
| 985 | shoot = false | |
| 986 | ||
| 987 | gunidle = false | |
| 988 | ||
| 989 | local Loaded = false | |
| 990 | ||
| 991 | function GunStance() | |
| 992 | attack = true | |
| 993 | gun = true | |
| 994 | change = 3 | |
| 995 | Barrel1.Transparency = 0 | |
| 996 | Barrel2.Transparency = 0 | |
| 997 | Choke1.Transparency = 0 | |
| 998 | Choke2.Transparency = 0 | |
| 999 | for i = 0, 1, 0.1 do | |
| 1000 | swait() | |
| 1001 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3) | |
| 1002 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), .3) | |
| 1003 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3) | |
| 1004 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
| 1005 | HandleWeld.C0 = clerp(HandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1006 | if Torsovelocity < 1 then | |
| 1007 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
| 1008 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
| 1009 | elseif Torsovelocity > 2 then | |
| 1010 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1011 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1012 | end | |
| 1013 | end | |
| 1014 | local offset = nil | |
| 1015 | gunidle = true | |
| 1016 | while gun == true do | |
| 1017 | swait() | |
| 1018 | local gunpos = Vector3.new(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z) | |
| 1019 | offset = (Torso.Position.y - mouse.Hit.p.y) / 60 | |
| 1020 | local mag = (Torso.Position - mouse.Hit.p).magnitude / 80 | |
| 1021 | offset = offset / mag | |
| 1022 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, offset), .5) | |
| 1023 | if Torsovelocity < 1 then | |
| 1024 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
| 1025 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
| 1026 | elseif Torsovelocity > 2 then | |
| 1027 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1028 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1029 | end | |
| 1030 | end | |
| 1031 | if shoot == true then | |
| 1032 | gunidle = false | |
| 1033 | CreateSound("rbxassetid://131632972", Torso, 1, 1.2)
| |
| 1034 | CreateSound("rbxassetid://131632972", Torso, 1, 1)
| |
| 1035 | CreateSound("rbxassetid://131632972", Torso, 1, .7)
| |
| 1036 | ShootCannon(Choke1) | |
| 1037 | ShootCannon(Choke2) | |
| 1038 | for i = 0, 1, 0.15 do | |
| 1039 | swait() | |
| 1040 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3) | |
| 1041 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), .3) | |
| 1042 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(150)), .5) | |
| 1043 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
| 1044 | HandleWeld.C0 = clerp(HandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1045 | if Torsovelocity < 1 then | |
| 1046 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
| 1047 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
| 1048 | elseif Torsovelocity > 2 then | |
| 1049 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1050 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1051 | end | |
| 1052 | end | |
| 1053 | Loaded = false | |
| 1054 | end | |
| 1055 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), 1) | |
| 1056 | Barrel1.Transparency = 1 | |
| 1057 | Barrel2.Transparency = 1 | |
| 1058 | Choke1.Transparency = 1 | |
| 1059 | Choke2.Transparency = 1 | |
| 1060 | gun = false | |
| 1061 | gunidle = false | |
| 1062 | shoot = false | |
| 1063 | attack = false | |
| 1064 | end | |
| 1065 | ||
| 1066 | function Disappear() | |
| 1067 | for _, i in pairs(m:children()) do | |
| 1068 | if i.Name == "BladePrt" then | |
| 1069 | coroutine.resume(coroutine.create(function(Part) | |
| 1070 | for i = 0, 1, 0.1 do | |
| 1071 | swait() | |
| 1072 | Part.Transparency = i | |
| 1073 | end | |
| 1074 | Part.Transparency = 1 | |
| 1075 | end), i) | |
| 1076 | end | |
| 1077 | end | |
| 1078 | end | |
| 1079 | ||
| 1080 | ||
| 1081 | function Reappear() | |
| 1082 | for _, i in pairs(m:children()) do | |
| 1083 | if i.Name == "BladePrt" then | |
| 1084 | coroutine.resume(coroutine.create(function(Part) | |
| 1085 | for i = 0, 1, 0.1 do | |
| 1086 | swait() | |
| 1087 | Part.Transparency = i | |
| 1088 | end | |
| 1089 | Part.Transparency = 0 | |
| 1090 | end), i) | |
| 1091 | end | |
| 1092 | end | |
| 1093 | end | |
| 1094 | ||
| 1095 | function BladeEquip() | |
| 1096 | attack = true | |
| 1097 | for i = 0, 1, 0.15 do | |
| 1098 | swait() | |
| 1099 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1100 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1101 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, 0) * angles(math.rad(210), math.rad(0), math.rad(30)), .5) | |
| 1102 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3) | |
| 1103 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 1104 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 1105 | end | |
| 1106 | CreateSound("http://roblox.com/asset/?id=199145327", FakeHandle, .6, 1)
| |
| 1107 | HandleWeld:remove() | |
| 1108 | HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.032043457, 0.996201754, -0.111961365, 8.94076351e-008, 1.1920929e-007, 1, -1.49014454e-007, 1, -1.19209275e-007, -1, -1.4901444e-007, 8.94076564e-008)) | |
| 1109 | for i = 0, 1, 0.1 do | |
| 1110 | swait() | |
| 1111 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1112 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1113 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(70)), .3) | |
| 1114 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3) | |
| 1115 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 1116 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 1117 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(90), math.rad(0), -6 * i), .3) | |
| 1118 | end | |
| 1119 | Reappear() | |
| 1120 | Mode = "Sword" | |
| 1121 | attack = false | |
| 1122 | end | |
| 1123 | ||
| 1124 | function UnequipBlade() | |
| 1125 | attack = true | |
| 1126 | for i = 0, 1, 0.15 do | |
| 1127 | swait() | |
| 1128 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1129 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1130 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, 0) * angles(math.rad(210), math.rad(0), math.rad(30)), .5) | |
| 1131 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3) | |
| 1132 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 1133 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 1134 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(40), math.rad(-60)), .3) | |
| 1135 | end | |
| 1136 | Disappear() | |
| 1137 | HandleWeld:remove() | |
| 1138 | HandleWeld = CreateWeld(m, Character["Torso"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.57640076, -0.105987549, -0.672006607, 0.866025388, 0.500000119, -8.94076351e-008, -0.500000119, 0.866025388, 1.49014454e-007, 1.51936518e-007, -8.43464605e-008, 1)) | |
| 1139 | Mode = "Normal" | |
| 1140 | attack = false | |
| 1141 | end | |
| 1142 | ||
| 1143 | function BladeAttackOne() | |
| 1144 | attack = true | |
| 1145 | local Con1 = BladeHitbox.Touched:connect(function(hit) | |
| 1146 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 1147 | end) | |
| 1148 | for i = 0, 1, 0.15 do | |
| 1149 | swait() | |
| 1150 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .3) | |
| 1151 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
| 1152 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.5) * angles(math.rad(0), math.rad(150), math.rad(120)), .3) | |
| 1153 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.7) * angles(math.rad(0), math.rad(70), math.rad(90)), .3) | |
| 1154 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .3) | |
| 1155 | if Torsovelocity < 1 then | |
| 1156 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2) | |
| 1157 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2) | |
| 1158 | elseif Torsovelocity > 2 then | |
| 1159 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1160 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1161 | end | |
| 1162 | end | |
| 1163 | CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .8)
| |
| 1164 | for i = 0, 1, 0.15 do | |
| 1165 | swait() | |
| 1166 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(-60)), .4) | |
| 1167 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60)), .4) | |
| 1168 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, 0) * angles(math.rad(0), math.rad(70), math.rad(80)), .4) | |
| 1169 | LW.C0 = clerp(LW.C0, CFrame.new(-.4, 0.5, -1) * angles(math.rad(0), math.rad(20), math.rad(70)), .4) | |
| 1170 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .4) | |
| 1171 | if Torsovelocity < 1 then | |
| 1172 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2) | |
| 1173 | LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(-10)), .2) | |
| 1174 | elseif Torsovelocity > 2 then | |
| 1175 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1176 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1177 | end | |
| 1178 | end | |
| 1179 | Con1:disconnect() | |
| 1180 | attack = false | |
| 1181 | end | |
| 1182 | ||
| 1183 | function BladeAttackTwo() | |
| 1184 | attack = true | |
| 1185 | local Con1 = BladeHitbox.Touched:connect(function(hit) | |
| 1186 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 1187 | end) | |
| 1188 | for i = 0, 1, 0.15 do | |
| 1189 | swait() | |
| 1190 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
| 1191 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), .3) | |
| 1192 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.7) * angles(math.rad(0), math.rad(-70), math.rad(-90)), .3) | |
| 1193 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-120)), .3) | |
| 1194 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .3) | |
| 1195 | if Torsovelocity < 1 then | |
| 1196 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2) | |
| 1197 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2) | |
| 1198 | elseif Torsovelocity > 2 then | |
| 1199 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1200 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1201 | end | |
| 1202 | end | |
| 1203 | CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, 1)
| |
| 1204 | for i = 0, 1, 0.15 do | |
| 1205 | swait() | |
| 1206 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(60)), .4) | |
| 1207 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(5), math.rad(-60)), .4) | |
| 1208 | RW.C0 = clerp(RW.C0, CFrame.new(.4, 0.5, -1) * angles(math.rad(0), math.rad(-20), math.rad(-70)), .4) | |
| 1209 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.1, 0) * angles(math.rad(0), math.rad(-70), math.rad(-80)), .4) | |
| 1210 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(80)), .4) | |
| 1211 | if Torsovelocity < 1 then | |
| 1212 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2) | |
| 1213 | LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(-10)), .2) | |
| 1214 | elseif Torsovelocity > 2 then | |
| 1215 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1216 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1217 | end | |
| 1218 | end | |
| 1219 | Con1:disconnect() | |
| 1220 | attack = false | |
| 1221 | end | |
| 1222 | ||
| 1223 | function BladeAttackThree() | |
| 1224 | attack = true | |
| 1225 | local Con1 = BladeHitbox.Touched:connect(function(hit) | |
| 1226 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 1227 | end) | |
| 1228 | for i = 0, 1, 0.15 do | |
| 1229 | swait() | |
| 1230 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), .34) | |
| 1231 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .34) | |
| 1232 | RW.C0 = clerp(RW.C0, CFrame.new(1, 1, -.5) * angles(math.rad(120), math.rad(0), math.rad(-40)), .34) | |
| 1233 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 1, -.5) * angles(math.rad(120), math.rad(0), math.rad(40)), .34) | |
| 1234 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), .4) | |
| 1235 | if Torsovelocity < 1 then | |
| 1236 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-10)), .34) | |
| 1237 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .34) | |
| 1238 | elseif Torsovelocity > 2 then | |
| 1239 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1240 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1241 | end | |
| 1242 | end | |
| 1243 | CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .7)
| |
| 1244 | for i = 0, 1, 0.13 do | |
| 1245 | swait() | |
| 1246 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(0), math.rad(0), math.rad(0)), .5) | |
| 1247 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .5) | |
| 1248 | RW.C0 = clerp(RW.C0, CFrame.new(1, .3, -.3) * angles(math.rad(10), math.rad(0), math.rad(-40)), .5) | |
| 1249 | LW.C0 = clerp(LW.C0, CFrame.new(-1, .3, -.3) * angles(math.rad(10), math.rad(0), math.rad(40)), .5) | |
| 1250 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(30)), .5) | |
| 1251 | if Torsovelocity < 1 then | |
| 1252 | RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-10)), .34) | |
| 1253 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .34) | |
| 1254 | elseif Torsovelocity > 2 then | |
| 1255 | RH.C0 = clerp(RH.C0, cn(1, -.8, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1256 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1257 | end | |
| 1258 | end | |
| 1259 | Con1:disconnect() | |
| 1260 | attack = false | |
| 1261 | end | |
| 1262 | ||
| 1263 | function BladeAttackFour() | |
| 1264 | attack = true | |
| 1265 | local Con1 = BladeHitbox.Touched:connect(function(hit) | |
| 1266 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 1267 | end) | |
| 1268 | for i = 1,2 do | |
| 1269 | for i = 0, 1, 0.3 do | |
| 1270 | swait() | |
| 1271 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .5) | |
| 1272 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-60)), .5) | |
| 1273 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.5) * angles(math.rad(0), math.rad(150), math.rad(120)), .5) | |
| 1274 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.7) * angles(math.rad(0), math.rad(70), math.rad(90)), .5) | |
| 1275 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .5) | |
| 1276 | if Torsovelocity < 1 then | |
| 1277 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .5) | |
| 1278 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .5) | |
| 1279 | elseif Torsovelocity > 2 then | |
| 1280 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .5) | |
| 1281 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .5) | |
| 1282 | end | |
| 1283 | end | |
| 1284 | CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, 1)
| |
| 1285 | for i = 0, 1, 0.3 do | |
| 1286 | swait() | |
| 1287 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(-60)), .4) | |
| 1288 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60)), .4) | |
| 1289 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, 0) * angles(math.rad(0), math.rad(70), math.rad(80)), .4) | |
| 1290 | LW.C0 = clerp(LW.C0, CFrame.new(-.4, 0.5, -1) * angles(math.rad(0), math.rad(20), math.rad(70)), .4) | |
| 1291 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .4) | |
| 1292 | if Torsovelocity < 1 then | |
| 1293 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2) | |
| 1294 | LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(-10)), .2) | |
| 1295 | elseif Torsovelocity > 2 then | |
| 1296 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1297 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1298 | end | |
| 1299 | end | |
| 1300 | for i = 0, 1, 0.3 do | |
| 1301 | swait() | |
| 1302 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .5) | |
| 1303 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), .5) | |
| 1304 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.7) * angles(math.rad(0), math.rad(-70), math.rad(-110)), .5) | |
| 1305 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-120)), .5) | |
| 1306 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .5) | |
| 1307 | if Torsovelocity < 1 then | |
| 1308 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .5) | |
| 1309 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .5) | |
| 1310 | elseif Torsovelocity > 2 then | |
| 1311 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-0), math.rad(0) - math.sin(sine / 10)), .5) | |
| 1312 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .5) | |
| 1313 | end | |
| 1314 | end | |
| 1315 | CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .8)
| |
| 1316 | for i = 0, 1, 0.3 do | |
| 1317 | swait() | |
| 1318 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(60)), .4) | |
| 1319 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(5), math.rad(-60)), .4) | |
| 1320 | RW.C0 = clerp(RW.C0, CFrame.new(.4, 0.5, -1) * angles(math.rad(0), math.rad(-20), math.rad(-70)), .4) | |
| 1321 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.1, 0) * angles(math.rad(0), math.rad(-70), math.rad(-80)), .4) | |
| 1322 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(80)), .4) | |
| 1323 | if Torsovelocity < 1 then | |
| 1324 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2) | |
| 1325 | LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(-10)), .2) | |
| 1326 | elseif Torsovelocity > 2 then | |
| 1327 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1328 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 1329 | end | |
| 1330 | end | |
| 1331 | end | |
| 1332 | Con1:disconnect() | |
| 1333 | attack = false | |
| 1334 | end | |
| 1335 | ||
| 1336 | --[[Attacks]]-- | |
| 1337 | ||
| 1338 | mouse.Button1Down:connect(function() | |
| 1339 | if attack == false and attacktype == 1 and equipped == true and Mode == "Normal" then | |
| 1340 | attacktype = 2 | |
| 1341 | attackone() | |
| 1342 | elseif attack == false and attacktype == 2 and equipped == true and Mode == "Normal" then | |
| 1343 | attacktype = 3 | |
| 1344 | attacktwo() | |
| 1345 | elseif attack == false and attacktype == 3 and equipped == true and Mode == "Normal" then | |
| 1346 | attacktype = 4 | |
| 1347 | attackthree() | |
| 1348 | elseif attack == false and attacktype == 4 and equipped == true and Mode == "Normal" then | |
| 1349 | attacktype = 1 | |
| 1350 | attackfour() | |
| 1351 | end | |
| 1352 | if attack == false and attacktype == 1 and equipped == true and Mode == "Sword" then | |
| 1353 | attacktype = 2 | |
| 1354 | BladeAttackOne() | |
| 1355 | elseif attack == false and attacktype == 2 and equipped == true and Mode == "Sword" then | |
| 1356 | attacktype = 3 | |
| 1357 | BladeAttackTwo() | |
| 1358 | elseif attack == false and attacktype == 3 and equipped == true and Mode == "Sword" then | |
| 1359 | attacktype = 4 | |
| 1360 | BladeAttackThree() | |
| 1361 | elseif attack == false and attacktype == 4 and equipped == true and Mode == "Sword" then | |
| 1362 | attacktype = 1 | |
| 1363 | BladeAttackFour() | |
| 1364 | end | |
| 1365 | if gun == true and shoot == false and equipped == true then | |
| 1366 | shoot = true | |
| 1367 | gun = false | |
| 1368 | end | |
| 1369 | end) | |
| 1370 | ||
| 1371 | mouse.KeyDown:connect(function(k) | |
| 1372 | k = k:lower() | |
| 1373 | if attack == false and equipped == false and k == 'f' and Mode == "Normal" then | |
| 1374 | Equip() | |
| 1375 | elseif attack == false and equipped == true and k == 'f' and Mode == "Normal" then | |
| 1376 | Unequip() | |
| 1377 | elseif attack == false and equipped == true and Mode == "Normal" and k == 'g' then | |
| 1378 | BladeEquip() | |
| 1379 | elseif attack == false and equipped == true and Mode == "Sword" and k == 'g' then | |
| 1380 | UnequipBlade() | |
| 1381 | elseif k == 'e' and gun == false and shoot == false and Mode == "Normal" and attack == false and equipped == true then | |
| 1382 | GunStance() | |
| 1383 | elseif k == 'e' and shoot == false and equipped == true and Mode == "Normal" then | |
| 1384 | if gun == true then | |
| 1385 | gun = false | |
| 1386 | end | |
| 1387 | end | |
| 1388 | end) | |
| 1389 | ||
| 1390 | --[[ Credits to Fenrier for the Movement Detection and Effects table. ]]-- | |
| 1391 | ||
| 1392 | while true do | |
| 1393 | swait() | |
| 1394 | for i, v in pairs(Character:GetChildren()) do | |
| 1395 | if v:IsA("Part") then
| |
| 1396 | v.Material = "SmoothPlastic" | |
| 1397 | elseif v:IsA("Hat") then
| |
| 1398 | v:WaitForChild("Handle").Material = "SmoothPlastic"
| |
| 1399 | end | |
| 1400 | end | |
| 1401 | if gun == true then | |
| 1402 | local aim = CFrame.new(RootPart.Position, mouse.Hit.p) | |
| 1403 | local direction = aim.lookVector | |
| 1404 | local headingA = math.atan2(direction.x, direction.z) | |
| 1405 | headingA = math.deg(headingA) | |
| 1406 | Humanoid.AutoRotate = false | |
| 1407 | RootPart.CFrame = CFrame.new(RootPart.Position) * angles(math.rad(0), math.rad(headingA - 180), math.rad(0)) | |
| 1408 | else | |
| 1409 | Humanoid.AutoRotate = true | |
| 1410 | end | |
| 1411 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1412 | velocity = RootPart.Velocity.y | |
| 1413 | sine = sine + change | |
| 1414 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 1415 | if equipped == true then | |
| 1416 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 1417 | Anim = "Jump" | |
| 1418 | if attack == false then | |
| 1419 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1420 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .3) | |
| 1421 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), .3) | |
| 1422 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), .3) | |
| 1423 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3) | |
| 1424 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(20)), .3) | |
| 1425 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1426 | end | |
| 1427 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 1428 | Anim = "Fall" | |
| 1429 | if attack == false then | |
| 1430 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1431 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(0)), .3) | |
| 1432 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
| 1433 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3) | |
| 1434 | RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(20)), .3) | |
| 1435 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(-20)), .3) | |
| 1436 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1437 | end | |
| 1438 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 1439 | Anim = "Idle" | |
| 1440 | if attack == false and Mode == "Normal" then | |
| 1441 | change = 1 | |
| 1442 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1 + .1 * math.sin(sine / 27)) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
| 1443 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 + 3 * math.cos(sine / 23)), math.rad(-2 - 3 * math.cos(sine / 23)), math.rad(-30)), .3) | |
| 1444 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.6 + .07 * math.cos(sine / 23), -.2) * angles(math.rad(110 + 2 * math.cos(sine / 24)), math.rad(35 + 3 * math.cos(sine / 23)), math.rad(-30)), .3) | |
| 1445 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.6 + .07 * math.cos(sine / 23), -.5) * angles(math.rad(120 + 2 * math.cos(sine / 24)), math.rad(-40 + 3 * math.cos(sine / 23)), math.rad(40)), .3) | |
| 1446 | RH.C0 = clerp(RH.C0, cn(1, -.9 - .1 * math.sin(sine / 27), 0) * RHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(-30), math.rad(0)), .3) | |
| 1447 | LH.C0 = clerp(LH.C0, cn(-1, -.9 - .1 * math.sin(sine / 27), 0) * LHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(-30), math.rad(0)), .3) | |
| 1448 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1449 | elseif attack == false and Mode == "Sword" then | |
| 1450 | change = 1 | |
| 1451 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1 + .1 * math.sin(sine / 27)) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
| 1452 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 + 3 * math.cos(sine / 23)), math.rad(-2 + 3 * math.cos(sine / 23)), math.rad(60)), .3) | |
| 1453 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.6, 0) * angles(math.rad(150 + 3 * math.cos(sine / 23)), math.rad(0), math.rad(10)), 0.3) | |
| 1454 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, 0) * angles(math.rad(10 + 2 * math.cos(sine / 23)), math.rad(0), math.rad(-20 - 5 * math.cos(sine / 23))), 0.3) | |
| 1455 | RH.C0 = clerp(RH.C0, cn(1, -.9 - .1 * math.sin(sine / 27), 0) * RHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(20), math.rad(0)), .3) | |
| 1456 | LH.C0 = clerp(LH.C0, cn(-1, -.9 - .1 * math.sin(sine / 27), 0) * LHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(20), math.rad(0)), .3) | |
| 1457 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
| 1458 | end | |
| 1459 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 1460 | Anim = "Walk" | |
| 1461 | if attack == false and Mode == "Normal" then | |
| 1462 | change = 3 | |
| 1463 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.2) * angles(math.rad(30), math.rad(0), math.rad(5 * math.cos(sine / 10) / 2)), .3) | |
| 1464 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(-5 * math.cos(sine / 10) / 2)), .3) | |
| 1465 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6 + .07 * math.cos(sine / 23), -.2) * angles(math.rad(110), math.rad(40), math.rad(-40)), .3) | |
| 1466 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6 + .07 * math.cos(sine / 23), -.2) * angles(math.rad(110), math.rad(-40), math.rad(40)), .3) | |
| 1467 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 8) / 2, -.05 + math.sin(sine / 8) / 2) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(10) - math.sin(sine / 8)), .3) | |
| 1468 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 8) / 2, -.05 - math.sin(sine / 8) / 2) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-10) - math.sin(sine / 8)), .3) | |
| 1469 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1470 | elseif attack == false and Mode == "Sword" then | |
| 1471 | change = 3 | |
| 1472 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1 + .1 * math.sin(sine / 27)) * angles(math.rad(15), math.rad(0), math.rad(-60 + 10 * math.cos(sine / 13))), .3) | |
| 1473 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60 - 10 * math.cos(sine / 13))), .3) | |
| 1474 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(150 + 3 * math.cos(sine / 23)), math.rad(0), math.rad(-20)), 0.3) | |
| 1475 | LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.7, -1) * angles(math.rad(150 + 2 * math.cos(sine / 23)), math.rad(0), math.rad(40)), 0.3) | |
| 1476 | RH.C0 = clerp(RH.C0, cn(1, -1 - 0.3 * math.cos(sine / 8) / 2, -.05 + math.sin(sine / 8) / 2) * RHCF * angles(math.rad(-4), math.rad(40), math.rad(10) - math.sin(sine / 8)), .3) | |
| 1477 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 8) / 2, -.05 - math.sin(sine / 8) / 2) * LHCF * angles(math.rad(-4), math.rad(40), math.rad(-10) - math.sin(sine / 8)), .3) | |
| 1478 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
| 1479 | end | |
| 1480 | end | |
| 1481 | end | |
| 1482 | if #Effects > 0 then | |
| 1483 | for e = 1, #Effects do | |
| 1484 | if Effects[e] ~= nil then | |
| 1485 | local Thing = Effects[e] | |
| 1486 | if Thing ~= nil then | |
| 1487 | local Part = Thing[1] | |
| 1488 | local Mode = Thing[2] | |
| 1489 | local Delay = Thing[3] | |
| 1490 | local IncX = Thing[4] | |
| 1491 | local IncY = Thing[5] | |
| 1492 | local IncZ = Thing[6] | |
| 1493 | if Thing[1].Transparency <= 1 then | |
| 1494 | if Thing[2] == "Block1" then | |
| 1495 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1496 | Mesh = Thing[1].Mesh | |
| 1497 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1498 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1499 | elseif Thing[2] == "Block2" then | |
| 1500 | Thing[1].CFrame = Thing[1].CFrame | |
| 1501 | Mesh = Thing[7] | |
| 1502 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1503 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1504 | elseif Thing[2] == "Cylinder" then | |
| 1505 | Mesh = Thing[1].Mesh | |
| 1506 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1507 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1508 | elseif Thing[2] == "Blood" then | |
| 1509 | Mesh = Thing[7] | |
| 1510 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0) | |
| 1511 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1512 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1513 | elseif Thing[2] == "Elec" then | |
| 1514 | Mesh = Thing[1].Mesh | |
| 1515 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1516 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1517 | elseif Thing[2] == "Disappear" then | |
| 1518 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1519 | elseif Thing[2] == "Shatter" then | |
| 1520 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1521 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 1522 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1523 | Thing[6] = Thing[6] + Thing[5] | |
| 1524 | end | |
| 1525 | else | |
| 1526 | Part.Parent = nil | |
| 1527 | table.remove(Effects, e) | |
| 1528 | end | |
| 1529 | end | |
| 1530 | end | |
| 1531 | end | |
| 1532 | end | |
| 1533 | end | |
| 1534 | --[[NIGHTOWLACE_WEAPONRY]]-- | |
| 1535 | wait(1 / 60) | |
| 1536 | Effects = { }
| |
| 1537 | local Player = game.Players.localPlayer | |
| 1538 | local Character = Player.Character | |
| 1539 | local Humanoid = Character.Humanoid | |
| 1540 | Humanoid.WalkSpeed = 25 | |
| 1541 | local mouse = Player:GetMouse() | |
| 1542 | local m = Instance.new('Model', Character)
| |
| 1543 | m.Name = "WeaponModel" | |
| 1544 | local LeftArm = Character["Left Arm"] | |
| 1545 | local RightArm = Character["Right Arm"] | |
| 1546 | local LeftLeg = Character["Left Leg"] | |
| 1547 | local RightLeg = Character["Right Leg"] | |
| 1548 | local Head = Character.Head | |
| 1549 | local Torso = Character.Torso | |
| 1550 | local cam = game.Workspace.CurrentCamera | |
| 1551 | local RootPart = Character.HumanoidRootPart | |
| 1552 | local RootJoint = RootPart.RootJoint | |
| 1553 | local equipped = false | |
| 1554 | local attack = false | |
| 1555 | local Anim = 'Idle' | |
| 1556 | local idle = 0 | |
| 1557 | local attacktype = 1 | |
| 1558 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1559 | local velocity = RootPart.Velocity.y | |
| 1560 | local sine = 0 | |
| 1561 | local change = 1 | |
| 1562 | local grabbed = false | |
| 1563 | local cn = CFrame.new | |
| 1564 | local mr = math.rad | |
| 1565 | local angles = CFrame.Angles | |
| 1566 | local ud = UDim2.new | |
| 1567 | local c3 = Color3.new | |
| 1568 | ||
| 1569 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 1570 | ||
| 1571 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 1572 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 1573 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 1574 | ||
| 1575 | function clerp(a, b, t) | |
| 1576 | return a:lerp(b, t) | |
| 1577 | end | |
| 1578 | ||
| 1579 | --[[Credits to SazErenos for his Artificial Heartbeat]]-- | |
| 1580 | ||
| 1581 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 1582 | ArtificialHB.Name = "Heartbeat" | |
| 1583 | ||
| 1584 | script:WaitForChild("Heartbeat")
| |
| 1585 | ||
| 1586 | frame = 1 / 30 | |
| 1587 | tf = 0 | |
| 1588 | allowframeloss = false | |
| 1589 | tossremainder = false | |
| 1590 | lastframe = tick() | |
| 1591 | script.Heartbeat:Fire() | |
| 1592 | ||
| 1593 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 1594 | tf = tf + s | |
| 1595 | if tf >= frame then | |
| 1596 | if allowframeloss then | |
| 1597 | script.Heartbeat:Fire() | |
| 1598 | lastframe = tick() | |
| 1599 | else | |
| 1600 | for i = 1, math.floor(tf / frame) do | |
| 1601 | script.Heartbeat:Fire() | |
| 1602 | end | |
| 1603 | lastframe = tick() | |
| 1604 | end | |
| 1605 | if tossremainder then | |
| 1606 | tf = 0 | |
| 1607 | else | |
| 1608 | tf = tf - frame * math.floor(tf / frame) | |
| 1609 | end | |
| 1610 | end | |
| 1611 | end) | |
| 1612 | ||
| 1613 | function swait(num) | |
| 1614 | if num == 0 or num == nil then | |
| 1615 | ArtificialHB.Event:wait() | |
| 1616 | else | |
| 1617 | for i = 0, num do | |
| 1618 | ArtificialHB.Event:wait() | |
| 1619 | end | |
| 1620 | end | |
| 1621 | end | |
| 1622 | ||
| 1623 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 1624 | local Create = RbxUtility.Create | |
| 1625 | ||
| 1626 | --[[ Credits to Fenrier for Outline-Remover, Part, Mesh, Weld, Raycase and Sound Creation functions ]]-- | |
| 1627 | ||
| 1628 | function RemoveOutlines(part) | |
| 1629 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 1630 | end | |
| 1631 | ||
| 1632 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1633 | local Part = Create("Part"){
| |
| 1634 | Parent = Parent, | |
| 1635 | Reflectance = Reflectance, | |
| 1636 | Transparency = Transparency, | |
| 1637 | CanCollide = false, | |
| 1638 | Locked = true, | |
| 1639 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1640 | Name = Name, | |
| 1641 | Size = Size, | |
| 1642 | Material = Material, | |
| 1643 | } | |
| 1644 | RemoveOutlines(Part) | |
| 1645 | return Part | |
| 1646 | end | |
| 1647 | ||
| 1648 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1649 | local Msh = Create(Mesh){
| |
| 1650 | Parent = Part, | |
| 1651 | Offset = OffSet, | |
| 1652 | Scale = Scale, | |
| 1653 | } | |
| 1654 | if Mesh == "SpecialMesh" then | |
| 1655 | Msh.MeshType = MeshType | |
| 1656 | Msh.MeshId = MeshId | |
| 1657 | end | |
| 1658 | return Msh | |
| 1659 | end | |
| 1660 | ||
| 1661 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 1662 | local Weld = Create("Weld"){
| |
| 1663 | Parent = Parent, | |
| 1664 | Part0 = Part0, | |
| 1665 | Part1 = Part1, | |
| 1666 | C0 = C0, | |
| 1667 | C1 = C1, | |
| 1668 | } | |
| 1669 | return Weld | |
| 1670 | end | |
| 1671 | ||
| 1672 | function CreateBillBoardGui(Img, Pos, Siz) --returns a basic billboard gui object for further manipulation | |
| 1673 | local billpar = Create("Part"){
| |
| 1674 | Transparency = 1, | |
| 1675 | Size = Vector3.new(1, 1, 1), | |
| 1676 | Anchored = true, | |
| 1677 | CanCollide = false, | |
| 1678 | CFrame = CFrame.new(Pos), | |
| 1679 | Name = "BillboardGuiPart", | |
| 1680 | } | |
| 1681 | local bill = Create("BillboardGui"){
| |
| 1682 | Parent = billpar, | |
| 1683 | Adornee = billpar, | |
| 1684 | Size = UDim2.new(1, 0, 1, 0), | |
| 1685 | SizeOffset = Vector2.new(Siz, Siz), | |
| 1686 | } | |
| 1687 | local d = Create("ImageLabel"){
| |
| 1688 | Parent = bill, | |
| 1689 | BackgroundTransparency = 1, | |
| 1690 | Size = UDim2.new(1, 0, 1, 0), | |
| 1691 | Image = Img, | |
| 1692 | } | |
| 1693 | return billpar | |
| 1694 | end | |
| 1695 | ||
| 1696 | function rayCast(Position, Direction, Range, Ignore) | |
| 1697 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
| |
| 1698 | end | |
| 1699 | ||
| 1700 | function CreateSound(id, par, vol, pit) | |
| 1701 | coroutine.resume(coroutine.create(function() | |
| 1702 | local S = Create("Sound"){
| |
| 1703 | Volume = vol, | |
| 1704 | Pitch = pit or 1, | |
| 1705 | SoundId = id, | |
| 1706 | Parent = par or workspace, | |
| 1707 | } | |
| 1708 | swait() | |
| 1709 | S:play() | |
| 1710 | game:GetService("Debris"):AddItem(S, 6)
| |
| 1711 | end)) | |
| 1712 | end | |
| 1713 | ||
| 1714 | local function GetNearest(obj, distance) | |
| 1715 | local last, lastx = distance + 1 | |
| 1716 | for i, v in pairs(workspace:GetChildren()) do | |
| 1717 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
| |
| 1718 | local t = v.Torso | |
| 1719 | local dist = (t.Position - obj.Position).magnitude | |
| 1720 | if dist <= distance then | |
| 1721 | if dist < last then | |
| 1722 | last = dist | |
| 1723 | lastx = v | |
| 1724 | end | |
| 1725 | end | |
| 1726 | end | |
| 1727 | end | |
| 1728 | return lastx | |
| 1729 | end | |
| 1730 | ||
| 1731 | --[[ Credits to Kert109 (Ninja_Deer) for the Damage function. Fenrier for the Magnitude Damage ]]-- | |
| 1732 | ||
| 1733 | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
| 1734 | for i, v in pairs(hit:GetChildren()) do | |
| 1735 | if v:IsA("Humanoid") and hit.Name ~= Character.Name then
| |
| 1736 | local find = v:FindFirstChild("DebounceHit")
| |
| 1737 | if not find then | |
| 1738 | if v.Parent:findFirstChild("Head") then
| |
| 1739 | local BillG = Create("BillboardGui"){
| |
| 1740 | Parent = v.Parent.Head, | |
| 1741 | Size = UDim2.new(1, 0, 1, 0), | |
| 1742 | Adornee = v.Parent.Head, | |
| 1743 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
| 1744 | } | |
| 1745 | local TL = Create("TextLabel"){
| |
| 1746 | Parent = BillG, | |
| 1747 | Size = UDim2.new(3, 3, 3, 3), | |
| 1748 | BackgroundTransparency = 1, | |
| 1749 | Text = tostring(damage).."-", | |
| 1750 | TextColor3 = Color1.Color, | |
| 1751 | TextStrokeColor3 = Color2.Color, | |
| 1752 | TextStrokeTransparency = 0, | |
| 1753 | TextXAlignment = Enum.TextXAlignment.Center, | |
| 1754 | TextYAlignment = Enum.TextYAlignment.Center, | |
| 1755 | FontSize = Enum.FontSize.Size18, | |
| 1756 | Font = "ArialBold", | |
| 1757 | } | |
| 1758 | coroutine.resume(coroutine.create(function() | |
| 1759 | swait(1) | |
| 1760 | for i = 0, 1, .1 do | |
| 1761 | swait(.1) | |
| 1762 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
| 1763 | end | |
| 1764 | BillG:Destroy() | |
| 1765 | end)) | |
| 1766 | end | |
| 1767 | v.Health = v.Health - damage | |
| 1768 | local bool = Create("BoolValue"){
| |
| 1769 | Parent = v, | |
| 1770 | Name = "DebounceHit", | |
| 1771 | } | |
| 1772 | if HSound ~= nil and HPitch ~= nil then | |
| 1773 | CreateSound(HSound, hit, 1, HPitch) | |
| 1774 | end | |
| 1775 | game:GetService("Debris"):AddItem(bool, cooldown)
| |
| 1776 | end | |
| 1777 | end | |
| 1778 | end | |
| 1779 | end | |
| 1780 | ||
| 1781 | function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HSound, HPitch) | |
| 1782 | for _, c in pairs(workspace:children()) do | |
| 1783 | local hum = c:findFirstChild("Humanoid")
| |
| 1784 | if hum ~= nil then | |
| 1785 | local head = c:findFirstChild("Torso")
| |
| 1786 | if head ~= nil then | |
| 1787 | local targ = head.Position - Part.Position | |
| 1788 | local mag = targ.magnitude | |
| 1789 | if mag <= magni and c.Name ~= Player.Name then | |
| 1790 | Damage(head.Parent, math.random(mindam, maxdam), 0.5, Color1, Color2, HSound, HPitch) | |
| 1791 | end | |
| 1792 | end | |
| 1793 | end | |
| 1794 | end | |
| 1795 | end | |
| 1796 | ||
| 1797 | Handle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "Handle", Vector3.new(3.20000005, 0.320000023, 0.200000003)) | |
| 1798 | HandleWeld = CreateWeld(m, Character["Torso"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.57640076, -0.105987549, -0.672006607, 0.866025388, 0.500000119, -8.94076351e-008, -0.500000119, 0.866025388, 1.49014454e-007, 1.51936518e-007, -8.43464605e-008, 1)) | |
| 1799 | CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
| |
| 1800 | FakeHandle = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "FakeHandle", Vector3.new(1.92000008, 0.320000023, 0.200000003)) | |
| 1801 | FakeHandleWeld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1)) | |
| 1802 | BladeHitbox = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladeHitbox", Vector3.new(6.87999964, 1.28000009, 0.320000023)) | |
| 1803 | BladeHitboxWeld = CreateWeld(m, FakeHandle, BladeHitbox, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.83992767, 7.62939453e-006, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1)) | |
| 1804 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(6.71999979, 0.640000045, 0.200000003)) | |
| 1805 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.75999451, 0.320018768, -9.53674316e-007, -1.00000012, 0, -6.70215812e-008, 0, -1.00000012, 3.87433118e-007, -6.70215812e-008, 3.87433118e-007, 1)) | |
| 1806 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0104, 0.0104, 0.00800000038))
| |
| 1807 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(4.96000051, 0.320000023, 0.480000019)) | |
| 1808 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.35999298, 0.176017761, -9.53674316e-007, -1.00000012, 0, -8.74827464e-008, 0, -1.00000012, 4.61938924e-007, -8.74827464e-008, 4.61938953e-007, 1)) | |
| 1809 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00879999995, 0.00560000027, 0.0160000008))
| |
| 1810 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(6.71999979, 0.320000023, 0.200000003)) | |
| 1811 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.75999451, 0.159992218, 9.53674316e-007, -1, 1.49011612e-007, -9.26303798e-008, 1.49011612e-007, 1, -4.17235356e-007, 9.26303159e-008, -4.17235412e-007, -1)) | |
| 1812 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00960000046, 0.00520000001, 0.00960000046))
| |
| 1813 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(6.71999979, 0.320000023, 0.200000003)) | |
| 1814 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.75999451, 0.160015106, 0, -1.00000012, 0, -8.7701622e-008, 0, -1.00000012, 3.87433118e-007, -8.7701622e-008, 3.87433118e-007, 1)) | |
| 1815 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00960000046, 0.00520000001, 0.00960000046))
| |
| 1816 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(4.32000065, 0.200000003, 0.480000019)) | |
| 1817 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.5599823, 0.0879821777, 0, -1.00000012, 0, -8.89660754e-008, 0, 1.00000012, -5.36444873e-007, 8.89660896e-008, -5.36444816e-007, -1)) | |
| 1818 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0064000003, 0.00320000015, 0.0200000014))
| |
| 1819 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "BladePrt", Vector3.new(4.96000004, 0.320000023, 0.480000019)) | |
| 1820 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.36000061, 0.167987823, 9.53674316e-007, -1, 1.49011612e-007, -9.26303798e-008, 1.49011612e-007, 1, -4.17235356e-007, 9.26303159e-008, -4.17235412e-007, -1)) | |
| 1821 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.00879999995, 0.00560000027, 0.0160000008))
| |
| 1822 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(6.71999979, 0.640000045, 0.200000003)) | |
| 1823 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.76000214, 0.319988251, -9.53674316e-007, -1.00000012, 2.68220901e-007, -1.42108547e-014, 2.68220901e-007, 1.00000012, -2.9802888e-007, -6.59472477e-014, -2.9802888e-007, -1)) | |
| 1824 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0104, 0.0104, 0.00800000038))
| |
| 1825 | BladePrt = CreatePart(m, Enum.Material.SmoothPlastic, 0, 1, "Really black", "BladePrt", Vector3.new(4.32000065, 0.200000003, 0.480000019)) | |
| 1826 | BladePrtWeld = CreateWeld(m, FakeHandle, BladePrt, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.5599823, 0.112014771, -9.53674316e-007, -1.00000012, 0, -8.74827464e-008, 0, -1.00000012, 4.61938924e-007, -8.74827464e-008, 4.61938953e-007, 1)) | |
| 1827 | CreateMesh("SpecialMesh", BladePrt, Enum.MeshType.FileMesh, "rbxassetid://433431848", Vector3.new(0, 0, 0), Vector3.new(0.0064000003, 0.00320000015, 0.0200000014))
| |
| 1828 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 1829 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.59932709, 0.159358978, 1.23977661e-005, 1.00000012, 0, 0, 0, -1.00000012, 0, 0, 0, -1)) | |
| 1830 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.800000072, 0.800000072))
| |
| 1831 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003)) | |
| 1832 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.59998322, 0.0799942017, -9.53674316e-007, -1, 1.49011612e-007, -9.10118445e-007, 1.49011612e-007, 1, -5.66248389e-007, 9.10118445e-007, -5.66248559e-007, -1)) | |
| 1833 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 1834 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 1835 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.59931946, -0.160633087, 1.23977661e-005, 1.00000012, 0, 0, 0, -1.00000012, 0, 0, 0, -1)) | |
| 1836 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.800000072, 0.800000072))
| |
| 1837 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(3.20000005, 0.200000003, 0.200000003)) | |
| 1838 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-7.62939453e-006, 0.079990387, 0, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1)) | |
| 1839 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 1840 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.960000038, 0.320000023)) | |
| 1841 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.83992767, 1.14440918e-005, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1)) | |
| 1842 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 1))
| |
| 1843 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 3.20000005, 0.200000003)) | |
| 1844 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.160007477, 7.62939453e-006, 0, 0, -1.00000012, 0, -1.00000012, 0, 1.42108547e-014, -1.42108547e-014, 7.10542736e-015, -1)) | |
| 1845 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
| |
| 1846 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(3.20000005, 0.200000003, 0.200000003)) | |
| 1847 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.0800018311, 0, 1.00000012, 0, 0, 0, 1.00000012, 0, 0, 0, 1)) | |
| 1848 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 1849 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003)) | |
| 1850 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.320007324, 1.6799469, -1.90734863e-006, -5.66244125e-007, -1, 5.23353265e-007, 1, -5.66244125e-007, 7.59964848e-007, -7.59964678e-007, 5.23353719e-007, 1)) | |
| 1851 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 1852 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003)) | |
| 1853 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.59998322, -0.0799980164, -9.53674316e-007, -1, 1.49011612e-007, -9.10118445e-007, 1.49011612e-007, 1, -5.66248389e-007, 9.10118445e-007, -5.66248559e-007, -1)) | |
| 1854 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 1855 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.200000003)) | |
| 1856 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.319988251, 1.67993927, -1.90734863e-006, -5.66244125e-007, -1, 5.23353265e-007, 1, -5.66244125e-007, 7.59964848e-007, -7.59964678e-007, 5.23353719e-007, 1)) | |
| 1857 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 1858 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 3.20000005, 0.200000003)) | |
| 1859 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.159992218, 1.52587891e-005, 0, 0, -1.00000012, 0, -1.00000012, 0, 1.42108547e-014, -1.42108547e-014, 7.10542736e-015, -1)) | |
| 1860 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
| |
| 1861 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.320000023, 0.320000023)) | |
| 1862 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.480003357, -2.07992554, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1)) | |
| 1863 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1864 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023)) | |
| 1865 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.480003357, -1.8399353, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1)) | |
| 1866 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
| |
| 1867 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.320000023, 0.320000023)) | |
| 1868 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.479980469, -2.07992554, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1)) | |
| 1869 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1870 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.320000023, 0.960000038, 0.320000023)) | |
| 1871 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.07992554, 1.52587891e-005, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1)) | |
| 1872 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023)) | |
| 1873 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.480003357, -2.3199234, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1)) | |
| 1874 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
| |
| 1875 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.960000038, 0.320000023)) | |
| 1876 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.31991577, 1.14440918e-005, 0.00178432465, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1)) | |
| 1877 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 1))
| |
| 1878 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023)) | |
| 1879 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.479984283, -1.8399353, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1)) | |
| 1880 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
| |
| 1881 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.320000023, 0.200000003, 0.320000023)) | |
| 1882 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.479980469, -2.3199234, 0.00178527832, 3.87430191e-007, -1, 8.24703648e-007, -1, -3.87430191e-007, -7.15261194e-007, 7.15261535e-007, -8.2470342e-007, -1)) | |
| 1883 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1))
| |
| 1884 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.640000045, 0.200000003)) | |
| 1885 | PartWeld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.67993164, 7.62939453e-006, 0, 1.00000012, 0, 1.78815313e-007, 0, -1.00000012, 2.0861782e-007, 1.78815299e-007, -2.0861782e-007, -1)) | |
| 1886 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 0.800000072))
| |
| 1887 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.351999998, 0.200000003, 0.200000003)) | |
| 1888 | WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, 1.41417694, 1.52728844, -8.94076351e-008, 1.49014454e-007, 1, 0.707107067, -0.70710665, 1.68589878e-007, 0.70710665, 0.707107067, -4.21484252e-008)) | |
| 1889 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 1890 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.351999998, 0.200000003, 0.200000003)) | |
| 1891 | WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -1.52731323, -1.41415596, -8.94076351e-008, 1.49014454e-007, 1, -0.707106829, 0.707106829, -1.68589878e-007, -0.707106829, -0.707106829, 4.2148379e-008)) | |
| 1892 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 1893 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003)) | |
| 1894 | WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -2.15991974, 0.0800132751, -8.94076351e-008, 1.49014454e-007, 1, -1.00000012, 0, -8.94076351e-008, 0, -1.00000012, 1.49014454e-007)) | |
| 1895 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 1896 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003)) | |
| 1897 | WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -0.0800132751, -1.99993896, -8.94076351e-008, 1.49014454e-007, 1, 0, 1.00000012, -1.49014454e-007, -1.00000012, 0, -8.94076351e-008)) | |
| 1898 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 1899 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003)) | |
| 1900 | WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, -0.079990387, 2.15991974, -8.94076351e-008, 1.49014454e-007, 1, -1.49011612e-007, -1, 1.49014426e-007, 1, -1.49011612e-007, 8.94076493e-008)) | |
| 1901 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 1902 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(0.336000025, 0.200000003, 0.200000003)) | |
| 1903 | WedgeWeld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178337097, 1.99992371, 0.0799865723, -8.94076351e-008, 1.49014454e-007, 1, 1, -1.49011612e-007, 8.94076493e-008, 1.49011612e-007, 1, -1.49014426e-007)) | |
| 1904 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072))
| |
| 1905 | CreateMesh("BlockMesh", FakeHandle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072))
| |
| 1906 | HandleL = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HandleL", Vector3.new(1, 2, 1.01999998)) | |
| 1907 | HandleLWeld = CreateWeld(m, Character["Left Arm"], HandleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00849914551, 0.00999999046, 6.77108765e-005, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 1908 | EffectPrt1 = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.30000001192093, "Really black", "EffectPrt1", Vector3.new(0.600000024, 0.600000024, 0.400000036)) | |
| 1909 | EffectPrt1Weld = CreateWeld(m, HandleL, EffectPrt1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00999355316, -0.499996185, -0.509780884, 0, 0, 1, 0, 1, 0, -1, 0, 0)) | |
| 1910 | CreateMesh("SpecialMesh", EffectPrt1, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1911 | EffectPrt2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.30000001192093, 0, "Mid gray", "EffectPrt2", Vector3.new(0.600000024, 0.600000024, 0.400000036)) | |
| 1912 | EffectPrt2Weld = CreateWeld(m, HandleL, EffectPrt2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0100440979, 0.499996185, 0.509773254, 4.06801701e-005, 8.90720813e-008, 1, 2.13165718e-014, -1, 8.90720813e-008, 1, -3.60215091e-012, -4.06801701e-005)) | |
| 1913 | CreateMesh("SpecialMesh", EffectPrt2, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.379999906, 0.399999678, 2.21999955))
| |
| 1914 | HitboxL = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HitboxL", Vector3.new(1.20000005, 1.39999998, 1.01999998)) | |
| 1915 | HitboxLWeld = CreateWeld(m, HandleL, HitboxL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0999908447, 0.699999809, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 1916 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003)) | |
| 1917 | PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.12071991, 0.312129974, -0.409996033, 0.965925872, 0.258819103, 0, -0.258819103, 0.965925872, 0, 0, 0, 1)) | |
| 1918 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.200000003, 1.01999998)) | |
| 1919 | PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.354278564, 0.31212616, 0, 0.965925872, 0.258819103, 0, -0.258819103, 0.965925872, 0, 0, 0, 1)) | |
| 1920 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.600000024, 0.200000003, 1.01999998)) | |
| 1921 | PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.200004578, 0.899998903, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
| 1922 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003)) | |
| 1923 | PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.12071991, 0.312129974, 0.410003662, 0.965925872, 0.258819103, 0, -0.258819103, 0.965925872, 0, 0, 0, 1)) | |
| 1924 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 1.20000005, 1.00999999)) | |
| 1925 | PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.409751892, -0.412899256, 0.00154209137, -1, -5.71118512e-008, 0, -5.71118512e-008, 1, 1.6609139e-008, -9.48578645e-016, 1.6609139e-008, -1)) | |
| 1926 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0.19999998807907, "Really black", "Part", Vector3.new(0.400000036, 0.400000036, 0.400000006)) | |
| 1927 | PartWeld = CreateWeld(m, HandleL, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0105276108, -0.491856098, -0.509765625, 0, 0, 1, 0, 1, 0, -1, 0, 0)) | |
| 1928 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1929 | ThunderHoleL = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "ThunderHoleL", Vector3.new(0.200000003, 1.05000007, 0.200000003)) | |
| 1930 | ThunderHoleLWeld = CreateWeld(m, HandleL, ThunderHoleL, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.699999809, -0.000227928162, 0.228645325, 0, -1, 0, 0, 0, -1, 1, -0, 0)) | |
| 1931 | CreateMesh("CylinderMesh", ThunderHoleL, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1932 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 1933 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.21999836, 0.600001812, 0.62865448, 0, 0, -1, 0, 1, 0, 1, 0, 0)) | |
| 1934 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1935 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
| 1936 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.232361794, 0.0286483765, 1.10000181, -5.96046448e-008, 1.07931243e-007, 1, 1, 5.49689858e-008, 5.96046412e-008, -5.49689787e-008, 1, -1.07931243e-007)) | |
| 1937 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1938 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
| 1939 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.21999836, -0.528648376, 1.10000181, 0, 0, -1, -1, -5.96046377e-008, 0, -5.96046377e-008, 1, 0)) | |
| 1940 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1941 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
| 1942 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.21999836, 0.0286483765, 1.10000181, -5.96046448e-008, 1.07931243e-007, 1, 1, 5.49689858e-008, 5.96046412e-008, -5.49689787e-008, 1, -1.07931243e-007)) | |
| 1943 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1944 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.01999998, 1.80999994, 0.619999945)) | |
| 1945 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.104995966, -0.199783325, 0, 0, 1, 0, 1, 0, -1, 0, 0)) | |
| 1946 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1947 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.03999996, 1.00999999, 1.01999998)) | |
| 1948 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.494999886, -0.018661499, 0, 0, 1, 0, 1, 0, -1, 0, 0)) | |
| 1949 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1950 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 1951 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232361794, 0.600001812, 0.62865448, 0, 0, -1, 0, 1, 0, 1, 0, 0)) | |
| 1952 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1953 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
| 1954 | WedgeWeld = CreateWeld(m, HandleL, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232361794, -0.528648376, 1.10000181, 0, 0, -1, -1, -5.96046377e-008, 0, -5.96046377e-008, 1, 0)) | |
| 1955 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1956 | HandleR = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HandleR", Vector3.new(1, 2, 1.01999998)) | |
| 1957 | HandleRWeld = CreateWeld(m, Character["Right Arm"], HandleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00468444824, 0.0100209713, -0.00353145599, -1, -5.71118512e-008, 0, -5.71118512e-008, 1, 1.6609139e-008, -9.48578645e-016, 1.6609139e-008, -1)) | |
| 1958 | Barrel1 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Barrel1", Vector3.new(0.600000024, 1.20000005, 0.400000036)) | |
| 1959 | Barrel1Weld = CreateWeld(m, HandleR, Barrel1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.299865723, 0.599565029, 0.718658447, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007)) | |
| 1960 | CreateMesh("SpecialMesh", Barrel1, Enum.MeshType.FileMesh, "rbxassetid://433397018", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
| |
| 1961 | Barrel2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Barrel2", Vector3.new(0.600000024, 1.20000005, 0.400000036)) | |
| 1962 | Barrel2Weld = CreateWeld(m, HandleR, Barrel2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.300126076, 0.599565029, 0.718658447, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007)) | |
| 1963 | CreateMesh("SpecialMesh", Barrel2, Enum.MeshType.FileMesh, "rbxassetid://433397018", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
| |
| 1964 | Choke1 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Choke1", Vector3.new(0.600000024, 0.400000006, 0.400000036)) | |
| 1965 | Choke1Weld = CreateWeld(m, HandleR, Choke1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.297118187, 1.39956522, 0.718673706, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007)) | |
| 1966 | CreateMesh("SpecialMesh", Choke1, Enum.MeshType.FileMesh, "rbxassetid://433397231", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
| |
| 1967 | Choke2 = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "Choke2", Vector3.new(0.600000024, 0.400000006, 0.400000036)) | |
| 1968 | Choke2Weld = CreateWeld(m, HandleR, Choke2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.303283691, 1.3995651, 0.718673706, -1.49011612e-007, -6.73397207e-015, -1, 0, 1, -7.10542736e-015, 1, 0, -1.49011612e-007)) | |
| 1969 | CreateMesh("SpecialMesh", Choke2, Enum.MeshType.FileMesh, "rbxassetid://433397231", Vector3.new(0, 0, 0), Vector3.new(0.00999999978, 0.00999999978, 0.00999999978))
| |
| 1970 | HitboxR = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 1, "Mid gray", "HitboxR", Vector3.new(1.20000005, 0.99999994, 1.01999998)) | |
| 1971 | HitboxRWeld = CreateWeld(m, HandleR, HitboxR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.100006104, 0.700003862, 0, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1)) | |
| 1972 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003)) | |
| 1973 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.120735168, 0.312120438, 0.40998745, 0.965925872, 0.258819222, -5.53058896e-008, -0.258819222, 0.965925872, 3.094436e-008, 6.14303701e-008, -1.55757274e-008, 1)) | |
| 1974 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.400000006, 0.819999993, 1.01999998)) | |
| 1975 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.718658447, -0.4104321, -1.43051147e-005, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1)) | |
| 1976 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.600000024, 0.200000003, 1.01999998)) | |
| 1977 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.199996948, 0.900001049, 0, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1)) | |
| 1978 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.409999996, 2.01999998, 1.01999998)) | |
| 1979 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.313659668, -0.00999617577, 0, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1)) | |
| 1980 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.75, 0.200000003, 0.200000003)) | |
| 1981 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.120735168, 0.312120438, -0.410010338, 0.965925872, 0.258819222, -5.53058896e-008, -0.258819222, 0.965925872, 3.094436e-008, 6.14303701e-008, -1.55757274e-008, 1)) | |
| 1982 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.409999967, 0.200000003, 1.01999998)) | |
| 1983 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0863342285, -0.919991493, -3.05175781e-005, 1, 0, 0, 0, 1, 5.41750795e-023, 0, 5.41750795e-023, 1)) | |
| 1984 | Part = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Part", Vector3.new(0.200000003, 0.200000003, 1.01999998)) | |
| 1985 | PartWeld = CreateWeld(m, HandleR, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.354248047, 0.312124252, -1.43051147e-005, 0.965925872, 0.258819222, -5.53058896e-008, -0.258819222, 0.965925872, 3.094436e-008, 6.14303701e-008, -1.55757274e-008, 1)) | |
| 1986 | ThunderHoleR = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "ThunderHoleR", Vector3.new(0.200000003, 1.05000007, 0.200000003)) | |
| 1987 | ThunderHoleRWeld = CreateWeld(m, HandleR, ThunderHoleR, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.700005054, -0.000213623047, 0.228675842, -1.0658141e-014, -1, -1.0658141e-014, 9.48578222e-016, 1.0658141e-014, -1, 1, -1.0658141e-014, 9.48578116e-016)) | |
| 1988 | CreateMesh("CylinderMesh", ThunderHoleR, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1989 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 1990 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232376099, 0.600004911, 0.628646851, 9.48580657e-016, -3.19744231e-014, -1, 0, 1, -3.19744231e-014, 1, 0, 9.48580551e-016)) | |
| 1991 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1992 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
| 1993 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.219985962, 0.0286712646, 1.10000277, -3.12924385e-007, 1.07931264e-007, 1, 1, 5.49689787e-008, 3.12924385e-007, -5.49689467e-008, 1, -1.07931285e-007)) | |
| 1994 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1995 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
| 1996 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.232376099, -0.528656006, 1.100003, 9.48580657e-016, -3.19744231e-014, -1, -1, -5.9604659e-008, -9.48578539e-016, -5.9604659e-008, 1, -3.19744231e-014)) | |
| 1997 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 1998 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.400000006)) | |
| 1999 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.43051147e-005, -0.920844555, 0.718658447, 9.48580657e-016, -3.19744231e-014, -1, 0, 1, -3.19744231e-014, 1, 0, 9.48580551e-016)) | |
| 2000 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 2001 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.03999996, 1.00999999, 1.01999998)) | |
| 2002 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.495002031, -0.0186691284, -9.48580657e-016, 3.19744231e-014, 1, 0, 1, -3.19744231e-014, -1, 0, -9.48580551e-016)) | |
| 2003 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 2004 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.600000024, 0.200000003)) | |
| 2005 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.232390404, 0.0286712646, 1.100003, -3.12924385e-007, 1.07931264e-007, 1, 1, 5.49689787e-008, 3.12924385e-007, -5.49689467e-008, 1, -1.07931285e-007)) | |
| 2006 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 2007 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
| 2008 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.219985962, -0.528671265, 1.100003, 9.48580657e-016, -3.19744231e-014, -1, -1, -5.9604659e-008, -9.48578539e-016, -5.9604659e-008, 1, -3.19744231e-014)) | |
| 2009 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 2010 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.01999998, 0.200000003, 0.400000006)) | |
| 2011 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.43051147e-005, -0.100847006, 0.718658447, 2.45555211e-015, -5.96046306e-008, 1, -1.42108547e-014, -1, -5.96046306e-008, 1, -1.42108547e-014, -2.45555296e-015)) | |
| 2012 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 2013 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.800000012, 0.200000003)) | |
| 2014 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.220002174, 0.600004911, 0.628662109, 9.48580657e-016, -3.19744231e-014, -1, 0, 1, -3.19744231e-014, 1, 0, 9.48580551e-016)) | |
| 2015 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 2016 | Wedge = CreatePart(m, Enum.Material.SmoothPlastic, 0.20000000298023, 0, "Mid gray", "Wedge", Vector3.new(1.00999999, 0.410000026, 0.410000026)) | |
| 2017 | WedgeWeld = CreateWeld(m, HandleR, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00409030914, 0.623651981, 0.0869140625, 7.5121838e-016, 3.45568019e-009, -1, -5.9604659e-008, -1, -3.45568019e-009, -1, 5.9604659e-008, -5.45243684e-016)) | |
| 2018 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 2019 | ||
| 2020 | --[[ Credits to Fenrier for the Effect Functions. ]]-- | |
| 2021 | ||
| 2022 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 2023 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 2024 | prt.Anchored = true | |
| 2025 | prt.CFrame = cframe | |
| 2026 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 2027 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 2028 | if Type == 1 or Type == nil then | |
| 2029 | table.insert(Effects, {
| |
| 2030 | prt, | |
| 2031 | "Block1", | |
| 2032 | delay, | |
| 2033 | x3, | |
| 2034 | y3, | |
| 2035 | z3, | |
| 2036 | msh | |
| 2037 | }) | |
| 2038 | elseif Type == 2 then | |
| 2039 | table.insert(Effects, {
| |
| 2040 | prt, | |
| 2041 | "Block2", | |
| 2042 | delay, | |
| 2043 | x3, | |
| 2044 | y3, | |
| 2045 | z3, | |
| 2046 | msh | |
| 2047 | }) | |
| 2048 | end | |
| 2049 | end | |
| 2050 | ||
| 2051 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 2052 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 2053 | prt.Anchored = true | |
| 2054 | prt.CFrame = cframe | |
| 2055 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 2056 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 2057 | table.insert(Effects, {
| |
| 2058 | prt, | |
| 2059 | "Cylinder", | |
| 2060 | delay, | |
| 2061 | x3, | |
| 2062 | y3, | |
| 2063 | z3, | |
| 2064 | msh | |
| 2065 | }) | |
| 2066 | end | |
| 2067 | ||
| 2068 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 2069 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 2070 | prt.Anchored = true | |
| 2071 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
| 2072 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 2073 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 2074 | table.insert(Effects, {
| |
| 2075 | prt, | |
| 2076 | "Cylinder", | |
| 2077 | delay, | |
| 2078 | x3, | |
| 2079 | y3, | |
| 2080 | z3, | |
| 2081 | msh | |
| 2082 | }) | |
| 2083 | end | |
| 2084 | ||
| 2085 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 2086 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 2087 | prt.Anchored = true | |
| 2088 | prt.CFrame = cframe | |
| 2089 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 2090 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 2091 | table.insert(Effects, {
| |
| 2092 | prt, | |
| 2093 | "Cylinder", | |
| 2094 | delay, | |
| 2095 | x3, | |
| 2096 | y3, | |
| 2097 | z3, | |
| 2098 | msh | |
| 2099 | }) | |
| 2100 | end | |
| 2101 | ||
| 2102 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 2103 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 2104 | prt.Anchored = true | |
| 2105 | prt.CFrame = cframe | |
| 2106 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 2107 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 2108 | table.insert(Effects, {
| |
| 2109 | prt, | |
| 2110 | "Cylinder", | |
| 2111 | delay, | |
| 2112 | x3, | |
| 2113 | y3, | |
| 2114 | z3, | |
| 2115 | msh | |
| 2116 | }) | |
| 2117 | end | |
| 2118 | ||
| 2119 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 2120 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 2121 | prt.Anchored = true | |
| 2122 | prt.CFrame = cframe | |
| 2123 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 2124 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 2125 | table.insert(Effects, {
| |
| 2126 | prt, | |
| 2127 | "Cylinder", | |
| 2128 | delay, | |
| 2129 | x3, | |
| 2130 | y3, | |
| 2131 | z3, | |
| 2132 | msh | |
| 2133 | }) | |
| 2134 | end | |
| 2135 | ||
| 2136 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
| 2137 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 2138 | prt.Anchored = true | |
| 2139 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 2140 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 2141 | local num = math.random(10, 50) / 1000 | |
| 2142 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 2143 | table.insert(Effects, {
| |
| 2144 | prt, | |
| 2145 | "Shatter", | |
| 2146 | num, | |
| 2147 | prt.CFrame, | |
| 2148 | math.random() - math.random(), | |
| 2149 | 0, | |
| 2150 | math.random(50, 100) / 100 | |
| 2151 | }) | |
| 2152 | end | |
| 2153 | ||
| 2154 | --[[ Attack Functions ]]-- | |
| 2155 | ||
| 2156 | local Mode = "Normal" | |
| 2157 | ||
| 2158 | RSH = Torso["Right Shoulder"] | |
| 2159 | LSH = Torso["Left Shoulder"] | |
| 2160 | RH = Torso["Right Hip"] | |
| 2161 | LH = Torso["Left Hip"] | |
| 2162 | Animate = Character.Animate | |
| 2163 | Animator = Humanoid.Animator | |
| 2164 | ||
| 2165 | function Equip() | |
| 2166 | attack = true | |
| 2167 | equipped = true | |
| 2168 | RSH.Parent = nil | |
| 2169 | LSH.Parent = nil | |
| 2170 | Animator.Parent = nil | |
| 2171 | Animate.Disabled = true | |
| 2172 | change = 3 | |
| 2173 | RW = Create("Weld"){
| |
| 2174 | Name = "Right Shoulder", | |
| 2175 | Part0 = Torso , | |
| 2176 | C0 = CFrame.new(1.5, 0.5, 0), | |
| 2177 | C1 = CFrame.new(0, 0.5, 0), | |
| 2178 | Part1 = RightArm , | |
| 2179 | Parent = Torso , | |
| 2180 | } | |
| 2181 | LW = Create("Weld"){
| |
| 2182 | Name = "Left Shoulder", | |
| 2183 | Part0 = Torso , | |
| 2184 | C0 = CFrame.new(-1.5, 0.5, 0), | |
| 2185 | C1 = CFrame.new(0, 0.5, 0) , | |
| 2186 | Part1 = LeftArm , | |
| 2187 | Parent = Torso , | |
| 2188 | } | |
| 2189 | CreateSound("http://roblox.com/asset/?id=346134880", Torso, 1, 1)
| |
| 2190 | for i = 0, 1, 0.1 do | |
| 2191 | swait() | |
| 2192 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2) | |
| 2193 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 2194 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(0), math.rad(170), math.rad(90)), .25) | |
| 2195 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.7) * angles(math.rad(0), math.rad(-170), math.rad(-110)), .25) | |
| 2196 | if Torsovelocity < 1 then | |
| 2197 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2) | |
| 2198 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2) | |
| 2199 | elseif Torsovelocity > 2 then | |
| 2200 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2201 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2202 | end | |
| 2203 | end | |
| 2204 | CreateSound("http://roblox.com/asset/?id=346134880", Torso, 1, .9)
| |
| 2205 | for i = 0, 1, 0.1 do | |
| 2206 | swait() | |
| 2207 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2) | |
| 2208 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 2209 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.5) * angles(math.rad(0), math.rad(170), math.rad(95)), .34) | |
| 2210 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.7) * angles(math.rad(0), math.rad(-170), math.rad(-120)), .34) | |
| 2211 | if Torsovelocity < 1 then | |
| 2212 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2) | |
| 2213 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2) | |
| 2214 | elseif Torsovelocity > 2 then | |
| 2215 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2216 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2217 | end | |
| 2218 | end | |
| 2219 | for i = 0, 1, 0.1 do | |
| 2220 | swait() | |
| 2221 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2) | |
| 2222 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 2223 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, -.7) * angles(math.rad(0), math.rad(170), math.rad(110)), .25) | |
| 2224 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.5) * angles(math.rad(0), math.rad(-170), math.rad(-90)), .25) | |
| 2225 | if Torsovelocity < 1 then | |
| 2226 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2) | |
| 2227 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2) | |
| 2228 | elseif Torsovelocity > 2 then | |
| 2229 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2230 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2231 | end | |
| 2232 | end | |
| 2233 | for i = 0, 1, 0.1 do | |
| 2234 | swait() | |
| 2235 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2) | |
| 2236 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 2237 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.7) * angles(math.rad(0), math.rad(170), math.rad(120)), .34) | |
| 2238 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3, -.7) * angles(math.rad(0), math.rad(-180), math.rad(-95)), .34) | |
| 2239 | if Torsovelocity < 1 then | |
| 2240 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(5)), .2) | |
| 2241 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(-5)), .2) | |
| 2242 | elseif Torsovelocity > 2 then | |
| 2243 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2244 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2245 | end | |
| 2246 | end | |
| 2247 | attack = false | |
| 2248 | end | |
| 2249 | ||
| 2250 | function Unequip() | |
| 2251 | attack = true | |
| 2252 | for i = 0, 1, 0.1 do | |
| 2253 | swait() | |
| 2254 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 2255 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 2256 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 2257 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 2258 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 2259 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .2) | |
| 2260 | end | |
| 2261 | equipped = false | |
| 2262 | RW.Parent = nil | |
| 2263 | LW.Parent = nil | |
| 2264 | RSH.Parent = Torso | |
| 2265 | LSH.Parent = Torso | |
| 2266 | Torso.Neck.C0 = NeckCF | |
| 2267 | RootJoint.C0 = RootCF | |
| 2268 | Animator.Parent = Humanoid | |
| 2269 | Animate.Disabled = false | |
| 2270 | RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 2271 | RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 2272 | LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 2273 | LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 2274 | attack = false | |
| 2275 | end | |
| 2276 | ||
| 2277 | function attackone() | |
| 2278 | attack = true | |
| 2279 | local Con1 = HitboxL.Touched:connect(function(hit) | |
| 2280 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 2281 | end) | |
| 2282 | for i = 0, 1, 0.13 do | |
| 2283 | swait() | |
| 2284 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(0), math.rad(0), math.rad(70)), .3) | |
| 2285 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-70)), .3) | |
| 2286 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, -.3) * angles(math.rad(180), math.rad(-20), math.rad(10)), .3) | |
| 2287 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.4, -.7) * angles(math.rad(0), math.rad(-150), math.rad(-90)), .3) | |
| 2288 | RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-4), math.rad(-40), math.rad(0)), .3) | |
| 2289 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-4), math.rad(-40), math.rad(30)), .3) | |
| 2290 | end | |
| 2291 | CreateSound("http://www.roblox.com/asset/?id=200632136", HitboxL, 1, 1)
| |
| 2292 | for i = 0, 1, 0.12 do | |
| 2293 | swait() | |
| 2294 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(20), math.rad(0), math.rad(-80)), .54) | |
| 2295 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(-10), math.rad(80)), .54) | |
| 2296 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, .3) * angles(math.rad(50), math.rad(20), math.rad(0)), .54) | |
| 2297 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, -.3) * angles(math.rad(0), math.rad(-20), math.rad(-110)), .54) | |
| 2298 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-4), math.rad(40), math.rad(-10)), .54) | |
| 2299 | LH.C0 = clerp(LH.C0, cn(-1, -.7, 0) * LHCF * angles(math.rad(-4), math.rad(40), math.rad(-20)), .54) | |
| 2300 | end | |
| 2301 | Con1:disconnect() | |
| 2302 | attack = false | |
| 2303 | end | |
| 2304 | ||
| 2305 | function attacktwo() | |
| 2306 | attack = true | |
| 2307 | local Con1 = HitboxR.Touched:connect(function(hit) | |
| 2308 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 2309 | end) | |
| 2310 | for i = 0, 1, 0.13 do | |
| 2311 | swait() | |
| 2312 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.4) * angles(math.rad(0), math.rad(0), math.rad(-80)), .3) | |
| 2313 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(80)), .3) | |
| 2314 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(-90), math.rad(0)), .3) | |
| 2315 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * angles(math.rad(120), math.rad(0), math.rad(10)), .3) | |
| 2316 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-40)), .3) | |
| 2317 | LH.C0 = clerp(LH.C0, cn(-1, -.7, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 2318 | end | |
| 2319 | CreateSound("http://www.roblox.com/asset/?id=200632136", HitboxR, 1, 1.1)
| |
| 2320 | for i = 0, 1, 0.12 do | |
| 2321 | swait() | |
| 2322 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0) * angles(math.rad(0), math.rad(0), math.rad(80)), .55) | |
| 2323 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-80)), .55) | |
| 2324 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6, -.3) * angles(math.rad(180), math.rad(-20), math.rad(10)), .55) | |
| 2325 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), .55) | |
| 2326 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .55) | |
| 2327 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .55) | |
| 2328 | end | |
| 2329 | Con1:disconnect() | |
| 2330 | attack = false | |
| 2331 | end | |
| 2332 | ||
| 2333 | function attackthree() | |
| 2334 | attack = true | |
| 2335 | local Con1 = HitboxL.Touched:connect(function(hit) | |
| 2336 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 2337 | end) | |
| 2338 | local Con2 = HitboxR.Touched:connect(function(hit) | |
| 2339 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 2340 | end) | |
| 2341 | for i = 0, 1, 0.13 do | |
| 2342 | swait() | |
| 2343 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), .3) | |
| 2344 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .3) | |
| 2345 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(90), math.rad(50), math.rad(0)), .3) | |
| 2346 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.5) * angles(math.rad(90), math.rad(-50), math.rad(0)), .3) | |
| 2347 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3) | |
| 2348 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(20)), .3) | |
| 2349 | end | |
| 2350 | CreateSound("http://www.roblox.com/asset/?id=200632136", Torso, 1, .8)
| |
| 2351 | Torso.Velocity = RootPart.CFrame.lookVector * 120 | |
| 2352 | for i = 0, 1, 0.13 do | |
| 2353 | swait() | |
| 2354 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(0)), .55) | |
| 2355 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .55) | |
| 2356 | RW.C0 = clerp(RW.C0, CFrame.new(.8, 0.5, -.8) * angles(math.rad(120), math.rad(60), math.rad(0)), .55) | |
| 2357 | LW.C0 = clerp(LW.C0, CFrame.new(-.8, 0.5, -.8) * angles(math.rad(120), math.rad(-60), math.rad(0)), .55) | |
| 2358 | RH.C0 = clerp(RH.C0, cn(1, -.6, -.2) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3) | |
| 2359 | LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .3) | |
| 2360 | end | |
| 2361 | Con1:disconnect() | |
| 2362 | Con2:disconnect() | |
| 2363 | attack = false | |
| 2364 | end | |
| 2365 | ||
| 2366 | function attackfour() | |
| 2367 | attack = true | |
| 2368 | Torso.Velocity = Vector3.new(0, 100, 0) | |
| 2369 | Humanoid.Jump = true | |
| 2370 | CreateSound("http://roblox.com/asset/?id=199145327", Torso, 1, .8)
| |
| 2371 | for i = 0, 1, 0.12 do | |
| 2372 | swait() | |
| 2373 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(6 * i, math.rad(0), math.rad(0)), .3) | |
| 2374 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2375 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-40)), .3) | |
| 2376 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(40)), .3) | |
| 2377 | RH.C0 = clerp(RH.C0, cn(1, -.2, -.5) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
| 2378 | LH.C0 = clerp(LH.C0, cn(-1, -.1, -.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .3) | |
| 2379 | end | |
| 2380 | for i = 0, 1, 0.12 do | |
| 2381 | swait() | |
| 2382 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10 * i), math.rad(0), math.rad(0)), .5) | |
| 2383 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .5) | |
| 2384 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(60)), .5) | |
| 2385 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-60)), .5) | |
| 2386 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(40)), .5) | |
| 2387 | LH.C0 = clerp(LH.C0, cn(-1, 0, -.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(20)), .5) | |
| 2388 | end | |
| 2389 | local hitfloor = nil | |
| 2390 | while hitfloor == nil do | |
| 2391 | swait() | |
| 2392 | hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 3, Character) | |
| 2393 | end | |
| 2394 | MagnitudeDamage(RootPart, 30, 20, 35, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 2395 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 6, Character) | |
| 2396 | if hit ~= nil then | |
| 2397 | local Color = hit.BrickColor | |
| 2398 | local refpart = CreatePart(workspace, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new()) | |
| 2399 | refpart.Anchored = true | |
| 2400 | refpart.CFrame = CFrame.new(pos) | |
| 2401 | game:GetService("Debris"):AddItem(refpart, 1)
| |
| 2402 | CreateSound("http://www.roblox.com/asset/?id=199145477", refpart, .8, 1)
| |
| 2403 | for i = 1, 5 do | |
| 2404 | local Color = hit.BrickColor | |
| 2405 | local Materials = hit.Material | |
| 2406 | local groundpart = CreatePart(workspace, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(50, 100) / 100, math.random(50, 100) / 100, math.random(50, 100) / 100)) | |
| 2407 | groundpart.Anchored = false | |
| 2408 | groundpart.Material = Materials | |
| 2409 | groundpart.CanCollide = true | |
| 2410 | groundpart.Friction = 0.1 | |
| 2411 | groundpart.Velocity = Vector3.new(math.random(-50, 50), math.random(25, 50), math.random(-50, 50)) | |
| 2412 | groundpart.CFrame = CFrame.new(pos) * CFrame.new(math.random(-250, 250) / 100, 0.5, math.random(-250, 250) / 100) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 2413 | game:GetService("Debris"):AddItem(groundpart, 10)
| |
| 2414 | end | |
| 2415 | for i = 1, 6 do | |
| 2416 | local Color = hit.BrickColor | |
| 2417 | local Materials = hit.Material | |
| 2418 | local actualgroundpart = CreatePart(workspace, "SmoothPlastic", 0, 0, Color, "Ground", Vector3.new(math.random(100, 200) / 100, math.random(100, 200) / 100, math.random(100, 200) / 100)) | |
| 2419 | actualgroundpart.Anchored = true | |
| 2420 | actualgroundpart.Material = Materials | |
| 2421 | actualgroundpart.CanCollide = true | |
| 2422 | actualgroundpart.Friction = 1 | |
| 2423 | actualgroundpart.CFrame = CFrame.new(pos) * CFrame.new(math.random(-500, 500) / 100, 0, math.random(-500, 500) / 100) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 2424 | game:GetService("Debris"):AddItem(actualgroundpart, 10)
| |
| 2425 | end | |
| 2426 | WaveEffect(hit.BrickColor, refpart.CFrame, .2, .2, .2, .5, .5, .5, .04) | |
| 2427 | SphereEffect(hit.BrickColor, refpart.CFrame, .2, .2, .2, 3, 3, 3, .04) | |
| 2428 | RingEffect(hit.BrickColor, refpart.CFrame * CFrame.Angles(math.random(5, 6), math.random(2, 7), math.random(3, 6)), .2, .2, .2, 1, 1, 1, .05) | |
| 2429 | end | |
| 2430 | attack = false | |
| 2431 | end | |
| 2432 | ||
| 2433 | function ShootCannon(asd) | |
| 2434 | local MainPos = asd.Position | |
| 2435 | local MainPos2 = mouse.Hit.p | |
| 2436 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
| 2437 | num = 100 | |
| 2438 | coroutine.resume(coroutine.create(function() | |
| 2439 | repeat | |
| 2440 | swait() | |
| 2441 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, RootPart.Parent) | |
| 2442 | local mag = (MainPos - pos).magnitude | |
| 2443 | CylinderEffect(BrickColor.new("New Yeller"), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 100, .1, 0, 1.5, 0.1)
| |
| 2444 | MainPos = MainPos + (MouseLook.lookVector * 10) | |
| 2445 | num = num - 1 | |
| 2446 | if hit ~= nil then | |
| 2447 | num = 0 | |
| 2448 | local ref = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new("New Yeller"), "Reference", Vector3.new())
| |
| 2449 | ref.Anchored = true | |
| 2450 | ref.CFrame = CFrame.new(pos) | |
| 2451 | BlockEffect(BrickColor.new("New Yeller"), CFrame.new(pos), 20, 20, 20, 5, 5, 5, 0.1)
| |
| 2452 | MagnitudeDamage(ref, 30, 25, 50, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 2453 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 2454 | end | |
| 2455 | until num <= 0 | |
| 2456 | end)) | |
| 2457 | end | |
| 2458 | ||
| 2459 | gun = false | |
| 2460 | ||
| 2461 | shoot = false | |
| 2462 | ||
| 2463 | gunidle = false | |
| 2464 | ||
| 2465 | local Loaded = false | |
| 2466 | ||
| 2467 | function GunStance() | |
| 2468 | attack = true | |
| 2469 | gun = true | |
| 2470 | change = 3 | |
| 2471 | Barrel1.Transparency = 0 | |
| 2472 | Barrel2.Transparency = 0 | |
| 2473 | Choke1.Transparency = 0 | |
| 2474 | Choke2.Transparency = 0 | |
| 2475 | for i = 0, 1, 0.1 do | |
| 2476 | swait() | |
| 2477 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3) | |
| 2478 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), .3) | |
| 2479 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3) | |
| 2480 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
| 2481 | HandleWeld.C0 = clerp(HandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2482 | if Torsovelocity < 1 then | |
| 2483 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
| 2484 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
| 2485 | elseif Torsovelocity > 2 then | |
| 2486 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2487 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2488 | end | |
| 2489 | end | |
| 2490 | local offset = nil | |
| 2491 | gunidle = true | |
| 2492 | while gun == true do | |
| 2493 | swait() | |
| 2494 | local gunpos = Vector3.new(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z) | |
| 2495 | offset = (Torso.Position.y - mouse.Hit.p.y) / 60 | |
| 2496 | local mag = (Torso.Position - mouse.Hit.p).magnitude / 80 | |
| 2497 | offset = offset / mag | |
| 2498 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, offset), .5) | |
| 2499 | if Torsovelocity < 1 then | |
| 2500 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
| 2501 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
| 2502 | elseif Torsovelocity > 2 then | |
| 2503 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2504 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2505 | end | |
| 2506 | end | |
| 2507 | if shoot == true then | |
| 2508 | gunidle = false | |
| 2509 | CreateSound("rbxassetid://131632972", Torso, 1, 1.2)
| |
| 2510 | CreateSound("rbxassetid://131632972", Torso, 1, 1)
| |
| 2511 | CreateSound("rbxassetid://131632972", Torso, 1, .7)
| |
| 2512 | ShootCannon(Choke1) | |
| 2513 | ShootCannon(Choke2) | |
| 2514 | for i = 0, 1, 0.15 do | |
| 2515 | swait() | |
| 2516 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3) | |
| 2517 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-90)), .3) | |
| 2518 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(150)), .5) | |
| 2519 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), .3) | |
| 2520 | HandleWeld.C0 = clerp(HandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2521 | if Torsovelocity < 1 then | |
| 2522 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
| 2523 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .2) | |
| 2524 | elseif Torsovelocity > 2 then | |
| 2525 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 10) / 2, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2526 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 10) / 2, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2527 | end | |
| 2528 | end | |
| 2529 | Loaded = false | |
| 2530 | end | |
| 2531 | RW.C1 = clerp(RW.C1, cn(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0), 1) | |
| 2532 | Barrel1.Transparency = 1 | |
| 2533 | Barrel2.Transparency = 1 | |
| 2534 | Choke1.Transparency = 1 | |
| 2535 | Choke2.Transparency = 1 | |
| 2536 | gun = false | |
| 2537 | gunidle = false | |
| 2538 | shoot = false | |
| 2539 | attack = false | |
| 2540 | end | |
| 2541 | ||
| 2542 | function Disappear() | |
| 2543 | for _, i in pairs(m:children()) do | |
| 2544 | if i.Name == "BladePrt" then | |
| 2545 | coroutine.resume(coroutine.create(function(Part) | |
| 2546 | for i = 0, 1, 0.1 do | |
| 2547 | swait() | |
| 2548 | Part.Transparency = i | |
| 2549 | end | |
| 2550 | Part.Transparency = 1 | |
| 2551 | end), i) | |
| 2552 | end | |
| 2553 | end | |
| 2554 | end | |
| 2555 | ||
| 2556 | ||
| 2557 | function Reappear() | |
| 2558 | for _, i in pairs(m:children()) do | |
| 2559 | if i.Name == "BladePrt" then | |
| 2560 | coroutine.resume(coroutine.create(function(Part) | |
| 2561 | for i = 0, 1, 0.1 do | |
| 2562 | swait() | |
| 2563 | Part.Transparency = i | |
| 2564 | end | |
| 2565 | Part.Transparency = 0 | |
| 2566 | end), i) | |
| 2567 | end | |
| 2568 | end | |
| 2569 | end | |
| 2570 | ||
| 2571 | function BladeEquip() | |
| 2572 | attack = true | |
| 2573 | for i = 0, 1, 0.15 do | |
| 2574 | swait() | |
| 2575 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2576 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2577 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, 0) * angles(math.rad(210), math.rad(0), math.rad(30)), .5) | |
| 2578 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3) | |
| 2579 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 2580 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 2581 | end | |
| 2582 | CreateSound("http://roblox.com/asset/?id=199145327", FakeHandle, .6, 1)
| |
| 2583 | HandleWeld:remove() | |
| 2584 | HandleWeld = CreateWeld(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.032043457, 0.996201754, -0.111961365, 8.94076351e-008, 1.1920929e-007, 1, -1.49014454e-007, 1, -1.19209275e-007, -1, -1.4901444e-007, 8.94076564e-008)) | |
| 2585 | for i = 0, 1, 0.1 do | |
| 2586 | swait() | |
| 2587 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2588 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2589 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(70)), .3) | |
| 2590 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3) | |
| 2591 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 2592 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 2593 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(90), math.rad(0), -6 * i), .3) | |
| 2594 | end | |
| 2595 | Reappear() | |
| 2596 | Mode = "Sword" | |
| 2597 | attack = false | |
| 2598 | end | |
| 2599 | ||
| 2600 | function UnequipBlade() | |
| 2601 | attack = true | |
| 2602 | for i = 0, 1, 0.15 do | |
| 2603 | swait() | |
| 2604 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2605 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2606 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.3, 0) * angles(math.rad(210), math.rad(0), math.rad(30)), .5) | |
| 2607 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), .3) | |
| 2608 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 2609 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .3) | |
| 2610 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(40), math.rad(-60)), .3) | |
| 2611 | end | |
| 2612 | Disappear() | |
| 2613 | HandleWeld:remove() | |
| 2614 | HandleWeld = CreateWeld(m, Character["Torso"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.57640076, -0.105987549, -0.672006607, 0.866025388, 0.500000119, -8.94076351e-008, -0.500000119, 0.866025388, 1.49014454e-007, 1.51936518e-007, -8.43464605e-008, 1)) | |
| 2615 | Mode = "Normal" | |
| 2616 | attack = false | |
| 2617 | end | |
| 2618 | ||
| 2619 | function BladeAttackOne() | |
| 2620 | attack = true | |
| 2621 | local Con1 = BladeHitbox.Touched:connect(function(hit) | |
| 2622 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 2623 | end) | |
| 2624 | for i = 0, 1, 0.15 do | |
| 2625 | swait() | |
| 2626 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .3) | |
| 2627 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
| 2628 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.5) * angles(math.rad(0), math.rad(150), math.rad(120)), .3) | |
| 2629 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.7) * angles(math.rad(0), math.rad(70), math.rad(90)), .3) | |
| 2630 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .3) | |
| 2631 | if Torsovelocity < 1 then | |
| 2632 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2) | |
| 2633 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2) | |
| 2634 | elseif Torsovelocity > 2 then | |
| 2635 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2636 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2637 | end | |
| 2638 | end | |
| 2639 | CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .8)
| |
| 2640 | for i = 0, 1, 0.15 do | |
| 2641 | swait() | |
| 2642 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(-60)), .4) | |
| 2643 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60)), .4) | |
| 2644 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, 0) * angles(math.rad(0), math.rad(70), math.rad(80)), .4) | |
| 2645 | LW.C0 = clerp(LW.C0, CFrame.new(-.4, 0.5, -1) * angles(math.rad(0), math.rad(20), math.rad(70)), .4) | |
| 2646 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .4) | |
| 2647 | if Torsovelocity < 1 then | |
| 2648 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2) | |
| 2649 | LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(-10)), .2) | |
| 2650 | elseif Torsovelocity > 2 then | |
| 2651 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2652 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2653 | end | |
| 2654 | end | |
| 2655 | Con1:disconnect() | |
| 2656 | attack = false | |
| 2657 | end | |
| 2658 | ||
| 2659 | function BladeAttackTwo() | |
| 2660 | attack = true | |
| 2661 | local Con1 = BladeHitbox.Touched:connect(function(hit) | |
| 2662 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 2663 | end) | |
| 2664 | for i = 0, 1, 0.15 do | |
| 2665 | swait() | |
| 2666 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
| 2667 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), .3) | |
| 2668 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.7) * angles(math.rad(0), math.rad(-70), math.rad(-90)), .3) | |
| 2669 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-120)), .3) | |
| 2670 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .3) | |
| 2671 | if Torsovelocity < 1 then | |
| 2672 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2) | |
| 2673 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2) | |
| 2674 | elseif Torsovelocity > 2 then | |
| 2675 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2676 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2677 | end | |
| 2678 | end | |
| 2679 | CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, 1)
| |
| 2680 | for i = 0, 1, 0.15 do | |
| 2681 | swait() | |
| 2682 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(60)), .4) | |
| 2683 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(5), math.rad(-60)), .4) | |
| 2684 | RW.C0 = clerp(RW.C0, CFrame.new(.4, 0.5, -1) * angles(math.rad(0), math.rad(-20), math.rad(-70)), .4) | |
| 2685 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.1, 0) * angles(math.rad(0), math.rad(-70), math.rad(-80)), .4) | |
| 2686 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(80)), .4) | |
| 2687 | if Torsovelocity < 1 then | |
| 2688 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2) | |
| 2689 | LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(-10)), .2) | |
| 2690 | elseif Torsovelocity > 2 then | |
| 2691 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2692 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2693 | end | |
| 2694 | end | |
| 2695 | Con1:disconnect() | |
| 2696 | attack = false | |
| 2697 | end | |
| 2698 | ||
| 2699 | function BladeAttackThree() | |
| 2700 | attack = true | |
| 2701 | local Con1 = BladeHitbox.Touched:connect(function(hit) | |
| 2702 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 2703 | end) | |
| 2704 | for i = 0, 1, 0.15 do | |
| 2705 | swait() | |
| 2706 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), .34) | |
| 2707 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .34) | |
| 2708 | RW.C0 = clerp(RW.C0, CFrame.new(1, 1, -.5) * angles(math.rad(120), math.rad(0), math.rad(-40)), .34) | |
| 2709 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 1, -.5) * angles(math.rad(120), math.rad(0), math.rad(40)), .34) | |
| 2710 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(0)), .4) | |
| 2711 | if Torsovelocity < 1 then | |
| 2712 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-10)), .34) | |
| 2713 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .34) | |
| 2714 | elseif Torsovelocity > 2 then | |
| 2715 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2716 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2717 | end | |
| 2718 | end | |
| 2719 | CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .7)
| |
| 2720 | for i = 0, 1, 0.13 do | |
| 2721 | swait() | |
| 2722 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.3) * angles(math.rad(0), math.rad(0), math.rad(0)), .5) | |
| 2723 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(20), math.rad(0), math.rad(0)), .5) | |
| 2724 | RW.C0 = clerp(RW.C0, CFrame.new(1, .3, -.3) * angles(math.rad(10), math.rad(0), math.rad(-40)), .5) | |
| 2725 | LW.C0 = clerp(LW.C0, CFrame.new(-1, .3, -.3) * angles(math.rad(10), math.rad(0), math.rad(40)), .5) | |
| 2726 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(40), math.rad(0), math.rad(30)), .5) | |
| 2727 | if Torsovelocity < 1 then | |
| 2728 | RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-10)), .34) | |
| 2729 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(10)), .34) | |
| 2730 | elseif Torsovelocity > 2 then | |
| 2731 | RH.C0 = clerp(RH.C0, cn(1, -.8, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2732 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(0), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2733 | end | |
| 2734 | end | |
| 2735 | Con1:disconnect() | |
| 2736 | attack = false | |
| 2737 | end | |
| 2738 | ||
| 2739 | function BladeAttackFour() | |
| 2740 | attack = true | |
| 2741 | local Con1 = BladeHitbox.Touched:connect(function(hit) | |
| 2742 | Damage(hit.Parent, math.random(10, 45), .1, BrickColor.new("Really black"), BrickColor.new("Mid gray"), "rbxassetid://199149186" ,1)
| |
| 2743 | end) | |
| 2744 | for i = 1,2 do | |
| 2745 | for i = 0, 1, 0.3 do | |
| 2746 | swait() | |
| 2747 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(60)), .5) | |
| 2748 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-60)), .5) | |
| 2749 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, -.5) * angles(math.rad(0), math.rad(150), math.rad(120)), .5) | |
| 2750 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.7) * angles(math.rad(0), math.rad(70), math.rad(90)), .5) | |
| 2751 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .5) | |
| 2752 | if Torsovelocity < 1 then | |
| 2753 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .5) | |
| 2754 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .5) | |
| 2755 | elseif Torsovelocity > 2 then | |
| 2756 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .5) | |
| 2757 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .5) | |
| 2758 | end | |
| 2759 | end | |
| 2760 | CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, 1)
| |
| 2761 | for i = 0, 1, 0.3 do | |
| 2762 | swait() | |
| 2763 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(-60)), .4) | |
| 2764 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60)), .4) | |
| 2765 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.3, 0) * angles(math.rad(0), math.rad(70), math.rad(80)), .4) | |
| 2766 | LW.C0 = clerp(LW.C0, CFrame.new(-.4, 0.5, -1) * angles(math.rad(0), math.rad(20), math.rad(70)), .4) | |
| 2767 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), .4) | |
| 2768 | if Torsovelocity < 1 then | |
| 2769 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .2) | |
| 2770 | LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(-10)), .2) | |
| 2771 | elseif Torsovelocity > 2 then | |
| 2772 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2773 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2774 | end | |
| 2775 | end | |
| 2776 | for i = 0, 1, 0.3 do | |
| 2777 | swait() | |
| 2778 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .5) | |
| 2779 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(60)), .5) | |
| 2780 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.7) * angles(math.rad(0), math.rad(-70), math.rad(-110)), .5) | |
| 2781 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-120)), .5) | |
| 2782 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(-10), math.rad(30)), .5) | |
| 2783 | if Torsovelocity < 1 then | |
| 2784 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .5) | |
| 2785 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(30), math.rad(0)), .5) | |
| 2786 | elseif Torsovelocity > 2 then | |
| 2787 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-0), math.rad(0) - math.sin(sine / 10)), .5) | |
| 2788 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(30), math.rad(0) - math.sin(sine / 10)), .5) | |
| 2789 | end | |
| 2790 | end | |
| 2791 | CreateSound("http://roblox.com/asset/?id=356430004", BladeHitbox, 1, .8)
| |
| 2792 | for i = 0, 1, 0.3 do | |
| 2793 | swait() | |
| 2794 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1) * angles(math.rad(10), math.rad(0), math.rad(60)), .4) | |
| 2795 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(5), math.rad(-60)), .4) | |
| 2796 | RW.C0 = clerp(RW.C0, CFrame.new(.4, 0.5, -1) * angles(math.rad(0), math.rad(-20), math.rad(-70)), .4) | |
| 2797 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.1, 0) * angles(math.rad(0), math.rad(-70), math.rad(-80)), .4) | |
| 2798 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(30), math.rad(80)), .4) | |
| 2799 | if Torsovelocity < 1 then | |
| 2800 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(-30), math.rad(0)), .2) | |
| 2801 | LH.C0 = clerp(LH.C0, cn(-1, -.9, 0) * LHCF * angles(math.rad(-5), math.rad(-30), math.rad(-10)), .2) | |
| 2802 | elseif Torsovelocity > 2 then | |
| 2803 | RH.C0 = clerp(RH.C0, cn(1, -1, -.05 + math.sin(sine / 10) / 2) * RHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2804 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.05 - math.sin(sine / 10) / 2) * LHCF * angles(math.rad(-1), math.rad(-30), math.rad(0) - math.sin(sine / 10)), .3) | |
| 2805 | end | |
| 2806 | end | |
| 2807 | end | |
| 2808 | Con1:disconnect() | |
| 2809 | attack = false | |
| 2810 | end | |
| 2811 | ||
| 2812 | --[[Attacks]]-- | |
| 2813 | ||
| 2814 | mouse.Button1Down:connect(function() | |
| 2815 | if attack == false and attacktype == 1 and equipped == true and Mode == "Normal" then | |
| 2816 | attacktype = 2 | |
| 2817 | attackone() | |
| 2818 | elseif attack == false and attacktype == 2 and equipped == true and Mode == "Normal" then | |
| 2819 | attacktype = 3 | |
| 2820 | attacktwo() | |
| 2821 | elseif attack == false and attacktype == 3 and equipped == true and Mode == "Normal" then | |
| 2822 | attacktype = 4 | |
| 2823 | attackthree() | |
| 2824 | elseif attack == false and attacktype == 4 and equipped == true and Mode == "Normal" then | |
| 2825 | attacktype = 1 | |
| 2826 | attackfour() | |
| 2827 | end | |
| 2828 | if attack == false and attacktype == 1 and equipped == true and Mode == "Sword" then | |
| 2829 | attacktype = 2 | |
| 2830 | BladeAttackOne() | |
| 2831 | elseif attack == false and attacktype == 2 and equipped == true and Mode == "Sword" then | |
| 2832 | attacktype = 3 | |
| 2833 | BladeAttackTwo() | |
| 2834 | elseif attack == false and attacktype == 3 and equipped == true and Mode == "Sword" then | |
| 2835 | attacktype = 4 | |
| 2836 | BladeAttackThree() | |
| 2837 | elseif attack == false and attacktype == 4 and equipped == true and Mode == "Sword" then | |
| 2838 | attacktype = 1 | |
| 2839 | BladeAttackFour() | |
| 2840 | end | |
| 2841 | if gun == true and shoot == false and equipped == true then | |
| 2842 | shoot = true | |
| 2843 | gun = false | |
| 2844 | end | |
| 2845 | end) | |
| 2846 | ||
| 2847 | mouse.KeyDown:connect(function(k) | |
| 2848 | k = k:lower() | |
| 2849 | if attack == false and equipped == false and k == 'f' and Mode == "Normal" then | |
| 2850 | Equip() | |
| 2851 | elseif attack == false and equipped == true and k == 'f' and Mode == "Normal" then | |
| 2852 | Unequip() | |
| 2853 | elseif attack == false and equipped == true and Mode == "Normal" and k == 'g' then | |
| 2854 | BladeEquip() | |
| 2855 | elseif attack == false and equipped == true and Mode == "Sword" and k == 'g' then | |
| 2856 | UnequipBlade() | |
| 2857 | elseif k == 'e' and gun == false and shoot == false and Mode == "Normal" and attack == false and equipped == true then | |
| 2858 | GunStance() | |
| 2859 | elseif k == 'e' and shoot == false and equipped == true and Mode == "Normal" then | |
| 2860 | if gun == true then | |
| 2861 | gun = false | |
| 2862 | end | |
| 2863 | end | |
| 2864 | end) | |
| 2865 | ||
| 2866 | --[[ Credits to Fenrier for the Movement Detection and Effects table. ]]-- | |
| 2867 | ||
| 2868 | while true do | |
| 2869 | swait() | |
| 2870 | for i, v in pairs(Character:GetChildren()) do | |
| 2871 | if v:IsA("Part") then
| |
| 2872 | v.Material = "SmoothPlastic" | |
| 2873 | elseif v:IsA("Hat") then
| |
| 2874 | v:WaitForChild("Handle").Material = "SmoothPlastic"
| |
| 2875 | end | |
| 2876 | end | |
| 2877 | if gun == true then | |
| 2878 | local aim = CFrame.new(RootPart.Position, mouse.Hit.p) | |
| 2879 | local direction = aim.lookVector | |
| 2880 | local headingA = math.atan2(direction.x, direction.z) | |
| 2881 | headingA = math.deg(headingA) | |
| 2882 | Humanoid.AutoRotate = false | |
| 2883 | RootPart.CFrame = CFrame.new(RootPart.Position) * angles(math.rad(0), math.rad(headingA - 180), math.rad(0)) | |
| 2884 | else | |
| 2885 | Humanoid.AutoRotate = true | |
| 2886 | end | |
| 2887 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 2888 | velocity = RootPart.Velocity.y | |
| 2889 | sine = sine + change | |
| 2890 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
| 2891 | if equipped == true then | |
| 2892 | if RootPart.Velocity.y > 1 and hit == nil then | |
| 2893 | Anim = "Jump" | |
| 2894 | if attack == false then | |
| 2895 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2896 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .3) | |
| 2897 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), .3) | |
| 2898 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), .3) | |
| 2899 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(-20)), .3) | |
| 2900 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(20)), .3) | |
| 2901 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2902 | end | |
| 2903 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
| 2904 | Anim = "Fall" | |
| 2905 | if attack == false then | |
| 2906 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2907 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(0)), .3) | |
| 2908 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
| 2909 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .3) | |
| 2910 | RH.C0 = clerp(RH.C0, cn(1, -.8, 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(20)), .3) | |
| 2911 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(-20)), .3) | |
| 2912 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2913 | end | |
| 2914 | elseif Torsovelocity < 1 and hit ~= nil then | |
| 2915 | Anim = "Idle" | |
| 2916 | if attack == false and Mode == "Normal" then | |
| 2917 | change = 1 | |
| 2918 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1 + .1 * math.sin(sine / 27)) * angles(math.rad(0), math.rad(0), math.rad(30)), .3) | |
| 2919 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 + 3 * math.cos(sine / 23)), math.rad(-2 - 3 * math.cos(sine / 23)), math.rad(-30)), .3) | |
| 2920 | RW.C0 = clerp(RW.C0, CFrame.new(1.4, 0.6 + .07 * math.cos(sine / 23), -.2) * angles(math.rad(110 + 2 * math.cos(sine / 24)), math.rad(35 + 3 * math.cos(sine / 23)), math.rad(-30)), .3) | |
| 2921 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.6 + .07 * math.cos(sine / 23), -.5) * angles(math.rad(120 + 2 * math.cos(sine / 24)), math.rad(-40 + 3 * math.cos(sine / 23)), math.rad(40)), .3) | |
| 2922 | RH.C0 = clerp(RH.C0, cn(1, -.9 - .1 * math.sin(sine / 27), 0) * RHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(-30), math.rad(0)), .3) | |
| 2923 | LH.C0 = clerp(LH.C0, cn(-1, -.9 - .1 * math.sin(sine / 27), 0) * LHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(-30), math.rad(0)), .3) | |
| 2924 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2925 | elseif attack == false and Mode == "Sword" then | |
| 2926 | change = 1 | |
| 2927 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1 + .1 * math.sin(sine / 27)) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
| 2928 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 + 3 * math.cos(sine / 23)), math.rad(-2 + 3 * math.cos(sine / 23)), math.rad(60)), .3) | |
| 2929 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.6, 0) * angles(math.rad(150 + 3 * math.cos(sine / 23)), math.rad(0), math.rad(10)), 0.3) | |
| 2930 | LW.C0 = clerp(LW.C0, CFrame.new(-1.4, 0.5, 0) * angles(math.rad(10 + 2 * math.cos(sine / 23)), math.rad(0), math.rad(-20 - 5 * math.cos(sine / 23))), 0.3) | |
| 2931 | RH.C0 = clerp(RH.C0, cn(1, -.9 - .1 * math.sin(sine / 27), 0) * RHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(20), math.rad(0)), .3) | |
| 2932 | LH.C0 = clerp(LH.C0, cn(-1, -.9 - .1 * math.sin(sine / 27), 0) * LHCF * angles(math.rad(-4 + 1 * math.cos(sine / 23)), math.rad(20), math.rad(0)), .3) | |
| 2933 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
| 2934 | end | |
| 2935 | elseif Torsovelocity > 2 and hit ~= nil then | |
| 2936 | Anim = "Walk" | |
| 2937 | if attack == false and Mode == "Normal" then | |
| 2938 | change = 3 | |
| 2939 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.2) * angles(math.rad(30), math.rad(0), math.rad(5 * math.cos(sine / 10) / 2)), .3) | |
| 2940 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-20), math.rad(0), math.rad(-5 * math.cos(sine / 10) / 2)), .3) | |
| 2941 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6 + .07 * math.cos(sine / 23), -.2) * angles(math.rad(110), math.rad(40), math.rad(-40)), .3) | |
| 2942 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6 + .07 * math.cos(sine / 23), -.2) * angles(math.rad(110), math.rad(-40), math.rad(40)), .3) | |
| 2943 | RH.C0 = clerp(RH.C0, cn(1, -.8 - 0.3 * math.cos(sine / 8) / 2, -.05 + math.sin(sine / 8) / 2) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(10) - math.sin(sine / 8)), .3) | |
| 2944 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 8) / 2, -.05 - math.sin(sine / 8) / 2) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-10) - math.sin(sine / 8)), .3) | |
| 2945 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 2946 | elseif attack == false and Mode == "Sword" then | |
| 2947 | change = 3 | |
| 2948 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -.1 + .1 * math.sin(sine / 27)) * angles(math.rad(15), math.rad(0), math.rad(-60 + 10 * math.cos(sine / 13))), .3) | |
| 2949 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(-5), math.rad(60 - 10 * math.cos(sine / 13))), .3) | |
| 2950 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -.5) * angles(math.rad(150 + 3 * math.cos(sine / 23)), math.rad(0), math.rad(-20)), 0.3) | |
| 2951 | LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.7, -1) * angles(math.rad(150 + 2 * math.cos(sine / 23)), math.rad(0), math.rad(40)), 0.3) | |
| 2952 | RH.C0 = clerp(RH.C0, cn(1, -1 - 0.3 * math.cos(sine / 8) / 2, -.05 + math.sin(sine / 8) / 2) * RHCF * angles(math.rad(-4), math.rad(40), math.rad(10) - math.sin(sine / 8)), .3) | |
| 2953 | LH.C0 = clerp(LH.C0, cn(-1, -.8 + 0.3 * math.cos(sine / 8) / 2, -.05 - math.sin(sine / 8) / 2) * LHCF * angles(math.rad(-4), math.rad(40), math.rad(-10) - math.sin(sine / 8)), .3) | |
| 2954 | FakeHandleWeld.C0 = clerp(FakeHandleWeld.C0, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)), .3) | |
| 2955 | end | |
| 2956 | end | |
| 2957 | end | |
| 2958 | if #Effects > 0 then | |
| 2959 | for e = 1, #Effects do | |
| 2960 | if Effects[e] ~= nil then | |
| 2961 | local Thing = Effects[e] | |
| 2962 | if Thing ~= nil then | |
| 2963 | local Part = Thing[1] | |
| 2964 | local Mode = Thing[2] | |
| 2965 | local Delay = Thing[3] | |
| 2966 | local IncX = Thing[4] | |
| 2967 | local IncY = Thing[5] | |
| 2968 | local IncZ = Thing[6] | |
| 2969 | if Thing[1].Transparency <= 1 then | |
| 2970 | if Thing[2] == "Block1" then | |
| 2971 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 2972 | Mesh = Thing[1].Mesh | |
| 2973 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2974 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2975 | elseif Thing[2] == "Block2" then | |
| 2976 | Thing[1].CFrame = Thing[1].CFrame | |
| 2977 | Mesh = Thing[7] | |
| 2978 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2979 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2980 | elseif Thing[2] == "Cylinder" then | |
| 2981 | Mesh = Thing[1].Mesh | |
| 2982 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2983 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2984 | elseif Thing[2] == "Blood" then | |
| 2985 | Mesh = Thing[7] | |
| 2986 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0) | |
| 2987 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 2988 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2989 | elseif Thing[2] == "Elec" then | |
| 2990 | Mesh = Thing[1].Mesh | |
| 2991 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 2992 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2993 | elseif Thing[2] == "Disappear" then | |
| 2994 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2995 | elseif Thing[2] == "Shatter" then | |
| 2996 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 2997 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
| 2998 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 2999 | Thing[6] = Thing[6] + Thing[5] | |
| 3000 | end | |
| 3001 | else | |
| 3002 | Part.Parent = nil | |
| 3003 | table.remove(Effects, e) | |
| 3004 | end | |
| 3005 | end | |
| 3006 | end | |
| 3007 | end | |
| 3008 | end | |
| 3009 | end |