SHOW:
|
|
- or go back to the newest paste.
| 1 | --void Script bbuilder fe script converter V2 | |
| 2 | ||
| 3 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 4 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 5 | local RealPlayer = Player | |
| 6 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
| |
| 7 | ||
| 8 | --//====================================================\\-- | |
| 9 | --|| CREATED BY SHACKLUSTER | |
| 10 | --\\====================================================//-- | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | wait(0.2) | |
| 15 | ||
| 16 | ||
| 17 | ||
| 18 | Player = game:GetService("Players").LocalPlayer
| |
| 19 | PlayerGui = Player.PlayerGui | |
| 20 | Cam = workspace.CurrentCamera | |
| 21 | Backpack = Player.Backpack | |
| 22 | Character = Player.Character | |
| 23 | Humanoid = Character.Humanoid | |
| 24 | Mouse = Player:GetMouse() | |
| 25 | RootPart = Character["HumanoidRootPart"] | |
| 26 | Torso = Character["Torso"] | |
| 27 | Head = Character["Head"] | |
| 28 | RightArm = Character["Right Arm"] | |
| 29 | LeftArm = Character["Left Arm"] | |
| 30 | RightLeg = Character["Right Leg"] | |
| 31 | LeftLeg = Character["Left Leg"] | |
| 32 | RootJoint = RootPart["RootJoint"] | |
| 33 | Neck = Torso["Neck"] | |
| 34 | RightShoulder = Torso["Right Shoulder"] | |
| 35 | LeftShoulder = Torso["Left Shoulder"] | |
| 36 | RightHip = Torso["Right Hip"] | |
| 37 | LeftHip = Torso["Left Hip"] | |
| 38 | local sick = Instance.new("Sound",Character)
| |
| 39 | sick.SoundId = "rbxassetid://596353935" | |
| 40 | sick.Looped = true | |
| 41 | sick.Pitch = 1 | |
| 42 | sick.Volume = 2 | |
| 43 | Player:ClearCharacterAppearance() | |
| 44 | local HANDS = {}
| |
| 45 | Character.Archivable = true | |
| 46 | - | Humanoid.DisplayDistanceType = "None" |
| 46 | + | |
| 47 | IT = Instance.new | |
| 48 | CF = CFrame.new | |
| 49 | VT = Vector3.new | |
| 50 | - | naeeym2.Size = UDim2.new(5,35,2,35) |
| 50 | + | |
| 51 | - | naeeym2.StudsOffset = Vector3.new(0,3,0) |
| 51 | + | |
| 52 | UD2 = UDim2.new | |
| 53 | - | naeeym2.Name = "Name" |
| 53 | + | |
| 54 | - | naeeym2.PlayerToHideFrom = Player |
| 54 | + | |
| 55 | EULER = CFrame.fromEulerAnglesXYZ | |
| 56 | COS = math.cos | |
| 57 | - | tecks2.TextScaled = true |
| 57 | + | |
| 58 | SIN = math.sin | |
| 59 | - | tecks2.Text = "1x1x1x1IAMbck" |
| 59 | + | |
| 60 | - | tecks2.Font = "Antique" |
| 60 | + | |
| 61 | MRANDOM = math.random | |
| 62 | - | tecks2.TextTransparency = 1 |
| 62 | + | |
| 63 | ||
| 64 | - | tecks2.TextColor3 = Color3.new(1,0,0) |
| 64 | + | |
| 65 | local NEWMESH = IT(MESH) | |
| 66 | - | tecks2.Parent = naeeym2 |
| 66 | + | |
| 67 | NEWMESH.MeshType = MESHTYPE | |
| 68 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 69 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 70 | end | |
| 71 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 72 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 73 | end | |
| 74 | end | |
| 75 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 76 | NEWMESH.Scale = SCALE | |
| 77 | NEWMESH.Parent = PARENT | |
| 78 | return NEWMESH | |
| 79 | end | |
| 80 | ||
| 81 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 82 | local NEWPART = IT("Part")
| |
| 83 | NEWPART.formFactor = FORMFACTOR | |
| 84 | NEWPART.Reflectance = REFLECTANCE | |
| 85 | NEWPART.Transparency = TRANSPARENCY | |
| 86 | NEWPART.CanCollide = false | |
| 87 | NEWPART.Locked = true | |
| 88 | NEWPART.Anchored = true | |
| 89 | if ANCHOR == false then | |
| 90 | NEWPART.Anchored = false | |
| 91 | end | |
| 92 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 93 | NEWPART.Name = NAME | |
| 94 | NEWPART.Size = SIZE | |
| 95 | NEWPART.Position = Torso.Position | |
| 96 | NEWPART.Material = MATERIAL | |
| 97 | NEWPART:BreakJoints() | |
| 98 | NEWPART.Parent = PARENT | |
| 99 | return NEWPART | |
| 100 | end | |
| 101 | ||
| 102 | --//=================================\\ | |
| 103 | --|| CUSTOMIZATION | |
| 104 | --\\=================================// | |
| 105 | ||
| 106 | Player_Size = 1 --Size of the player. | |
| 107 | Animation_Speed = 3 | |
| 108 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 109 | ||
| 110 | local Speed = 16 | |
| 111 | local Effects2 = {}
| |
| 112 | ||
| 113 | --//=================================\\ | |
| 114 | --|| END OF CUSTOMIZATION | |
| 115 | --\\=================================// | |
| 116 | ||
| 117 | local function weldBetween(a, b) | |
| 118 | local weldd = Instance.new("ManualWeld")
| |
| 119 | weldd.Part0 = a | |
| 120 | weldd.Part1 = b | |
| 121 | weldd.C0 = CFrame.new() | |
| 122 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 123 | weldd.Parent = a | |
| 124 | return weldd | |
| 125 | end | |
| 126 | ||
| 127 | --//=================================\\ | |
| 128 | --|| USEFUL VALUES | |
| 129 | --\\=================================// | |
| 130 | ||
| 131 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 132 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 133 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 134 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 135 | local CHANGEDEFENSE = 0 | |
| 136 | local CHANGEDAMAGE = 0 | |
| 137 | local CHANGEMOVEMENT = 0 | |
| 138 | local ANIM = "Idle" | |
| 139 | local ATTACK = false | |
| 140 | local EQUIPPED = false | |
| 141 | local HOLD = false | |
| 142 | local COMBO = 1 | |
| 143 | local Rooted = false | |
| 144 | local SINE = 0 | |
| 145 | local KEYHOLD = false | |
| 146 | local CHANGE = 2 / Animation_Speed | |
| 147 | local WALKINGANIM = false | |
| 148 | local WALK = 0 | |
| 149 | local VALUE1 = false | |
| 150 | local VALUE2 = false | |
| 151 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 152 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 153 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 154 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 155 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 156 | WEAPONGUI.Name = "Weapon GUI" | |
| 157 | local Weapon = IT("Model")
| |
| 158 | Weapon.Name = "Weapon" | |
| 159 | local Effects = IT("Folder", Weapon)
| |
| 160 | Effects.Name = "Effects" | |
| 161 | local ANIMATOR = Humanoid.Animator | |
| 162 | local ANIMATE = Character.Animate | |
| 163 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
| |
| 164 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
| |
| 165 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
| |
| 166 | local HITBLOCKSOUNDS = {"199148933", "199148947"}
| |
| 167 | local UNANCHOR = true | |
| 168 | local INTRO = false | |
| 169 | local TRANSFORMED = false | |
| 170 | local INSTANT = false | |
| 171 | ||
| 172 | local SKILLTEXTCOLOR = BRICKC("Black").Color
| |
| 173 | ||
| 174 | --//=================================\\ | |
| 175 | --\\=================================// | |
| 176 | ||
| 177 | ||
| 178 | --//=================================\\ | |
| 179 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 180 | --\\=================================// | |
| 181 | ||
| 182 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 183 | ArtificialHB.Name = "ArtificialHB" | |
| 184 | ||
| 185 | script:WaitForChild("ArtificialHB")
| |
| 186 | ||
| 187 | frame = Frame_Speed | |
| 188 | tf = 0 | |
| 189 | allowframeloss = false | |
| 190 | tossremainder = false | |
| 191 | lastframe = tick() | |
| 192 | script.ArtificialHB:Fire() | |
| 193 | ||
| 194 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 195 | tf = tf + s | |
| 196 | if tf >= frame then | |
| 197 | if allowframeloss then | |
| 198 | script.ArtificialHB:Fire() | |
| 199 | lastframe = tick() | |
| 200 | else | |
| 201 | for i = 1, math.floor(tf / frame) do | |
| 202 | script.ArtificialHB:Fire() | |
| 203 | end | |
| 204 | lastframe = tick() | |
| 205 | end | |
| 206 | if tossremainder then | |
| 207 | tf = 0 | |
| 208 | else | |
| 209 | tf = tf - frame * math.floor(tf / frame) | |
| 210 | end | |
| 211 | end | |
| 212 | end) | |
| 213 | ||
| 214 | --//=================================\\ | |
| 215 | --\\=================================// | |
| 216 | ||
| 217 | ||
| 218 | ||
| 219 | ||
| 220 | ||
| 221 | --//=================================\\ | |
| 222 | --|| SOME FUNCTIONS | |
| 223 | --\\=================================// | |
| 224 | ||
| 225 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 226 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 227 | end | |
| 228 | ||
| 229 | function PositiveAngle(NUMBER) | |
| 230 | if NUMBER >= 0 then | |
| 231 | NUMBER = 0 | |
| 232 | end | |
| 233 | return NUMBER | |
| 234 | end | |
| 235 | ||
| 236 | function NegativeAngle(NUMBER) | |
| 237 | if NUMBER <= 0 then | |
| 238 | NUMBER = 0 | |
| 239 | end | |
| 240 | return NUMBER | |
| 241 | end | |
| 242 | ||
| 243 | function Swait(NUMBER) | |
| 244 | if NUMBER == 0 or NUMBER == nil then | |
| 245 | ArtificialHB.Event:wait() | |
| 246 | else | |
| 247 | for i = 1, NUMBER do | |
| 248 | ArtificialHB.Event:wait() | |
| 249 | end | |
| 250 | end | |
| 251 | end | |
| 252 | ||
| 253 | function QuaternionFromCFrame(cf) | |
| 254 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 255 | local trace = m00 + m11 + m22 | |
| 256 | if trace > 0 then | |
| 257 | local s = math.sqrt(1 + trace) | |
| 258 | local recip = 0.5 / s | |
| 259 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 260 | else | |
| 261 | local i = 0 | |
| 262 | if m11 > m00 then | |
| 263 | i = 1 | |
| 264 | end | |
| 265 | if m22 > (i == 0 and m00 or m11) then | |
| 266 | i = 2 | |
| 267 | end | |
| 268 | if i == 0 then | |
| 269 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 270 | local recip = 0.5 / s | |
| 271 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 272 | elseif i == 1 then | |
| 273 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 274 | local recip = 0.5 / s | |
| 275 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 276 | elseif i == 2 then | |
| 277 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 278 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 279 | end | |
| 280 | end | |
| 281 | end | |
| 282 | ||
| 283 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 284 | local xs, ys, zs = x + x, y + y, z + z | |
| 285 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 286 | local xx = x * xs | |
| 287 | local xy = x * ys | |
| 288 | local xz = x * zs | |
| 289 | local yy = y * ys | |
| 290 | local yz = y * zs | |
| 291 | local zz = z * zs | |
| 292 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
| 293 | end | |
| 294 | ||
| 295 | function QuaternionSlerp(a, b, t) | |
| 296 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 297 | local startInterp, finishInterp; | |
| 298 | if cosTheta >= 0.0001 then | |
| 299 | if (1 - cosTheta) > 0.0001 then | |
| 300 | local theta = ACOS(cosTheta) | |
| 301 | local invSinTheta = 1 / SIN(theta) | |
| 302 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 303 | finishInterp = SIN(t * theta) * invSinTheta | |
| 304 | else | |
| 305 | startInterp = 1 - t | |
| 306 | finishInterp = t | |
| 307 | end | |
| 308 | else | |
| 309 | if (1 + cosTheta) > 0.0001 then | |
| 310 | local theta = ACOS(-cosTheta) | |
| 311 | local invSinTheta = 1 / SIN(theta) | |
| 312 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 313 | finishInterp = SIN(t * theta) * invSinTheta | |
| 314 | else | |
| 315 | startInterp = t - 1 | |
| 316 | finishInterp = t | |
| 317 | end | |
| 318 | end | |
| 319 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
| 320 | end | |
| 321 | ||
| 322 | function Clerp(a, b, t) | |
| 323 | local qa = {QuaternionFromCFrame(a)}
| |
| 324 | local qb = {QuaternionFromCFrame(b)}
| |
| 325 | local ax, ay, az = a.x, a.y, a.z | |
| 326 | local bx, by, bz = b.x, b.y, b.z | |
| 327 | local _t = 1 - t | |
| 328 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 329 | end | |
| 330 | ||
| 331 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 332 | local frame = IT("Frame")
| |
| 333 | frame.BackgroundTransparency = TRANSPARENCY | |
| 334 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 335 | frame.Position = POSITION | |
| 336 | frame.Size = SIZE | |
| 337 | frame.BackgroundColor3 = COLOR | |
| 338 | frame.BorderColor3 = BORDERCOLOR | |
| 339 | frame.Name = NAME | |
| 340 | frame.Parent = PARENT | |
| 341 | return frame | |
| 342 | end | |
| 343 | ||
| 344 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 345 | local label = IT("TextLabel")
| |
| 346 | label.BackgroundTransparency = 1 | |
| 347 | label.Size = UD2(1, 0, 1, 0) | |
| 348 | label.Position = UD2(0, 0, 0, 0) | |
| 349 | label.TextColor3 = TEXTCOLOR | |
| 350 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 351 | label.TextTransparency = TRANSPARENCY | |
| 352 | label.FontSize = TEXTFONTSIZE | |
| 353 | label.Font = TEXTFONT | |
| 354 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 355 | label.TextScaled = false | |
| 356 | label.Text = TEXT | |
| 357 | label.Name = NAME | |
| 358 | label.Parent = PARENT | |
| 359 | return label | |
| 360 | end | |
| 361 | ||
| 362 | function NoOutlines(PART) | |
| 363 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 364 | end | |
| 365 | ||
| 366 | ||
| 367 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 368 | local NEWWELD = IT(TYPE) | |
| 369 | NEWWELD.Part0 = PART0 | |
| 370 | NEWWELD.Part1 = PART1 | |
| 371 | NEWWELD.C0 = C0 | |
| 372 | NEWWELD.C1 = C1 | |
| 373 | NEWWELD.Parent = PARENT | |
| 374 | return NEWWELD | |
| 375 | end | |
| 376 | ||
| 377 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
| 378 | local NEWSOUND = nil | |
| 379 | coroutine.resume(coroutine.create(function() | |
| 380 | NEWSOUND = IT("Sound", PARENT)
| |
| 381 | NEWSOUND.Volume = VOLUME | |
| 382 | NEWSOUND.Pitch = PITCH | |
| 383 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 384 | Swait() | |
| 385 | NEWSOUND:play() | |
| 386 | game:GetService("Debris"):AddItem(NEWSOUND, 10)
| |
| 387 | end)) | |
| 388 | return NEWSOUND | |
| 389 | end | |
| 390 | ||
| 391 | function CFrameFromTopBack(at, top, back) | |
| 392 | local right = top:Cross(back) | |
| 393 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 394 | end | |
| 395 | ||
| 396 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
| 397 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
| 398 | local mesh = IT("SpecialMesh",wave)
| |
| 399 | mesh.MeshType = "FileMesh" | |
| 400 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 401 | mesh.Scale = SIZE | |
| 402 | mesh.Offset = VT(0,0,0) | |
| 403 | wave.CFrame = CFRAME | |
| 404 | coroutine.resume(coroutine.create(function(PART) | |
| 405 | for i = 1, WAIT do | |
| 406 | Swait() | |
| 407 | mesh.Scale = mesh.Scale + GROW | |
| 408 | if DOESROT == true then | |
| 409 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 410 | end | |
| 411 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 412 | if wave.Transparency > 0.99 then | |
| 413 | wave:remove() | |
| 414 | end | |
| 415 | end | |
| 416 | end)) | |
| 417 | end | |
| 418 | ||
| 419 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 420 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
| 421 | local mesh = IT("SpecialMesh",wave)
| |
| 422 | mesh.MeshType = "Sphere" | |
| 423 | mesh.Scale = SIZE | |
| 424 | mesh.Offset = VT(0,0,0) | |
| 425 | wave.CFrame = CFRAME | |
| 426 | coroutine.resume(coroutine.create(function(PART) | |
| 427 | for i = 1, WAIT do | |
| 428 | Swait() | |
| 429 | mesh.Scale = mesh.Scale + GROW | |
| 430 | wave.Transparency = wave.Transparency + (1/WAIT) | |
| 431 | if wave.Transparency > 0.99 then | |
| 432 | wave:remove() | |
| 433 | end | |
| 434 | end | |
| 435 | end)) | |
| 436 | end | |
| 437 | ||
| 438 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 439 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
| 440 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
| |
| 441 | wave.CFrame = CFRAME | |
| 442 | coroutine.resume(coroutine.create(function(PART) | |
| 443 | for i = 1, WAIT do | |
| 444 | Swait() | |
| 445 | mesh.Scale = mesh.Scale * GROW | |
| 446 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 447 | if wave.Transparency > 0.99 then | |
| 448 | wave:remove() | |
| 449 | end | |
| 450 | end | |
| 451 | end)) | |
| 452 | end | |
| 453 | ||
| 454 | function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 455 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true) | |
| 456 | local mesh = IT("BlockMesh",wave)
| |
| 457 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
| 458 | coroutine.resume(coroutine.create(function(PART) | |
| 459 | for i = 1, WAIT do | |
| 460 | Swait() | |
| 461 | mesh.Scale = mesh.Scale + GROW | |
| 462 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
| 463 | wave.Transparency = wave.Transparency + (1/WAIT) | |
| 464 | if wave.Transparency > 0.99 then | |
| 465 | wave:remove() | |
| 466 | end | |
| 467 | end | |
| 468 | end)) | |
| 469 | end | |
| 470 | ||
| 471 | function MakeForm(PART,TYPE) | |
| 472 | if TYPE == "Cyl" then | |
| 473 | local MSH = IT("CylinderMesh",PART)
| |
| 474 | elseif TYPE == "Ball" then | |
| 475 | local MSH = IT("SpecialMesh",PART)
| |
| 476 | MSH.MeshType = "Sphere" | |
| 477 | elseif TYPE == "Wedge" then | |
| 478 | local MSH = IT("SpecialMesh",PART)
| |
| 479 | MSH.MeshType = "Wedge" | |
| 480 | end | |
| 481 | end | |
| 482 | ||
| 483 | function CheckTableForString(Table, String) | |
| 484 | for i, v in pairs(Table) do | |
| 485 | if string.find(string.lower(String), string.lower(v)) then | |
| 486 | return true | |
| 487 | end | |
| 488 | end | |
| 489 | return false | |
| 490 | end | |
| 491 | ||
| 492 | function CheckIntangible(Hit) | |
| 493 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
| |
| 494 | if Hit and Hit.Parent then | |
| 495 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
| |
| 496 | return true | |
| 497 | end | |
| 498 | end | |
| 499 | return false | |
| 500 | end | |
| 501 | ||
| 502 | Debris = game:GetService("Debris")
| |
| 503 | ||
| 504 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
| 505 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
| 506 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 507 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
| |
| 508 | if RayHit and CheckIntangible(RayHit) then | |
| 509 | if DelayIfHit then | |
| 510 | wait() | |
| 511 | end | |
| 512 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
| 513 | end | |
| 514 | return RayHit, RayPos, RayNormal | |
| 515 | end | |
| 516 | ||
| 517 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
| 518 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList)
| |
| 519 | end | |
| 520 | ||
| 521 | function turnto(position) | |
| 522 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 523 | end | |
| 524 | ||
| 525 | --//=================================\\ | |
| 526 | --|| SPEECH | |
| 527 | --\\=================================// | |
| 528 | ||
| 529 | function chatfunc(text,waitt) | |
| 530 | local chat = coroutine.wrap(function() | |
| 531 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 532 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 533 | end | |
| 534 | local naeeym2 = Instance.new("BillboardGui",Character)
| |
| 535 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 536 | naeeym2.StudsOffset = Vector3.new(0,5,0) | |
| 537 | naeeym2.Adornee = Character.Head | |
| 538 | naeeym2.Name = "TalkingBillBoard" | |
| 539 | naeeym2.AlwaysOnTop = true | |
| 540 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 541 | tecks2.BackgroundTransparency = 1 | |
| 542 | tecks2.BorderSizePixel = 0 | |
| 543 | tecks2.Text = "" | |
| 544 | tecks2.Font = "SciFi" | |
| 545 | tecks2.TextSize = 30 | |
| 546 | tecks2.TextStrokeTransparency = 1 | |
| 547 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
| 548 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 549 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 550 | for i = 1,string.len(text),1 do | |
| 551 | tecks2.Text = string.sub(text,1,i) | |
| 552 | Swait() | |
| 553 | end | |
| 554 | wait(waitt) | |
| 555 | coroutine.resume(coroutine.create(function() | |
| 556 | for i = 1, 10 do | |
| 557 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
| 558 | Swait() | |
| 559 | end | |
| 560 | naeeym2:Destroy() | |
| 561 | end)) | |
| 562 | end) | |
| 563 | chat() | |
| 564 | end | |
| 565 | ||
| 566 | --//=================================\\ | |
| 567 | --|| WEAPON CREATION | |
| 568 | --\\=================================// | |
| 569 | ||
| 570 | local EyeSizes={
| |
| 571 | NumberSequenceKeypoint.new(0,1,0), | |
| 572 | NumberSequenceKeypoint.new(1,0,0) | |
| 573 | } | |
| 574 | local EyeTrans={
| |
| 575 | NumberSequenceKeypoint.new(0,0.8,0), | |
| 576 | NumberSequenceKeypoint.new(1,1,0) | |
| 577 | } | |
| 578 | local PE=Instance.new("ParticleEmitter",art)
| |
| 579 | PE.LightEmission=.8 | |
| 580 | PE.Color = ColorSequence.new(BRICKC("Really red").Color)
| |
| 581 | PE.Size=NumberSequence.new(EyeSizes) | |
| 582 | PE.Transparency=NumberSequence.new(EyeTrans) | |
| 583 | PE.Lifetime=NumberRange.new(0.35,1.5) | |
| 584 | PE.Rotation=NumberRange.new(0,360) | |
| 585 | PE.Rate=999 | |
| 586 | PE.VelocitySpread = 10000 | |
| 587 | PE.Acceleration = Vector3.new(0,0,0) | |
| 588 | PE.Drag = 5 | |
| 589 | PE.Speed = NumberRange.new(0,0,0) | |
| 590 | PE.Texture="http://www.roblox.com/asset/?id=1351966707" | |
| 591 | PE.ZOffset = -1.5 | |
| 592 | PE.Name = "PE" | |
| 593 | PE.Enabled = false | |
| 594 | ||
| 595 | function particles(art) | |
| 596 | local PARTICLES = PE:Clone() | |
| 597 | PARTICLES.Parent = art | |
| 598 | end | |
| 599 | ||
| 600 | local HANDFOLDER = IT("Folder",Weapon)
| |
| 601 | HANDFOLDER.Name = "Hands" | |
| 602 | ||
| 603 | for i = 1, 3 do | |
| 604 | local Palm = CreatePart(3, HANDFOLDER, "SmoothPlastic", 0, 1, "Really red", "HandPart", VT(1,1,1),false) | |
| 605 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", Palm, Torso, Palm, CF(-1,3,2) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 606 | CreateMesh("SpecialMesh", Palm, "FileMesh", "546760018", "", VT(5,5,5), VT(0,0,0))
| |
| 607 | local Palm2 = CreatePart(3, HANDFOLDER, "SmoothPlastic", 0, 1, "Really red", "HandPart", VT(1,1,1)*1.2,false) | |
| 608 | local HandleWeld2 = CreateWeldOrSnapOrMotor("Weld", Palm2, Palm, Palm2, CF(0.2,1.25,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 609 | MakeForm(Palm2,"Ball") | |
| 610 | particles(Palm2) | |
| 611 | ||
| 612 | local EN = IT("BoolValue",Palm)
| |
| 613 | EN.Name = "IsEnabled" | |
| 614 | EN.Value = true | |
| 615 | table.insert(HANDS,{Palm,HandleWeld})
| |
| 616 | end | |
| 617 | ||
| 618 | local HandlePart = CreatePart(3, Character, "SmoothPlastic", 0, 1, "Really red", "Hood", VT(1,1,1),false) | |
| 619 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Torso, HandlePart, CF(0,0,0.55) * ANGLES(RAD(-190), RAD(180), RAD(0)), CF(0, 0, 0))
| |
| 620 | CreateMesh("SpecialMesh", HandlePart, "FileMesh", "63717022", "", VT(1.5,2.7,1), VT(0,0.8,0))
| |
| 621 | ||
| 622 | local HandlePart = CreatePart(3, Character, "SmoothPlastic", 0, 1, "Really red", "Hood", VT(1,1,1),false) | |
| 623 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 624 | CreateMesh("SpecialMesh", HandlePart, "FileMesh", "85855767", "", VT(1,1,1), VT(0,-0.25,0))
| |
| 625 | ||
| 626 | local HandlePart = CreatePart(3, Character, "SmoothPlastic", 0, 1, "Really red", "Hood", VT(1,1,1),false) | |
| 627 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0,-0.8,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 628 | CreateMesh("SpecialMesh", HandlePart, "FileMesh", "57780106", "", VT(1,1,1), VT(0,0,0))
| |
| 629 | ||
| 630 | local HandlePart = CreatePart(3, Character, "SmoothPlastic", 0, 1, "Really red", "Hood", VT(1,1,1),false) | |
| 631 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 632 | CreateMesh("SpecialMesh", HandlePart, "FileMesh", "57780106", "", VT(1,1,1), VT(0,0,0))
| |
| 633 | ||
| 634 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Handle", VT(0.3,0.02,0.1)*1.3,false) | |
| 635 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0.25, 0.15, -0.5) * ANGLES(RAD(-15), RAD(-25), RAD(0)), CF(0, 0, 0))
| |
| 636 | MakeForm(HandlePart,"Ball") | |
| 637 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Handle", VT(0.3,0.02,0.1)*1.3,false) | |
| 638 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(-0.25, 0.15, -0.5) * ANGLES(RAD(-15), RAD(25), RAD(0)), CF(0, 0, 0))
| |
| 639 | MakeForm(HandlePart,"Ball") | |
| 640 | ||
| 641 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Handle", VT(0,0.2,0.2), false) | |
| 642 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0, 0, -0.55) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 643 | MakeForm(HandlePart,"Ball") | |
| 644 | ||
| 645 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Handle", VT(0.5,0,0.2)*1.3,false) | |
| 646 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0, -0.2, -0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 647 | MakeForm(HandlePart,"Ball") | |
| 648 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Handle", VT(0.01,0.2,0.2)*1.4,false) | |
| 649 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0, -0.2, -0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 650 | MakeForm(HandlePart,"Ball") | |
| 651 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Handle", VT(0.01,0.2,0.2)*1.4,false) | |
| 652 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0.05, -0.2, -0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 653 | MakeForm(HandlePart,"Ball") | |
| 654 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Handle", VT(0.01,0.2,0.2)*1.4,false) | |
| 655 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(-0.05, -0.2, -0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 656 | MakeForm(HandlePart,"Ball") | |
| 657 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Handle", VT(0.01,0.19,0.2)*1.4,false) | |
| 658 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0.1, -0.2, -0.49) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 659 | MakeForm(HandlePart,"Ball") | |
| 660 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Handle", VT(0.01,0.19,0.2)*1.4,false) | |
| 661 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(-0.1, -0.2, -0.49) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 662 | MakeForm(HandlePart,"Ball") | |
| 663 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Handle", VT(0.01,0.175,0.2)*1.4,false) | |
| 664 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0.15, -0.2, -0.48) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 665 | MakeForm(HandlePart,"Ball") | |
| 666 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Handle", VT(0.01,0.175,0.2)*1.4,false) | |
| 667 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(-0.15, -0.2, -0.48) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 668 | MakeForm(HandlePart,"Ball") | |
| 669 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Handle", VT(0.01,0.15,0.2)*1.4,false) | |
| 670 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0.2, -0.2, -0.465) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 671 | MakeForm(HandlePart,"Ball") | |
| 672 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 1, "Really red", "Handle", VT(0.01,0.15,0.2)*1.4,false) | |
| 673 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(-0.2, -0.2, -0.465) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 674 | MakeForm(HandlePart,"Ball") | |
| 675 | ||
| 676 | local SCYTHE = IT("Model",Character)
| |
| 677 | SCYTHE.Name = "SCYTHE" | |
| 678 | ||
| 679 | local B = SCYTHE | |
| 680 | local HandlePart = CreatePart(3, B, "Neon", 0, 1, "Really red", "HandPart", VT(0.3,0.3,0.3),false) | |
| 681 | particles(HandlePart) | |
| 682 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", Character, Torso, HandlePart, CF(0,1,1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 683 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.2,3.5,0.2),false) | |
| 684 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0,-1.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 685 | MakeForm(part,"Ball") | |
| 686 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.3,1,0.3),false) | |
| 687 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 688 | MakeForm(part,"Ball") | |
| 689 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.25,1,0.25),false) | |
| 690 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0,-0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 691 | MakeForm(part,"Ball") | |
| 692 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.15,2,0.15),false) | |
| 693 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0,0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 694 | MakeForm(part,"Ball") | |
| 695 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.15,0.55,0.15),false) | |
| 696 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.2,0.75) * ANGLES(RAD(40), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 697 | MakeForm(part,"Ball") | |
| 698 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.15,0.5,0.15),false) | |
| 699 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.15,1) * ANGLES(RAD(40), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 700 | MakeForm(part,"Ball") | |
| 701 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.15,0.45,0.15),false) | |
| 702 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.125,1.25) * ANGLES(RAD(40), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 703 | MakeForm(part,"Ball") | |
| 704 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.3,2,0.3),false) | |
| 705 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0,-2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 706 | MakeForm(part,"Ball") | |
| 707 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.3,0.8,0.3),false) | |
| 708 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.2,-3.2) * ANGLES(RAD(120), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 709 | MakeForm(part,"Ball") | |
| 710 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.3,0.3,0.3),false) | |
| 711 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.025,-2.8) * ANGLES(RAD(120), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 712 | MakeForm(part,"Ball") | |
| 713 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.15,0.8,0.15),false) | |
| 714 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.5,-3.5) * ANGLES(RAD(160), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 715 | MakeForm(part,"Ball") | |
| 716 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.2,0.8,0.2),false) | |
| 717 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.85,-3.8) * ANGLES(RAD(120), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 718 | MakeForm(part,"Ball") | |
| 719 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.4,1.3,0.8),false) | |
| 720 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.6,-4.2) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 721 | MakeForm(part,"Ball") | |
| 722 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.3,1.3,0.6),false) | |
| 723 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.3,-4.3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 724 | MakeForm(part,"Ball") | |
| 725 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.2,2,0.4),false) | |
| 726 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.2,-4.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 727 | MakeForm(part,"Ball") | |
| 728 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.1,2,0.4),false) | |
| 729 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,-0.6,-4.1) * ANGLES(RAD(-25), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 730 | MakeForm(part,"Ball") | |
| 731 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.05,2,0.2),false) | |
| 732 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,-1.6,-3.475) * ANGLES(RAD(-45), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 733 | MakeForm(part,"Ball") | |
| 734 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.3,1.3,0.6),false) | |
| 735 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.5,-4) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 736 | MakeForm(part,"Ball") | |
| 737 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.2,1,0.4),false) | |
| 738 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,-0.1,-4) * ANGLES(RAD(-35), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 739 | MakeForm(part,"Ball") | |
| 740 | local part = CreatePart(3, B, "Granite", 0, 1, "Really red", "ScythePart", VT(0.15,1,0.2),false) | |
| 741 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,-0.45,-3.8) * ANGLES(RAD(-55), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 742 | MakeForm(part,"Ball") | |
| 743 | local part = CreatePart(3, B, "SmoothPlastic", 0, 1, "Really red", "ScythePart", VT(0.1,0.5,0.1),false) | |
| 744 | local weld = CreateWeldOrSnapOrMotor("Weld", part, HandlePart, part, CF(0,0.1,-3.3) * ANGLES(RAD(-25), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 745 | MakeForm(part,"Ball") | |
| 746 | local HitBox = CreatePart(3, B, "Neon", 0, 1, "Really red", "Hitbox", VT(5,1.3,0.6),false) | |
| 747 | local weld = CreateWeldOrSnapOrMotor("Weld", HitBox, HandlePart, HitBox, CF(0,0,-3) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 748 | ||
| 749 | for _, c in pairs(SCYTHE:GetChildren()) do | |
| 750 | if c.ClassName == "Part" then | |
| 751 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 752 | end | |
| 753 | end | |
| 754 | ||
| 755 | Weapon.Parent = Character | |
| 756 | ||
| 757 | Humanoid.Died:connect(function() | |
| 758 | KillChildren(Character) | |
| 759 | HANDS = {}
| |
| 760 | HANDFOLDER:ClearAllChildren() | |
| 761 | SCYTHE:ClearAllChildren() | |
| 762 | for i = 1, 100 do | |
| 763 | Swait() | |
| 764 | sick.Volume = sick.Volume - 0.02 | |
| 765 | end | |
| 766 | end) | |
| 767 | ||
| 768 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
| 769 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
| 770 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
| 771 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
| 772 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
| 773 | ||
| 774 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Warp", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 0, "Text 1") | |
| 775 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Deadly Dash", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 0, "Text 2") | |
| 776 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Fatal Grab", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 0, "Text 3") | |
| 777 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Fatal Wave", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 0, "Text 4") | |
| 778 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Reap", SKILLTEXTCOLOR, 8, "Antique", 0, 2, 0, "Text 5") | |
| 779 | ||
| 780 | --//=================================\\ | |
| 781 | --|| DAMAGING | |
| 782 | --\\=================================// | |
| 783 | ||
| 784 | function KillChildren(v) | |
| 785 | v:BreakJoints() | |
| 786 | for _, c in pairs(v:GetChildren()) do | |
| 787 | if c.ClassName == "Part" or c.ClassName == "MesPart" then | |
| 788 | if c.Transparency < 1 then | |
| 789 | if c:FindFirstChildOfClass("Decal") then
| |
| 790 | c:FindFirstChildOfClass("Decal"):remove()
| |
| 791 | end | |
| 792 | particles(c) | |
| 793 | c.PE.Enabled = true | |
| 794 | c.Parent = Effects | |
| 795 | c.CanCollide = false | |
| 796 | c.Material = "Neon" | |
| 797 | c.Color = C3(1,0,0) | |
| 798 | c.Transparency = 0.5 | |
| 799 | local grav = Instance.new("BodyPosition",c)
| |
| 800 | grav.P = 20000 | |
| 801 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 802 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
| 803 | grav.Name = "GravityForce" | |
| 804 | coroutine.resume(coroutine.create(function() | |
| 805 | for i = 1, 50 do | |
| 806 | Swait() | |
| 807 | c.Transparency = c.Transparency + 0.01 | |
| 808 | end | |
| 809 | c.PE.Enabled = false | |
| 810 | Debris:AddItem(c,2) | |
| 811 | end)) | |
| 812 | end | |
| 813 | end | |
| 814 | end | |
| 815 | end | |
| 816 | ||
| 817 | function killnearest(position,range) | |
| 818 | for i,v in ipairs(workspace:GetChildren()) do | |
| 819 | local body = v:GetChildren() | |
| 820 | for part = 1, #body do | |
| 821 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
| 822 | if(body[part].Position - position).Magnitude < range then | |
| 823 | if v.ClassName == "Model" then | |
| 824 | KillChildren(v) | |
| 825 | end | |
| 826 | end | |
| 827 | end | |
| 828 | end | |
| 829 | end | |
| 830 | end | |
| 831 | ||
| 832 | --//=================================\\ | |
| 833 | --|| ATTACK FUNCTIONS AND STUFF | |
| 834 | --\\=================================// | |
| 835 | ||
| 836 | function Intro() | |
| 837 | ATTACK = true | |
| 838 | Rooted = true | |
| 839 | local HITFLOOR, HITPOS = Raycast(VT(0,250,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 500, Character) | |
| 840 | RootPart.CFrame = CF(HITPOS+VT(0,3,0)) | |
| 841 | local ORB = CreatePart(3, Head, "Cobblestone", 0, 0, "Really red", "Seal", VT(1,1,1)) | |
| 842 | MakeForm(ORB,"Ball") | |
| 843 | local ORB2 = CreatePart(3, Head, "Neon", 0, 0.9, "Really red", "Seal", VT(1,1,1)*1.1) | |
| 844 | MakeForm(ORB2,"Ball") | |
| 845 | ORB.CFrame = CF(HITPOS+VT(0,3,0)) | |
| 846 | ORB2.CFrame = CF(HITPOS+VT(0,3,0)) | |
| 847 | for _, c in pairs(Character:GetChildren()) do | |
| 848 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
| 849 | c.Transparency = 1 | |
| 850 | end | |
| 851 | end | |
| 852 | for i=0, 1, 0.1 / Animation_Speed do | |
| 853 | Swait() | |
| 854 | ORB.CFrame = CF(HITPOS+VT(0,3 + 0.15 * COS(SINE / 12),0)) | |
| 855 | ORB2.CFrame = ORB.CFrame | |
| 856 | for _, c in pairs(Character:GetChildren()) do | |
| 857 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
| 858 | c.Transparency = 1 | |
| 859 | elseif c.ClassName == "Accessory" then | |
| 860 | c:remove() | |
| 861 | end | |
| 862 | end | |
| 863 | for _, c in pairs(SCYTHE:GetChildren()) do | |
| 864 | if c.ClassName == "Part" then | |
| 865 | c.Transparency = 1 | |
| 866 | c.Color = C3(0,0,0) | |
| 867 | end | |
| 868 | end | |
| 869 | Player:ClearCharacterAppearance() | |
| 870 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 871 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 872 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.75, 0.75, -1) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 873 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.75, 0.25, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 874 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 875 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 876 | end | |
| 877 | repeat | |
| 878 | Swait() | |
| 879 | ORB.CFrame = CF(HITPOS+VT(0,3 + 0.15 * COS(SINE / 12),0)) | |
| 880 | ORB2.CFrame = ORB.CFrame | |
| 881 | until sick.TimePosition > 12 | |
| 882 | CreateSound("134978657", Effects, 5, 1)
| |
| 883 | repeat | |
| 884 | Swait() | |
| 885 | if MRANDOM(1,5) == 1 then | |
| 886 | local SPHERE = CreatePart(3, Head, "Neon", 0, 0, "Really red", "Magic", VT(1,1,1)*MRANDOM(2,35)/10) | |
| 887 | SPHERE.CFrame = CF(HITPOS) * CF(MRANDOM(-15,15),-5,MRANDOM(-15,15)) | |
| 888 | MakeForm(SPHERE,"Ball") | |
| 889 | coroutine.resume(coroutine.create(function() | |
| 890 | for i = 1, 100 do | |
| 891 | Swait() | |
| 892 | SPHERE.CFrame = SPHERE.CFrame * CF(0,0.3,0) | |
| 893 | SPHERE.Transparency = (i/100) | |
| 894 | end | |
| 895 | SPHERE:remove() | |
| 896 | end)) | |
| 897 | end | |
| 898 | ORB.CFrame = CF(HITPOS+VT(0,3 + 0.15 * COS(SINE / 12),0)) | |
| 899 | ORB2.CFrame = ORB.CFrame | |
| 900 | CreateRing(VT(0,0,0.1),false,0,15,CF(HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0)),"Really red",VT(5,5,0)) | |
| 901 | until sick.TimePosition > 24 | |
| 902 | CreateSound("135017578", Effects, 5, 1)
| |
| 903 | repeat | |
| 904 | Swait() | |
| 905 | if MRANDOM(1,5) == 1 then | |
| 906 | local SPHERE = CreatePart(3, Head, "Neon", 0, 0, "Really red", "Magic", VT(1,1,1)*MRANDOM(2,35)/10) | |
| 907 | SPHERE.CFrame = CF(HITPOS) * CF(MRANDOM(-15,15),-5,MRANDOM(-15,15)) | |
| 908 | MakeForm(SPHERE,"Ball") | |
| 909 | coroutine.resume(coroutine.create(function() | |
| 910 | for i = 1, 100 do | |
| 911 | Swait() | |
| 912 | SPHERE.CFrame = SPHERE.CFrame * CF(0,0.3,0) | |
| 913 | SPHERE.Transparency = (i/100) | |
| 914 | end | |
| 915 | SPHERE:remove() | |
| 916 | end)) | |
| 917 | end | |
| 918 | ORB.CFrame = CF(HITPOS+VT(0,3 + 0.15 * COS(SINE / 12),0)) | |
| 919 | ORB2.CFrame = ORB.CFrame | |
| 920 | if MRANDOM(1,5) == 1 then | |
| 921 | CreateRing(VT(0,0,0),false,0,MRANDOM(150,250),CF(ORB.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Maroon",VT(0.2,0.2,0)) | |
| 922 | end | |
| 923 | if MRANDOM(1,5) == 1 then | |
| 924 | CreateRing(VT(0,0,0),false,0,MRANDOM(15,25),CF(ORB.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Maroon",VT(3,3,0)) | |
| 925 | end | |
| 926 | CreateRing(VT(0,0,0.1),false,0,15,CF(HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0)),"Really red",VT(5,5,0)) | |
| 927 | until sick.TimePosition > 34.5 | |
| 928 | repeat | |
| 929 | Swait() | |
| 930 | ORB.CFrame = CF(HITPOS+VT(0,3 + 0.15 * COS(SINE / 12),0)) | |
| 931 | ORB2.CFrame = ORB.CFrame | |
| 932 | MagicSphere(VT(0,0,0),15,ORB.CFrame,"Really red",VT(1,15,1)) | |
| 933 | if MRANDOM(1,5) == 1 then | |
| 934 | CreateRing(VT(0,0,0),false,0,MRANDOM(150,250),CF(ORB.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Maroon",VT(0.2,0.2,0)) | |
| 935 | end | |
| 936 | CreateRing(VT(0,0,0.1),false,0,15,CF(HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0)),"Really red",VT(5,5,0)) | |
| 937 | until sick.TimePosition > 36 | |
| 938 | MagicSphere(VT(0,0,0),15,CF(HITPOS),"Really red",VT(5,5,5)) | |
| 939 | MagicSphere(VT(0,0,0),15,CF(HITPOS),"Really red",VT(2.5,2.5,2.5)) | |
| 940 | MagicSphere(VT(0,0,0),15,CF(HITPOS),"Really red",VT(0.5,0.5,0.5)) | |
| 941 | CreateSound("2691586", Effects, 5, 1)
| |
| 942 | CreateSound("181384451", Effects, 10, 0.6)
| |
| 943 | ORB:remove() | |
| 944 | ORB2:remove() | |
| 945 | tecks2.TextTransparency = 0 | |
| 946 | repeat | |
| 947 | Swait() | |
| 948 | for _, c in pairs(Character:GetChildren()) do | |
| 949 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
| 950 | c.Transparency = 0 | |
| 951 | c.Color = C3(0,0,0) | |
| 952 | elseif c.ClassName == "Accessory" then | |
| 953 | c:remove() | |
| 954 | end | |
| 955 | end | |
| 956 | for _, c in pairs(Weapon:GetChildren()) do | |
| 957 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
| 958 | c.Transparency = 0 | |
| 959 | end | |
| 960 | end | |
| 961 | for _, c in pairs(HANDFOLDER:GetChildren()) do | |
| 962 | if c.ClassName == "Part" then | |
| 963 | c.Transparency = 0 | |
| 964 | c.Color = C3(0,0,0) | |
| 965 | end | |
| 966 | end | |
| 967 | CreateRing(VT(0,0,0.1),false,0,15,CF(HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0)),"Really red",VT(5,5,0)) | |
| 968 | --CreateRing(VT(0,0,0),false,0,150,CF(HITPOS)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(0.2,0.2,0)) | |
| 969 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 3) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 970 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 971 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 972 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 973 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 974 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 975 | until sick.TimePosition > 42 | |
| 976 | HandleWeld.Part0 = RightArm | |
| 977 | for i=0, 1, 0.1 / Animation_Speed do | |
| 978 | Swait() | |
| 979 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1) | |
| 980 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 981 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 982 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 983 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 984 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 985 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 986 | end | |
| 987 | for i = 1, 100 do | |
| 988 | Swait() | |
| 989 | CreateRing(VT(0,0,0),false,0,150,HitBox.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(0.2,0.2,0)) | |
| 990 | for _, c in pairs(SCYTHE:GetChildren()) do | |
| 991 | if c.ClassName == "Part" then | |
| 992 | if c.Material ~= Enum.Material.Neon then | |
| 993 | c.Transparency = c.Transparency - 0.01 | |
| 994 | end | |
| 995 | c.Color = C3(0,0,0) | |
| 996 | end | |
| 997 | end | |
| 998 | end | |
| 999 | HandleWeld.Part0 = Torso | |
| 1000 | TRANSFORMED = true | |
| 1001 | ATTACK = false | |
| 1002 | Rooted = false | |
| 1003 | end | |
| 1004 | ||
| 1005 | function AttackTemplate() | |
| 1006 | ATTACK = true | |
| 1007 | Rooted = false | |
| 1008 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
| 1009 | HandleWeld.Part0 = RightArm | |
| 1010 | HandleWeld.C0 = CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 1011 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
| 1012 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1013 | Swait() | |
| 1014 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1015 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1016 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1017 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1018 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1019 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1020 | end | |
| 1021 | HandleWeld.Part0 = Torso | |
| 1022 | ATTACK = false | |
| 1023 | Rooted = false | |
| 1024 | end | |
| 1025 | ||
| 1026 | function Hit() | |
| 1027 | local HAND = HANDS[MRANDOM(1,#HANDS)] | |
| 1028 | if HAND[1].IsEnabled.Value == true then | |
| 1029 | HAND[1].IsEnabled.Value = false | |
| 1030 | local SOUND = CreateSound("rbxasset://sounds/swordlunge.wav", HAND[1], 2, 0.6)
| |
| 1031 | SOUND.SoundId = "rbxasset://sounds/swordlunge.wav" | |
| 1032 | for i = 1, 4 do | |
| 1033 | Swait() | |
| 1034 | killnearest(HAND[1].Position,5) | |
| 1035 | HAND[2].C0 = Clerp(HAND[2].C0, CF(0,0,-6) * ANGLES(RAD(90), RAD(0), RAD(45)), 2 / Animation_Speed) | |
| 1036 | end | |
| 1037 | HAND[1].IsEnabled.Value = true | |
| 1038 | end | |
| 1039 | end | |
| 1040 | ||
| 1041 | function Warp() | |
| 1042 | ATTACK = true | |
| 1043 | Rooted = true | |
| 1044 | UNANCHOR = false | |
| 1045 | RootPart.Anchored = true | |
| 1046 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
| 1047 | HandleWeld.Part0 = RightArm | |
| 1048 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1) | |
| 1049 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
| 1050 | for i=0, 0.5, 0.1 / Animation_Speed do | |
| 1051 | Swait() | |
| 1052 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
| 1053 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Maroon",VT(0.5,0,0.5)) | |
| 1054 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 2) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2) | |
| 1055 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1056 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1057 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.8) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1058 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.8) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1059 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1060 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1061 | end | |
| 1062 | for i = 1, 10 do | |
| 1063 | Swait() | |
| 1064 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
| 1065 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Really red",VT(0.5,0,0.5)) | |
| 1066 | for _, c in pairs(HANDFOLDER:GetChildren()) do | |
| 1067 | if c.ClassName == "Part" then | |
| 1068 | c.Transparency = c.Transparency + 0.1 | |
| 1069 | end | |
| 1070 | end | |
| 1071 | end | |
| 1072 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1073 | Swait() | |
| 1074 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
| 1075 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Maroon",VT(0.5,0,0.5)) | |
| 1076 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 2) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2) | |
| 1077 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -25) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1078 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1079 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.8) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1080 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.8) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1081 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1082 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1083 | end | |
| 1084 | local ORIGIN = RootPart.Position | |
| 1085 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),ORIGIN) | |
| 1086 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1087 | Swait() | |
| 1088 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
| 1089 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Maroon",VT(0.5,0,0.5)) | |
| 1090 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 2) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2) | |
| 1091 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1092 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1093 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.8) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1094 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.8) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1095 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1096 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1097 | end | |
| 1098 | UNANCHOR = true | |
| 1099 | RootPart.Anchored = false | |
| 1100 | for i = 1, 10 do | |
| 1101 | Swait() | |
| 1102 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
| 1103 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Really red",VT(0.5,0,0.5)) | |
| 1104 | for _, c in pairs(HANDFOLDER:GetChildren()) do | |
| 1105 | if c.ClassName == "Part" then | |
| 1106 | c.Transparency = c.Transparency - 0.1 | |
| 1107 | end | |
| 1108 | end | |
| 1109 | end | |
| 1110 | HandleWeld.Part0 = Torso | |
| 1111 | ATTACK = false | |
| 1112 | Rooted = false | |
| 1113 | end | |
| 1114 | ||
| 1115 | function DeathlyDash() | |
| 1116 | ATTACK = true | |
| 1117 | Rooted = false | |
| 1118 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
| 1119 | HandleWeld.Part0 = RightArm | |
| 1120 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1) | |
| 1121 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
| 1122 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1123 | Swait() | |
| 1124 | turnto(Mouse.Hit.p) | |
| 1125 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(-74), RAD(0)), 0.2) | |
| 1126 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.5 / Animation_Speed) | |
| 1127 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.5 / Animation_Speed) | |
| 1128 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1129 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.2, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1130 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1131 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1132 | end | |
| 1133 | local TRAILS = {}
| |
| 1134 | local FOUND = false | |
| 1135 | for i = 1, 75 do | |
| 1136 | Swait() | |
| 1137 | local TRAIL = Character:Clone() | |
| 1138 | for _, c in pairs(TRAIL:GetChildren()) do | |
| 1139 | if c.ClassName == "Part" then | |
| 1140 | c.Anchored = true | |
| 1141 | c.Color = C3(1,0,0) | |
| 1142 | c.Transparency = 0.5 | |
| 1143 | c.Material = "Neon" | |
| 1144 | c.CanCollide = false | |
| 1145 | else | |
| 1146 | c:remove() | |
| 1147 | end | |
| 1148 | end | |
| 1149 | TRAIL.Parent = Effects | |
| 1150 | table.insert(TRAILS,TRAIL) | |
| 1151 | Debris:AddItem(TRAIL,0.08) | |
| 1152 | for _, c in pairs(workspace:GetChildren()) do | |
| 1153 | if c.ClassName == "Model" then | |
| 1154 | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
| |
| 1155 | local HUMANOID = c:FindFirstChildOfClass("Humanoid")
| |
| 1156 | local TORSO = (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso"))
| |
| 1157 | if (TORSO.Position - (Torso.CFrame*CF(0,0,-8).p)).Magnitude < 15 then | |
| 1158 | killnearest(TORSO.Position,25) | |
| 1159 | FOUND = true | |
| 1160 | end | |
| 1161 | end | |
| 1162 | end | |
| 1163 | end | |
| 1164 | if FOUND == true then | |
| 1165 | for i = 1, 65 do | |
| 1166 | killnearest(Torso.CFrame*CF(0,0,-8).p,25) | |
| 1167 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-1) | |
| 1168 | end | |
| 1169 | local SOUND = CreateSound("62339698", HitBox, 10, 0.3)
| |
| 1170 | Slice(2,25,RootPart.CFrame *CF(0,0,-5)*ANGLES(RAD(90),RAD(90),RAD(0)),"Really red",1) | |
| 1171 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1172 | Swait() | |
| 1173 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(-74), RAD(0)) * ANGLES(RAD(-70), RAD(0), RAD(0)), 1) | |
| 1174 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(25)), 3 / Animation_Speed) | |
| 1175 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 3 / Animation_Speed) | |
| 1176 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
| 1177 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
| 1178 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 1179 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed) | |
| 1180 | end | |
| 1181 | break | |
| 1182 | end | |
| 1183 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-2.5) | |
| 1184 | end | |
| 1185 | HandleWeld.Part0 = Torso | |
| 1186 | ATTACK = false | |
| 1187 | Rooted = false | |
| 1188 | end | |
| 1189 | ||
| 1190 | function FatalGrab() | |
| 1191 | Rooted = true | |
| 1192 | local HAND = HANDS[MRANDOM(1,#HANDS)] | |
| 1193 | if HAND[1].IsEnabled.Value == true then | |
| 1194 | HAND[1].IsEnabled.Value = false | |
| 1195 | HAND[1].CanCollide = true | |
| 1196 | local GRABBED = false | |
| 1197 | local GRABTARGET = nil | |
| 1198 | local HUMAN = nil | |
| 1199 | local HIT = HAND[1].Touched:Connect(function(hit) | |
| 1200 | if hit.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1201 | local TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
| |
| 1202 | if TORS ~= nil then | |
| 1203 | GRABTARGET = TORS | |
| 1204 | GRABBED = true | |
| 1205 | HUMAN = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1206 | end | |
| 1207 | end | |
| 1208 | end) | |
| 1209 | local SOUND = CreateSound("rbxasset://sounds/swordlunge.wav", HAND[1], 2, 0.6)
| |
| 1210 | SOUND.SoundId = "rbxasset://sounds/swordlunge.wav" | |
| 1211 | for i = 1, 4 do | |
| 1212 | Swait() | |
| 1213 | turnto(Mouse.Hit.p) | |
| 1214 | if GRABBED == true then | |
| 1215 | break | |
| 1216 | end | |
| 1217 | HAND[2].C0 = Clerp(HAND[2].C0, CF(0,5,-20) * ANGLES(RAD(90), RAD(0), RAD(45)), 2 / Animation_Speed) | |
| 1218 | end | |
| 1219 | if GRABBED == true then | |
| 1220 | UNANCHOR = false | |
| 1221 | RootPart.Anchored = true | |
| 1222 | HUMAN.PlatformStand = true | |
| 1223 | GRABTARGET.CFrame = HAND[1].CFrame*ANGLES(RAD(-90),RAD(0),RAD(0)) | |
| 1224 | local WELD = weldBetween(HAND[1],GRABTARGET) | |
| 1225 | VALUE2 = true | |
| 1226 | for i = 1, 30 do | |
| 1227 | Swait() | |
| 1228 | HUMAN.PlatformStand = true | |
| 1229 | HAND[2].C0 = Clerp(HAND[2].C0, CF(0,7,-20) * ANGLES(RAD(75), RAD(0), RAD(45)), 0.5 / Animation_Speed) | |
| 1230 | end | |
| 1231 | for i = 1, 50 do | |
| 1232 | Swait() | |
| 1233 | HUMAN.PlatformStand = true | |
| 1234 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(15, 7, -19) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.2 / Animation_Speed) | |
| 1235 | HAND[2].C0 = Clerp(HAND[2].C0, CF(0+MRANDOM(-2,2)/5,7+MRANDOM(-2,2)/5,-20+MRANDOM(-2,2)/5) * ANGLES(RAD(75), RAD(0), RAD(45)), 3 / Animation_Speed) | |
| 1236 | end | |
| 1237 | local SOUND = CreateSound("62339698", HitBox, 10, 0.3)
| |
| 1238 | MagicSphere(VT(0.5,0,0.5),25,CF(GRABTARGET.Position),"Really red",VT(0,5,0)) | |
| 1239 | CreateSound("289315275", GRABTARGET, 10, 2.5)
| |
| 1240 | MagicBlock(0,25,HAND[1].CFrame,"Really red",VT(5,5,5)) | |
| 1241 | WELD:remove() | |
| 1242 | KillChildren(GRABTARGET.Parent) | |
| 1243 | killnearest(GRABTARGET.Position,10) | |
| 1244 | UNANCHOR = true | |
| 1245 | RootPart.Anchored = false | |
| 1246 | for i = 1, 10 do | |
| 1247 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(-15, 7, -19) * ANGLES(RAD(0), RAD(0), RAD(-90)), 2 / Animation_Speed) | |
| 1248 | Swait() | |
| 1249 | HAND[2].C0 = Clerp(HAND[2].C0, CF(0,7,-20) * ANGLES(RAD(75), RAD(0), RAD(45)), 3 / Animation_Speed) | |
| 1250 | end | |
| 1251 | VALUE2 = false | |
| 1252 | end | |
| 1253 | HAND[1].CanCollide = false | |
| 1254 | HAND[1].IsEnabled.Value = true | |
| 1255 | end | |
| 1256 | Rooted = false | |
| 1257 | end | |
| 1258 | ||
| 1259 | function FatalWave() | |
| 1260 | ATTACK = true | |
| 1261 | Rooted = true | |
| 1262 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
| 1263 | HandleWeld.Part0 = RightArm | |
| 1264 | HandleWeld.C0 = CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 1265 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
| 1266 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1267 | Swait() | |
| 1268 | CreateRing(VT(0,0,0),false,0,5,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(90),RAD(0),RAD(0)),"Really red",VT(1,1,0)) | |
| 1269 | turnto(Mouse.Hit.p) | |
| 1270 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(-74), RAD(0)), 0.2) | |
| 1271 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.5 / Animation_Speed) | |
| 1272 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.5 / Animation_Speed) | |
| 1273 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1274 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.2, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1275 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1276 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1277 | end | |
| 1278 | for i=0,0.1, 0.1 / Animation_Speed do | |
| 1279 | Swait() | |
| 1280 | turnto(Mouse.Hit.p) | |
| 1281 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.2) | |
| 1282 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.5) | |
| 1283 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.5) | |
| 1284 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(-45), RAD(0)) * RIGHTSHOULDERC0, 0.5) | |
| 1285 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 0.5) | |
| 1286 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5) | |
| 1287 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5) | |
| 1288 | end | |
| 1289 | local angle = - 30 | |
| 1290 | for i = 1, 5 do | |
| 1291 | coroutine.resume(coroutine.create(function() | |
| 1292 | local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -15, 0), 10000, {Character})
| |
| 1293 | local SpawnPosition = RayPos | |
| 1294 | local floor = RayHit | |
| 1295 | local needcframe = RootPart.CFrame*ANGLES(RAD(0),RAD(angle),RAD(0)) | |
| 1296 | local LastPosition = RayPos | |
| 1297 | local Delay = 1 | |
| 1298 | for i = 1, 15 do | |
| 1299 | local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 10, {workspace})
| |
| 1300 | local End = RayPos | |
| 1301 | LastPosition = End | |
| 1302 | if SpawnPosition then | |
| 1303 | killnearest(End,25) | |
| 1304 | CreateRing(VT(0,0,0),false,0,15,needcframe * CF(0,0,-5*i)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(0.4,0.4,0)*i) | |
| 1305 | Slice(2+(i/5),25, needcframe * CF(0,0,-5*i)*ANGLES(RAD(90),RAD(90),RAD(0)),"Really red",1) | |
| 1306 | end | |
| 1307 | Swait() | |
| 1308 | end | |
| 1309 | end)) | |
| 1310 | angle = angle + 15 | |
| 1311 | end | |
| 1312 | local SOUND = CreateSound("rbxasset://sounds/swordlunge.wav", HitBox, 5, 0.6)
| |
| 1313 | SOUND.SoundId = "rbxasset://sounds/swordlunge.wav" | |
| 1314 | CreateSound("62339698", HitBox, 10, 0.4)
| |
| 1315 | for i=0, 1, 0.1 / Animation_Speed do | |
| 1316 | Swait() | |
| 1317 | turnto(Mouse.Hit.p) | |
| 1318 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.2) | |
| 1319 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.5) | |
| 1320 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.5) | |
| 1321 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-75)) * RIGHTSHOULDERC0, 0.5) | |
| 1322 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(75)) * LEFTSHOULDERC0, 0.5) | |
| 1323 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5) | |
| 1324 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5) | |
| 1325 | end | |
| 1326 | HandleWeld.Part0 = Torso | |
| 1327 | ATTACK = false | |
| 1328 | Rooted = false | |
| 1329 | end | |
| 1330 | ||
| 1331 | function Reap() | |
| 1332 | ATTACK = true | |
| 1333 | Rooted = true | |
| 1334 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
| 1335 | HandleWeld.Part0 = RightArm | |
| 1336 | HandleWeld.C0 = CF(0, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
| 1337 | MagicSphere(VT(0,0,0),15,HitBox.CFrame,"Really red",VT(2,2,2)) | |
| 1338 | for i=0, 3, 0.1 / Animation_Speed do | |
| 1339 | Swait() | |
| 1340 | for e=1,#HANDS do | |
| 1341 | if HANDS[e]~=nil then | |
| 1342 | local Thing=HANDS[e] | |
| 1343 | if Thing~=nil then | |
| 1344 | local MainPart=Thing[1] | |
| 1345 | local F=Thing[2] | |
| 1346 | MainPart.IsEnabled.Value = false | |
| 1347 | F.C0 = Clerp(F.C0, CF(0,15,0) * ANGLES(RAD(0), RAD(360/e), RAD(0))* CF(0,0,15), 0.5 / Animation_Speed) | |
| 1348 | end | |
| 1349 | end | |
| 1350 | end | |
| 1351 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(5), RAD(0), RAD(45)), 0.2) | |
| 1352 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.1, -0.1) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1353 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1354 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(125), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1355 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1356 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1357 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1358 | end | |
| 1359 | local SOUND = CreateSound("rbxasset://sounds/swordlunge.wav", HitBox, 5, 0.6)
| |
| 1360 | SOUND.SoundId = "rbxasset://sounds/swordlunge.wav" | |
| 1361 | local SOUND = CreateSound("135017578", Effects, 5, 1)
| |
| 1362 | Swait() | |
| 1363 | repeat | |
| 1364 | Swait() | |
| 1365 | for e=1,#HANDS do | |
| 1366 | if HANDS[e]~=nil then | |
| 1367 | local Thing=HANDS[e] | |
| 1368 | if Thing~=nil then | |
| 1369 | local MainPart=Thing[1] | |
| 1370 | local F=Thing[2] | |
| 1371 | MainPart.IsEnabled.Value = false | |
| 1372 | F.C0 = Clerp(F.C0, CF(0,-2.5,0) * ANGLES(RAD(0), RAD(360/e), RAD(0))* CF(0,0,15), 0.5 / Animation_Speed) | |
| 1373 | end | |
| 1374 | end | |
| 1375 | end | |
| 1376 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(-35), RAD(0), RAD(45)), 0.2) | |
| 1377 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.8) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1378 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1379 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0, -0.5) * ANGLES(RAD(15), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1380 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0, -0.5) * ANGLES(RAD(15), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1381 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(25), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1382 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1383 | until SOUND.playing == false | |
| 1384 | local FLOOR = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Really red", VT(800,0,800)) | |
| 1385 | MakeForm(FLOOR,"Cyl") | |
| 1386 | FLOOR.CFrame = CF(RootPart.Position+VT(0,-3,0)) | |
| 1387 | CreateSound("289315275", Effects, 5, 0.3)
| |
| 1388 | for i = 1, 400 do | |
| 1389 | Swait() | |
| 1390 | FLOOR.Transparency = FLOOR.Transparency - (1/400) | |
| 1391 | if i > 100 then | |
| 1392 | if MRANDOM(1,2) == 1 then | |
| 1393 | local SPHERE = CreatePart(3, Head, "Neon", 0, 0, "Really red", "Magic", VT(1,1,1)*MRANDOM(2,35)/10) | |
| 1394 | SPHERE.CFrame = CF(FLOOR.Position) * CF(MRANDOM(-285,285),-5,MRANDOM(-285,285)) | |
| 1395 | MakeForm(SPHERE,"Ball") | |
| 1396 | coroutine.resume(coroutine.create(function() | |
| 1397 | for i = 1, 100 do | |
| 1398 | Swait() | |
| 1399 | SPHERE.CFrame = SPHERE.CFrame * CF(0,0.3,0) | |
| 1400 | SPHERE.Transparency = (i/100) | |
| 1401 | end | |
| 1402 | SPHERE:remove() | |
| 1403 | end)) | |
| 1404 | end | |
| 1405 | end | |
| 1406 | end | |
| 1407 | CreateSound("62339698", Effects, 10, 0.3)
| |
| 1408 | killnearest(FLOOR.Position,FLOOR.Size.Z/2) | |
| 1409 | FLOOR:ClearAllChildren() | |
| 1410 | MakeForm(FLOOR,"Ball") | |
| 1411 | for i = 1, 50 do | |
| 1412 | Swait() | |
| 1413 | FLOOR.Size = FLOOR.Size + VT(-16,1,-16) | |
| 1414 | FLOOR.Transparency = FLOOR.Transparency + (1/50) | |
| 1415 | end | |
| 1416 | FLOOR:remove() | |
| 1417 | HandleWeld.Part0 = Torso | |
| 1418 | ATTACK = false | |
| 1419 | Rooted = false | |
| 1420 | for e=1,#HANDS do | |
| 1421 | if HANDS[e]~=nil then | |
| 1422 | local Thing=HANDS[e] | |
| 1423 | if Thing~=nil then | |
| 1424 | local MainPart=Thing[1] | |
| 1425 | local F=Thing[2] | |
| 1426 | MainPart.IsEnabled.Value = true | |
| 1427 | end | |
| 1428 | end | |
| 1429 | end | |
| 1430 | end | |
| 1431 | ||
| 1432 | function Taunt() | |
| 1433 | ATTACK = true | |
| 1434 | Rooted = true | |
| 1435 | local SOUND = CreateSound("134978657", Head, 10, 1)
| |
| 1436 | Swait() | |
| 1437 | repeat | |
| 1438 | Swait() | |
| 1439 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1440 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1441 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1442 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
| 1443 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1444 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
| 1445 | until SOUND.Playing == false | |
| 1446 | ATTACK = false | |
| 1447 | Rooted = false | |
| 1448 | end | |
| 1449 | ||
| 1450 | --//=================================\\ | |
| 1451 | --|| ASSIGN THINGS TO KEYS | |
| 1452 | --\\=================================// | |
| 1453 | ||
| 1454 | function MouseDown(Mouse) | |
| 1455 | if ATTACK == false then | |
| 1456 | Hit() | |
| 1457 | end | |
| 1458 | end | |
| 1459 | ||
| 1460 | function MouseUp(Mouse) | |
| 1461 | HOLD = false | |
| 1462 | end | |
| 1463 | ||
| 1464 | function KeyDown(Key) | |
| 1465 | KEYHOLD = true | |
| 1466 | if TRANSFORMED == true and Rooted == false then | |
| 1467 | if Key == "t" and ATTACK == false then | |
| 1468 | Taunt() | |
| 1469 | end | |
| 1470 | ||
| 1471 | if Key == "z" and ATTACK == false then | |
| 1472 | Warp() | |
| 1473 | end | |
| 1474 | ||
| 1475 | if Key == "b" and ATTACK == false then | |
| 1476 | DeathlyDash() | |
| 1477 | end | |
| 1478 | ||
| 1479 | if Key == "c" and ATTACK == false then | |
| 1480 | FatalGrab() | |
| 1481 | end | |
| 1482 | ||
| 1483 | if Key == "v" and ATTACK == false then | |
| 1484 | FatalWave() | |
| 1485 | end | |
| 1486 | ||
| 1487 | if Key == "x" and ATTACK == false then | |
| 1488 | Reap() | |
| 1489 | end | |
| 1490 | end | |
| 1491 | ||
| 1492 | if Key == "9" and ATTACK == false then | |
| 1493 | CreateSound("135017578", Effects, 5, 1)
| |
| 1494 | end | |
| 1495 | end | |
| 1496 | ||
| 1497 | function KeyUp(Key) | |
| 1498 | KEYHOLD = false | |
| 1499 | end | |
| 1500 | ||
| 1501 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1502 | MouseDown(NEWKEY) | |
| 1503 | end) | |
| 1504 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1505 | MouseUp(NEWKEY) | |
| 1506 | end) | |
| 1507 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1508 | KeyDown(NEWKEY) | |
| 1509 | end) | |
| 1510 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1511 | KeyUp(NEWKEY) | |
| 1512 | end) | |
| 1513 | ||
| 1514 | --//=================================\\ | |
| 1515 | --\\=================================// | |
| 1516 | ||
| 1517 | ||
| 1518 | function unanchor() | |
| 1519 | if UNANCHOR == true then | |
| 1520 | RootPart.Anchored = false | |
| 1521 | end | |
| 1522 | for _, c in pairs(SCYTHE:GetChildren()) do | |
| 1523 | if c.ClassName == "Part" then | |
| 1524 | c.Anchored = false | |
| 1525 | end | |
| 1526 | end | |
| 1527 | for _, c in pairs(HANDFOLDER:GetChildren()) do | |
| 1528 | if c.ClassName == "Part" then | |
| 1529 | c.Anchored = false | |
| 1530 | end | |
| 1531 | end | |
| 1532 | for _, c in pairs(Weapon:GetChildren()) do | |
| 1533 | if c.ClassName == "Part" then | |
| 1534 | c.Anchored = false | |
| 1535 | end | |
| 1536 | end | |
| 1537 | end | |
| 1538 | ||
| 1539 | ||
| 1540 | --//=================================\\ | |
| 1541 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1542 | --\\=================================// | |
| 1543 | ||
| 1544 | Humanoid.Changed:connect(function(Jump) | |
| 1545 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1546 | Humanoid.Jump = false | |
| 1547 | end | |
| 1548 | end) | |
| 1549 | ||
| 1550 | local FF = IT("ForceField",Character)
| |
| 1551 | FF.Visible = false | |
| 1552 | ||
| 1553 | INSTANT = false | |
| 1554 | Speed = 20 | |
| 1555 | ||
| 1556 | while true do | |
| 1557 | Swait() | |
| 1558 | SINE = SINE + CHANGE | |
| 1559 | --if DEAD == false then | |
| 1560 | if VALUE2 == false then | |
| 1561 | for e=1,#HANDS do | |
| 1562 | if HANDS[e]~=nil then | |
| 1563 | local Thing=HANDS[e] | |
| 1564 | if Thing~=nil then | |
| 1565 | local MainPart=Thing[1] | |
| 1566 | local F=Thing[2] | |
| 1567 | if MainPart.IsEnabled.Value == true then | |
| 1568 | F.C0 = Clerp(F.C0, CF(-e*2,5-((e-1)*2) + 0.5 * COS(SINE/(e*15)),2) * ANGLES(RAD(180), RAD(-90), RAD(25*e)) * ANGLES(RAD(0), RAD(45), RAD(0)), 0.2 / Animation_Speed) | |
| 1569 | end | |
| 1570 | end | |
| 1571 | end | |
| 1572 | end | |
| 1573 | end | |
| 1574 | ANIMATE.Parent = nil | |
| 1575 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
| 1576 | IDLEANIMATION:Play() | |
| 1577 | if TRANSFORMED == true then | |
| 1578 | tecks2.TextTransparency = 0 | |
| 1579 | for _, c in pairs(Character:GetChildren()) do | |
| 1580 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
| 1581 | c.Anchored = false | |
| 1582 | c.Transparency = 0 | |
| 1583 | c.Color = C3(0,0,0) | |
| 1584 | end | |
| 1585 | end | |
| 1586 | for _, c in pairs(Weapon:GetChildren()) do | |
| 1587 | if c.ClassName == "Part" then | |
| 1588 | c.Transparency = 0 | |
| 1589 | end | |
| 1590 | end | |
| 1591 | for _, c in pairs(HANDFOLDER:GetChildren()) do | |
| 1592 | if c.ClassName == "Part" then | |
| 1593 | c.Color = C3(0,0,0) | |
| 1594 | if c:FindFirstChild("PE") then
| |
| 1595 | c.PE.Enabled = true | |
| 1596 | end | |
| 1597 | end | |
| 1598 | end | |
| 1599 | for _, c in pairs(SCYTHE:GetChildren()) do | |
| 1600 | if c.ClassName == "Part" then | |
| 1601 | if c.Material ~= Enum.Material.Neon then | |
| 1602 | c.Transparency = 0 | |
| 1603 | end | |
| 1604 | c.Color = C3(0,0,0) | |
| 1605 | if c:FindFirstChild("PE") then
| |
| 1606 | c.PE.Enabled = true | |
| 1607 | end | |
| 1608 | end | |
| 1609 | end | |
| 1610 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 1611 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 1612 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
| 1613 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
| 1614 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
| 1615 | if ATTACK == false and VALUE2 == false then | |
| 1616 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(2, 3 + 0.35 * COS(SINE / 12), 1) * ANGLES(RAD(45 + 15 * COS(SINE / 12)), RAD(-45), RAD(0)), 0.2 / Animation_Speed) | |
| 1617 | end | |
| 1618 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
| 1619 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1620 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1621 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1622 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1623 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
| 1624 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1625 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1626 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1627 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1628 | end | |
| 1629 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 1630 | ANIM = "Jump" | |
| 1631 | if ATTACK == false then | |
| 1632 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1633 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1634 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1635 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1636 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
| 1637 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1638 | end | |
| 1639 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 1640 | ANIM = "Fall" | |
| 1641 | if ATTACK == false then | |
| 1642 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1643 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 1644 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1645 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
| 1646 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
| 1647 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
| 1648 | end | |
| 1649 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 1650 | ANIM = "Idle" | |
| 1651 | if ATTACK == false then | |
| 1652 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.1, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1653 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1654 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1655 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.35, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1656 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1657 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1658 | end | |
| 1659 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 1660 | ANIM = "Walk" | |
| 1661 | WALK = WALK + 1 / Animation_Speed | |
| 1662 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
| 1663 | WALK = 0 | |
| 1664 | if WALKINGANIM == true then | |
| 1665 | WALKINGANIM = false | |
| 1666 | elseif WALKINGANIM == false then | |
| 1667 | WALKINGANIM = true | |
| 1668 | end | |
| 1669 | end | |
| 1670 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1671 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 1672 | if ATTACK == false then | |
| 1673 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1674 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1675 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1676 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
| 1677 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
| 1678 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
| 1679 | end | |
| 1680 | end | |
| 1681 | end | |
| 1682 | --end | |
| 1683 | Humanoid.DisplayDistanceType = "None" | |
| 1684 | unanchor() | |
| 1685 | Humanoid.MaxHealth = "inf" | |
| 1686 | Humanoid.Health = "inf" | |
| 1687 | if Rooted == false then | |
| 1688 | Disable_Jump = false | |
| 1689 | Humanoid.WalkSpeed = Speed | |
| 1690 | elseif Rooted == true then | |
| 1691 | Disable_Jump = true | |
| 1692 | Humanoid.WalkSpeed = 0 | |
| 1693 | end | |
| 1694 | if Head:FindFirstChild("face") then
| |
| 1695 | Head.face:remove() | |
| 1696 | end | |
| 1697 | local MATHS = {"0","1"}
| |
| 1698 | Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)] | |
| 1699 | Humanoid.PlatformStand = false | |
| 1700 | if INTRO == false and INSTANT == false then | |
| 1701 | INTRO = true | |
| 1702 | coroutine.resume(coroutine.create(function() | |
| 1703 | sick:Play() | |
| 1704 | Intro() | |
| 1705 | end)) | |
| 1706 | end | |
| 1707 | if INSTANT == true then | |
| 1708 | if TRANSFORMED == false then | |
| 1709 | sick.TimePosition = 60 | |
| 1710 | Player:ClearCharacterAppearance() | |
| 1711 | sick:Play() | |
| 1712 | for _, c in pairs(HANDFOLDER:GetChildren()) do | |
| 1713 | if c.ClassName == "Part" then | |
| 1714 | c.Transparency = 0 | |
| 1715 | end | |
| 1716 | end | |
| 1717 | end | |
| 1718 | TRANSFORMED = true | |
| 1719 | end | |
| 1720 | script.Parent = PlayerGui | |
| 1721 | Character.Parent = workspace | |
| 1722 | Humanoid.Parent = Character | |
| 1723 | Player:ClearCharacterAppearance() | |
| 1724 | end | |
| 1725 | ||
| 1726 | --//=================================\\ | |
| 1727 | --\\=================================// | |
| 1728 | ||
| 1729 | ||
| 1730 | ||
| 1731 | ||
| 1732 | ||
| 1733 | --//====================================================\\-- | |
| 1734 | --|| END OF SCRIPT | |
| 1735 | --\\====================================================//-- |