SHOW:
|
|
- or go back to the newest paste.
| 1 | -- This script has been converted to FE by Artkiller_exe | |
| 2 | ||
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | print("FE Compatibility code by Mokiros | Translated to FE by Arkiller_exe")
| |
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | ||
| 88 | --[[ Godspeed ]]-- | |
| 89 | ------------------------------------------------------- | |
| 90 | --[[ | |
| 91 | ||
| 92 | This script was created by WafflesAreVeryGood or Nobody#3907 | |
| 93 | ||
| 94 | --]] | |
| 95 | ------------------------------------------------------- | |
| 96 | - | --[[ Reference ]]-- |
| 96 | + | |
| 97 | ------------------------------------------------------- | |
| 98 | - | Burn Function |
| 98 | + | |
| 99 | - | hurt(char.Head, 15, "Burn", {char, {Color = Color3.new(0,1,1), Time = 1, Rate = 20, Damage = {1,5}}})
|
| 99 | + | |
| 100 | warn("--------Global Message--------")
| |
| 101 | - | Freeze Function |
| 101 | + | |
| 102 | - | hurt(char.Head, 0, "Freeze", {char, 1})
|
| 102 | + | |
| 103 | --[[Changeable Variables]]-- | |
| 104 | - | Stun Function |
| 104 | + | |
| 105 | - | hurt(char.Head, 0, "Stun", {char, 0.2})
|
| 105 | + | |
| 106 | settings.Damage = {
| |
| 107 | Color = nil, | |
| 108 | StrokeColor = nil, | |
| 109 | Font = nil, | |
| 110 | } | |
| 111 | settings.ShowDamageEnabled = false | |
| 112 | settings.CustomAnim = true | |
| 113 | settings.Song = 1513216381 | |
| 114 | local soundlist = {
| |
| 115 | HardHit1 = "rbxassetid://565207203", | |
| 116 | HardHit2 = "rbxassetid://541909913", | |
| 117 | HardHit3 = "rbxassetid://541909983", | |
| 118 | WeakHit1 = "rbxassetid://558642292", | |
| 119 | WeakHit2 = "rbxassetid://541907812", | |
| 120 | Slice1 = "rbxassetid://260429964", | |
| 121 | Slice2 = "rbxassetid://260430015", | |
| 122 | Explosion1 = "rbxassetid://138186576", | |
| 123 | Explosion2 = "rbxassetid://157878578", | |
| 124 | Woosh1 = "rbxassetid://541909867", | |
| 125 | Woosh2 = "rbxassetid://541909763", | |
| 126 | Freeze = "rbxassetid://268249319", | |
| 127 | Thaw = "rbxassetid://1578580965", | |
| 128 | Burn = "rbxassetid://298181829", | |
| 129 | ||
| 130 | } | |
| 131 | local attack_data = {
| |
| 132 | {
| |
| 133 | Name = "Godspeed", | |
| 134 | Description = "Enable the godspeed. [TOGGLE]", | |
| 135 | Key = "G", | |
| 136 | }, | |
| 137 | {
| |
| 138 | Name = "Left Punch", | |
| 139 | Description = "Punch.", | |
| 140 | Key = "Q", | |
| 141 | }, | |
| 142 | {
| |
| 143 | Name = "Right Punch", | |
| 144 | Description = "Punch again.", | |
| 145 | Key = "E", | |
| 146 | }, | |
| 147 | {
| |
| 148 | Name = "Slam", | |
| 149 | Description = "Slam downwards, good spike move.", | |
| 150 | Key = "R", | |
| 151 | }, | |
| 152 | {
| |
| 153 | Name = "Uppercut", | |
| 154 | Description = "Jump into the air and do an uppercut.", | |
| 155 | Key = "Y", | |
| 156 | }, | |
| 157 | {
| |
| 158 | Name = "Power Punch", | |
| 159 | Description = "Punch but stronger.", | |
| 160 | Key = "F", | |
| 161 | }, | |
| 162 | {
| |
| 163 | Name = "Run", | |
| 164 | Description = "Hold shift to gotta go fast.", | |
| 165 | Key = "Shift", | |
| 166 | }, | |
| 167 | ||
| 168 | } | |
| 169 | ||
| 170 | --[[Important Variables]]-- | |
| 171 | local plr = owner | |
| 172 | local char = plr.Character | |
| 173 | local input = game:GetService('UserInputService')
| |
| 174 | ---- | |
| 175 | local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
| |
| 176 | local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart | |
| 177 | local rs = torso["Right Shoulder"] | |
| 178 | local ls = torso["Left Shoulder"] | |
| 179 | local rh = torso["Right Hip"] | |
| 180 | local lh = torso["Left Hip"] | |
| 181 | local neck = torso.Neck | |
| 182 | local rj = rootpart["RootJoint"] | |
| 183 | local humanoid = char:FindFirstChildOfClass("Humanoid")
| |
| 184 | ---- | |
| 185 | local huge = Vector3.new(math.huge, math.huge, math.huge) | |
| 186 | local attacking = false | |
| 187 | local cananim = true | |
| 188 | local animpose = "Idle" | |
| 189 | local timestate = "None" | |
| 190 | local lastpose = animpose | |
| 191 | local movespeed = 0 | |
| 192 | local playermass = 0 | |
| 193 | for i,v in pairs(char:GetChildren()) do | |
| 194 | if v:IsA("BasePart") then
| |
| 195 | playermass = playermass + v:GetMass() | |
| 196 | end | |
| 197 | end | |
| 198 | local timedata = {}
| |
| 199 | ---- | |
| 200 | --[[ Moves Gui ]]-- | |
| 201 | ||
| 202 | local mgui = Instance.new("ScreenGui")
| |
| 203 | mgui.Name = "MovesGui" | |
| 204 | local bg = Instance.new("Frame")
| |
| 205 | bg.BackgroundColor3 = Color3.new(61/255,61/255,61/255) | |
| 206 | bg.Position = UDim2.new(0,504,0,164) | |
| 207 | bg.Name = "Background" | |
| 208 | bg.Size = UDim2.new(-0.035,379,0,225) | |
| 209 | bg.Visible = false | |
| 210 | bg.Parent = mgui | |
| 211 | local container = Instance.new("ScrollingFrame")
| |
| 212 | container.Name = "Container" | |
| 213 | container.BackgroundColor3 = Color3.new(70/255,70/255,70/255) | |
| 214 | container.BorderSizePixel = 0 | |
| 215 | container.Visible = true | |
| 216 | container.Position = UDim2.new(0,16,0,46) | |
| 217 | container.Size = UDim2.new(0,132,0,162) | |
| 218 | container.CanvasSize = UDim2.new(0,0,0,10) | |
| 219 | container.ScrollBarThickness = 4 | |
| 220 | container.Parent = bg | |
| 221 | local copy = Instance.new("TextButton")
| |
| 222 | copy.Name = "Move" | |
| 223 | copy.BackgroundColor3 = Color3.new(77/255,77/255,77/255) | |
| 224 | copy.BorderSizePixel = 0 | |
| 225 | copy.Position = UDim2.new(0,4,0,4) | |
| 226 | copy.Size = UDim2.new(0,118,0,29) | |
| 227 | copy.Font = "SourceSansLight" | |
| 228 | copy.Text = "Move Name" | |
| 229 | copy.TextColor3 = Color3.new(197/255,0,0) | |
| 230 | copy.TextSize = 20 | |
| 231 | copy.Visible = false | |
| 232 | copy.Parent = container | |
| 233 | local atkinfo = container:Clone() | |
| 234 | for _,v in pairs(atkinfo:GetChildren()) do v:Destroy() end | |
| 235 | atkinfo.Name = "AtkInfo" | |
| 236 | atkinfo.Visible = true | |
| 237 | atkinfo.Position = UDim2.new(0,167,0,50) | |
| 238 | atkinfo.Size = UDim2.new(0,159,0,165) | |
| 239 | atkinfo.Parent = bg | |
| 240 | local movename = Instance.new("TextLabel")
| |
| 241 | movename.Name = "MoveName" | |
| 242 | movename.BackgroundColor3 = Color3.new(77/255,77/255,77/255) | |
| 243 | movename.BorderSizePixel = 0 | |
| 244 | movename.Position = UDim2.new(0,4,0,4) | |
| 245 | movename.Size = UDim2.new(0,150,0,30) | |
| 246 | movename.Font = "SourceSansLight" | |
| 247 | movename.TextColor3 = Color3.new(197/255,0,0) | |
| 248 | movename.TextSize = 20 | |
| 249 | movename.Text = "same" | |
| 250 | movename.Parent = atkinfo | |
| 251 | local movedesc = movename:Clone() | |
| 252 | movedesc.Position = UDim2.new(0,4,0,47) | |
| 253 | movedesc.Size = UDim2.new(0,150,0,133) | |
| 254 | movedesc.Text = "Move Description" | |
| 255 | movedesc.TextSize = 18 | |
| 256 | movedesc.Name = "MoveDesc" | |
| 257 | movedesc.TextXAlignment = "Left" | |
| 258 | movedesc.TextYAlignment = "Top" | |
| 259 | movedesc.TextWrapped = true | |
| 260 | movedesc.Parent = atkinfo | |
| 261 | local title = movedesc:Clone() | |
| 262 | title.Name = "Title" | |
| 263 | title.Font = "SourceSansLight" | |
| 264 | title.Text = "Moves List" | |
| 265 | title.TextSize = 28 | |
| 266 | title.BackgroundColor3 = Color3.new(36/255,36/255,36/255) | |
| 267 | title.Position = UDim2.new(0,0,0,0) | |
| 268 | title.Size = UDim2.new(1,0,0,30) | |
| 269 | title.TextXAlignment = "Center" | |
| 270 | title.TextYAlignment = "Center" | |
| 271 | title.Parent = bg | |
| 272 | local toggle = copy:Clone() | |
| 273 | toggle.BackgroundColor3 = Color3.new(61/255,61/255,61/255) | |
| 274 | toggle.Position = UDim2.new(0,0,0,288) | |
| 275 | toggle.Size = UDim2.new(0,70,0,20) | |
| 276 | toggle.Visible = true | |
| 277 | toggle.Font = "SourceSans" | |
| 278 | toggle.Text = "Toggle Moves" | |
| 279 | toggle.Name = "Toggle" | |
| 280 | toggle.TextSize = 14 | |
| 281 | toggle.Parent = mgui | |
| 282 | mgui.Parent = plr:FindFirstChildOfClass("PlayerGui")
| |
| 283 | toggle.MouseButton1Click:connect(function() | |
| 284 | bg.Visible = not bg.Visible | |
| 285 | end) | |
| 286 | local pos = copy.Position -UDim2.new(0,0,0,29) | |
| 287 | for _,data in pairs(attack_data) do | |
| 288 | local new = copy:Clone() | |
| 289 | pos = pos +UDim2.new(0,0,0,29) | |
| 290 | container.CanvasSize = container.CanvasSize +UDim2.new(0,0,0,29) | |
| 291 | new.Position = pos | |
| 292 | new.Text = data.Name.."["..data.Key.."]" | |
| 293 | new.Visible = true | |
| 294 | spawn(function() | |
| 295 | swait() | |
| 296 | if not new.TextFits then | |
| 297 | new.TextScaled = true | |
| 298 | end | |
| 299 | end) | |
| 300 | new.Parent = container | |
| 301 | new.MouseButton1Click:connect(function() | |
| 302 | movename.Text = data.Name | |
| 303 | movedesc.Text = data.Description | |
| 304 | spawn(function() | |
| 305 | swait() | |
| 306 | if not movename.TextFits then | |
| 307 | movename.TextScaled = true | |
| 308 | else | |
| 309 | movename.TextScaled = false | |
| 310 | end | |
| 311 | if not movedesc.TextFits then | |
| 312 | movename.TextScaled = true | |
| 313 | else | |
| 314 | movename.TextScaled = false | |
| 315 | end | |
| 316 | end) | |
| 317 | end) | |
| 318 | end | |
| 319 | --[[ Functions ]]-- | |
| 320 | ||
| 321 | function addattack(keycode, func) | |
| 322 | if keycode ~= "MouseClick" then | |
| 323 | input.InputBegan:connect(function(inp) | |
| 324 | if inp.KeyCode == keycode and not input:GetFocusedTextBox() then | |
| 325 | func() | |
| 326 | end | |
| 327 | end) | |
| 328 | else | |
| 329 | mouse.Button1Down:connect(function() | |
| 330 | func() | |
| 331 | end) | |
| 332 | end | |
| 333 | end | |
| 334 | function attackend(keycode, func) | |
| 335 | input.InputEnded:connect(function(inp) | |
| 336 | if inp.KeyCode == keycode and not input:GetFocusedTextBox() then | |
| 337 | func() | |
| 338 | end | |
| 339 | end) | |
| 340 | end | |
| 341 | function swait(t) | |
| 342 | if t then | |
| 343 | for i = 0, t do | |
| 344 | game:GetService('RunService').Stepped:wait(0)
| |
| 345 | end | |
| 346 | else | |
| 347 | game:GetService('RunService').Stepped:wait(0)
| |
| 348 | end | |
| 349 | return true | |
| 350 | end | |
| 351 | function fade(obj, dest, grow) | |
| 352 | spawn(function() | |
| 353 | local oldcf = obj.CFrame | |
| 354 | for i = 0, 10 do | |
| 355 | if grow then | |
| 356 | obj.Size = obj.Size +Vector3.new(1,1,1) | |
| 357 | obj.CFrame = oldcf | |
| 358 | end | |
| 359 | obj.Transparency = obj.Transparency +0.1 | |
| 360 | swait() | |
| 361 | end | |
| 362 | if dest then | |
| 363 | obj:Destroy() | |
| 364 | end | |
| 365 | end) | |
| 366 | end | |
| 367 | function replacejoint(name) | |
| 368 | local j = torso:FindFirstChild(name) | |
| 369 | if not j then j = char.HumanoidRootPart:FindFirstChild(name) end | |
| 370 | if j then | |
| 371 | if true then | |
| 372 | local already = j.Parent:FindFirstChild(j.Name.." Replacement") | |
| 373 | local new = Instance.new("Weld")
| |
| 374 | local c0 = j.C0 | |
| 375 | local c1 = j.C1 | |
| 376 | new.Part0 = j.Part0 | |
| 377 | j.Part0 = nil | |
| 378 | new.Name = j.Name.." Replacement" | |
| 379 | if already then c0 = already.C0 c1 = already.C1 already:Destroy() end | |
| 380 | new.Parent = j.Parent | |
| 381 | new.Part1 = j.Part1 | |
| 382 | new.C0 = c0 | |
| 383 | new.C1 = c1 | |
| 384 | return new | |
| 385 | end | |
| 386 | end | |
| 387 | end | |
| 388 | function removejoint(name, fast) | |
| 389 | local j = torso:FindFirstChild(name.." Replacement") | |
| 390 | if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end | |
| 391 | if j then | |
| 392 | local p0 = j.Part0 | |
| 393 | if p0 ~= nil then | |
| 394 | local c0 = j.C0 | |
| 395 | local c1 = j.C1 | |
| 396 | j:Destroy() | |
| 397 | local new = p0:FindFirstChild(name) | |
| 398 | local ac0 = new.C0 | |
| 399 | local ac1 = new.C1 | |
| 400 | new.Part0 = p0 | |
| 401 | new.C0 = c0 | |
| 402 | new.C1 = c1 | |
| 403 | spawn(function() | |
| 404 | if name ~= "RootJoint" then | |
| 405 | if not fast then | |
| 406 | for i = 0, 0.6, 0.1 do | |
| 407 | new.C0 = new.C0:Lerp(ac0, 0.5) | |
| 408 | new.C1 = new.C1:lerp(ac1, 0.5) | |
| 409 | swait() | |
| 410 | end | |
| 411 | else | |
| 412 | new.C0 = new.C0:Lerp(ac0, 1) | |
| 413 | new.C1 = new.C1:lerp(ac1, 1) | |
| 414 | end | |
| 415 | end | |
| 416 | end) | |
| 417 | end | |
| 418 | end | |
| 419 | end | |
| 420 | function fixalljoints(fast) | |
| 421 | for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
| |
| 422 | removejoint(v, fast) | |
| 423 | end | |
| 424 | end | |
| 425 | function getnewjoints() | |
| 426 | local rs = replacejoint("Right Shoulder")
| |
| 427 | local ls = replacejoint("Left Shoulder")
| |
| 428 | local rh = replacejoint("Right Hip")
| |
| 429 | local lh = replacejoint("Left Hip")
| |
| 430 | local neck = replacejoint("Neck")
| |
| 431 | local rj = replacejoint("RootJoint")
| |
| 432 | return rs,ls,rh,lh,neck,rj | |
| 433 | end | |
| 434 | function knockback(hit, dir, force) | |
| 435 | local bp = Instance.new("BodyPosition")
| |
| 436 | bp.MaxForce = huge | |
| 437 | bp.D = 1000*(timestate == "Slow" and 0.9 or 1) | |
| 438 | bp.P = 20000*(force/5) | |
| 439 | bp.Position = (CFrame.new(hit.Position, hit.Position+dir)*CFrame.new(0,0,-force)).p | |
| 440 | bp.Parent = hit | |
| 441 | game:GetService('Debris'):AddItem(bp, force/5)
| |
| 442 | end | |
| 443 | function soundeffect(id, volume, speed, parent, extra) | |
| 444 | extra = extra or {}
| |
| 445 | local func = function() | |
| 446 | local s = LoadLibrary("RbxUtility").Create("Sound")()
| |
| 447 | s.Name = "WSoundEffect" | |
| 448 | s.Volume = volume | |
| 449 | s.PlaybackSpeed = speed | |
| 450 | s.SoundId = id | |
| 451 | s.Looped = false | |
| 452 | if extra.Pitch then | |
| 453 | local ef = Instance.new("PitchShiftSoundEffect")
| |
| 454 | ef.Octave = extra.Pitch or 1 | |
| 455 | ef.Enabled = true | |
| 456 | ef.Priority = 0 | |
| 457 | ef.Parent = s | |
| 458 | end | |
| 459 | s.Parent = parent | |
| 460 | if extra.Immune then | |
| 461 | Instance.new("StringValue", s).Name = "Immune"
| |
| 462 | end | |
| 463 | s:Play() | |
| 464 | s.TimePosition = extra.Start or 0 | |
| 465 | repeat swait() until not s.Playing or s.TimePosition >= (extra.End or 99999) | |
| 466 | s:Destroy() | |
| 467 | return s | |
| 468 | end | |
| 469 | if extra.ForceWait then | |
| 470 | func() | |
| 471 | else | |
| 472 | return spawn(func) | |
| 473 | end | |
| 474 | end | |
| 475 | function getfunction(nm) | |
| 476 | if nm == "Burn" then | |
| 477 | return function(character, data) | |
| 478 | if character:FindFirstChild("Burn") then
| |
| 479 | return | |
| 480 | end | |
| 481 | local val = Instance.new("StringValue")
| |
| 482 | val.Name = "Burn" | |
| 483 | val.Parent = character | |
| 484 | for i = 1, data.Time*100 do | |
| 485 | if not character:FindFirstChild("Burn") then
| |
| 486 | break | |
| 487 | end | |
| 488 | if i%data.Rate == 0 then | |
| 489 | local hum = character:FindFirstChildOfClass("Humanoid")
| |
| 490 | if hum then | |
| 491 | hurt(torso, data.Damage) | |
| 492 | end | |
| 493 | soundeffect(soundlist.Burn, 1, 1, torso) | |
| 494 | spawn(function() | |
| 495 | for i = 1, 4 do | |
| 496 | spawn(function() | |
| 497 | local p = Instance.new("Part")
| |
| 498 | p.Material = "Neon" | |
| 499 | p.CanCollide = false | |
| 500 | p.Anchored = true | |
| 501 | p.Size = Vector3.new(0.5,0.5,0.5) | |
| 502 | p.Name = "fireeffect" | |
| 503 | p.Color = data.Color or Color3.new(1,162/255,0) | |
| 504 | p.CFrame = torso.CFrame *CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) | |
| 505 | p.Parent = torso | |
| 506 | local offset = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 507 | local endcf = CFrame.new(p.Position+Vector3.new(math.random(-10,10)/10,3,math.random(-10,10)/10))*offset | |
| 508 | local opcf = p.CFrame | |
| 509 | local opsz = p.Size | |
| 510 | for i = 0, 1, 0.01 do | |
| 511 | p.Transparency = i/1 | |
| 512 | local cf = p.CFrame | |
| 513 | p.Size = opsz:Lerp(Vector3.new(0.05,0.05,0.05), i/1) | |
| 514 | p.CFrame = cf | |
| 515 | p.CFrame = opcf:Lerp( endcf*CFrame.Angles(math.rad(math.sin(i)*360),math.rad(math.cos(i)*360),math.rad(math.sin(i)*360)), i/1 ) | |
| 516 | swait() | |
| 517 | end | |
| 518 | p:Destroy() | |
| 519 | swait(5) | |
| 520 | end) | |
| 521 | swait() | |
| 522 | end | |
| 523 | end) | |
| 524 | end | |
| 525 | swait() | |
| 526 | end | |
| 527 | val:Destroy() | |
| 528 | end | |
| 529 | end | |
| 530 | if nm == "Poison" then | |
| 531 | return function(character, data) | |
| 532 | ||
| 533 | end | |
| 534 | end | |
| 535 | if nm == "Freeze" then | |
| 536 | return function(character, t) | |
| 537 | if not character:FindFirstChild("Frozen") then
| |
| 538 | local val = Instance.new("StringValue")
| |
| 539 | val.Name = "Frozen" | |
| 540 | val.Parent = character | |
| 541 | local unanchor = {}
| |
| 542 | local freezeparts = {}
| |
| 543 | soundeffect(soundlist.Freeze, 1, 3, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
| |
| 544 | for _,v in pairs(character:GetDescendants()) do | |
| 545 | if v:IsA("BasePart") and v.Name ~= "freezepart" and v.Name ~= "fireeffect" then
| |
| 546 | if v.Transparency ~= 1 then | |
| 547 | if not v.Anchored then | |
| 548 | table.insert(unanchor, v) | |
| 549 | end | |
| 550 | v.Anchored = true | |
| 551 | local new = v:Clone() | |
| 552 | new:ClearAllChildren() | |
| 553 | local mesh = v:FindFirstChildOfClass("SpecialMesh")
| |
| 554 | if mesh then | |
| 555 | mesh = mesh:Clone() | |
| 556 | mesh.TextureId = "" | |
| 557 | if mesh.Scale ~= Vector3.new(1,1,1) then | |
| 558 | mesh.Scale = mesh.Scale +Vector3.new(0.05,0.05,0.05) | |
| 559 | end | |
| 560 | mesh.Parent = new | |
| 561 | end | |
| 562 | new.Size = new.Size+Vector3.new(0.05,0.05,0.05) | |
| 563 | new.CanCollide = false | |
| 564 | new.Anchored = true | |
| 565 | new.Name = "freezepart" | |
| 566 | new.Material = "Ice" | |
| 567 | new.BrickColor = BrickColor.new("Pastel light blue")
| |
| 568 | new.TopSurface = "Smooth" | |
| 569 | new.BottomSurface = "Smooth" | |
| 570 | new.Transparency = 0 | |
| 571 | new.CFrame = v.CFrame | |
| 572 | new.Parent = v | |
| 573 | table.insert(freezeparts, new) | |
| 574 | end | |
| 575 | end | |
| 576 | end | |
| 577 | swait(50*t) | |
| 578 | soundeffect(soundlist.Thaw, 1, 1, character:FindFirstChild("Torso") or character:FindFirstChild("UpperTorso"))
| |
| 579 | val:Destroy() | |
| 580 | for _,v in pairs(unanchor) do | |
| 581 | v.Anchored = false | |
| 582 | end | |
| 583 | for _,v in pairs(freezeparts) do | |
| 584 | v.Anchored = false | |
| 585 | v.CanCollide = true | |
| 586 | v.Velocity = CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))).lookVector*25 | |
| 587 | game:GetService('Debris'):AddItem(v, 5)
| |
| 588 | end | |
| 589 | end | |
| 590 | end | |
| 591 | end | |
| 592 | if nm == "Stun" then | |
| 593 | return function(character, t) | |
| 594 | local humanoid = character:FindFirstChildOfClass("Humanoid")
| |
| 595 | local val = Instance.new("StringValue")
| |
| 596 | val.Name = "Stun" | |
| 597 | val.Parent = character | |
| 598 | if humanoid then | |
| 599 | humanoid.PlatformStand = true | |
| 600 | end | |
| 601 | for i = 1, t*100 do | |
| 602 | if humanoid then | |
| 603 | humanoid.PlatformStand = true | |
| 604 | end | |
| 605 | swait() | |
| 606 | end | |
| 607 | if humanoid then | |
| 608 | humanoid.PlatformStand = false | |
| 609 | end | |
| 610 | val:Destroy() | |
| 611 | end | |
| 612 | end | |
| 613 | if nm == "Paralyze" then | |
| 614 | return function(character, t) | |
| 615 | ||
| 616 | end | |
| 617 | end | |
| 618 | return | |
| 619 | end | |
| 620 | function showdamage(cf, txtdata) | |
| 621 | --[[ | |
| 622 | [Text Data] | |
| 623 | Font | |
| 624 | Text | |
| 625 | Color | |
| 626 | StrokeColor {NOTE: If strokecolor not provided, then will default the StrokeTransparency to 1}
| |
| 627 | --]] | |
| 628 | local p = Instance.new("Part")
| |
| 629 | p.Name = "DamagePart" | |
| 630 | p.CanCollide = false | |
| 631 | p.Anchored = true | |
| 632 | p.Transparency = 1 | |
| 633 | p.Size = Vector3.new(0.1,0.1,0.1) | |
| 634 | p.CFrame = cf | |
| 635 | local gui = Instance.new("BillboardGui")
| |
| 636 | gui.Name = "GUI" | |
| 637 | gui.Adornee = p | |
| 638 | gui.LightInfluence = 0 | |
| 639 | gui.Size = UDim2.new(1.5,0,0.7,0) | |
| 640 | gui.StudsOffset = Vector3.new(0,0.5,0) | |
| 641 | local tl = Instance.new("TextLabel")
| |
| 642 | tl.Name = "tl" | |
| 643 | tl.BackgroundTransparency = 1 | |
| 644 | tl.Position = UDim2.new(0,0,0,0) | |
| 645 | tl.Size = UDim2.new(2,0,2,0) | |
| 646 | tl.Font = txtdata.Font or "SourceSans" | |
| 647 | tl.TextColor3 = txtdata.Color or Color3.new(1,0,0) | |
| 648 | tl.Text = txtdata.Text or "" | |
| 649 | tl.TextScaled = true | |
| 650 | tl.TextStrokeColor3 = txtdata.StrokeColor or Color3.new() | |
| 651 | tl.TextStrokeTransparency = txtdata.StrokeColor and 0 or 1 | |
| 652 | tl.Rotation = math.random(-10,10) | |
| 653 | tl.Parent = gui | |
| 654 | gui.Parent = p | |
| 655 | local og = gui | |
| 656 | gui = og:Clone() | |
| 657 | gui.Parent = og.Parent | |
| 658 | tl = gui.tl | |
| 659 | og:Destroy() | |
| 660 | p.Parent = char | |
| 661 | spawn(function() | |
| 662 | for i = 1, 100 do | |
| 663 | gui.StudsOffset = gui.StudsOffset:Lerp(Vector3.new(0,1,0), i/100) | |
| 664 | tl.TextTransparency = Vector3.new(tl.TextTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X | |
| 665 | if txtdata.StrokeColor then | |
| 666 | tl.TextStrokeTransparency = Vector3.new(tl.TextStrokeTransparency,0,0):Lerp(Vector3.new(1,0,0), 0.02).X | |
| 667 | end | |
| 668 | swait() | |
| 669 | end | |
| 670 | p:Destroy() | |
| 671 | end) | |
| 672 | end | |
| 673 | function stabilizer(obj) | |
| 674 | local bp = Instance.new("BodyPosition")
| |
| 675 | bp.MaxForce = huge | |
| 676 | bp.Position = obj.Position | |
| 677 | bp.Name = "Stable" | |
| 678 | bp.Parent = obj | |
| 679 | end | |
| 680 | function setshape(obj, typ) | |
| 681 | local m = obj:FindFirstChildOfClass("SpecialMesh") or Instance.new("SpecialMesh")
| |
| 682 | m.MeshId = typ == "Ring" and "rbxassetid://3270017" or "" | |
| 683 | m.TextureId = "" | |
| 684 | if typ == "Ring" then | |
| 685 | typ = "FileMesh" | |
| 686 | end | |
| 687 | m.MeshType = typ | |
| 688 | m.Parent = obj | |
| 689 | end | |
| 690 | function camshake(direction, intensity, duration) | |
| 691 | if direction:lower() == "inout" then | |
| 692 | workspace.CurrentCamera.FieldOfView = intensity | |
| 693 | game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
| |
| 694 | elseif direction:lower() == "left" then | |
| 695 | humanoid.CameraOffset = Vector3.new(intensity,0,0) | |
| 696 | game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
| |
| 697 | elseif direction:lower() == "right" then | |
| 698 | humanoid.CameraOffset = Vector3.new(-intensity,0,0) | |
| 699 | game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
| |
| 700 | elseif direction:lower() == "up" then | |
| 701 | humanoid.CameraOffset = Vector3.new(0,intensity,0) | |
| 702 | game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
| |
| 703 | elseif direction:lower() == "down" then | |
| 704 | humanoid.CameraOffset = Vector3.new(0,-intensity,0) | |
| 705 | game:GetService('TweenService'):Create(humanoid, TweenInfo.new(duration, Enum.EasingStyle.Bounce, Enum.EasingDirection.Out), {CameraOffset = Vector3.new()}):Play()
| |
| 706 | end | |
| 707 | end | |
| 708 | function randomangle() | |
| 709 | return CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 710 | end | |
| 711 | function hurt(hit, dmg, effect, args) | |
| 712 | --pcall(function() | |
| 713 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 714 | if hum and not hum:FindFirstChild("nostop") then
| |
| 715 | if hum.Parent ~= char then | |
| 716 | if typeof(dmg) == "table" then | |
| 717 | dmg = math.random(dmg[1], dmg[2]) | |
| 718 | end | |
| 719 | hum.Health = hum.Health - dmg | |
| 720 | if settings.ShowDamageEnabled then | |
| 721 | local dmgdata = {
| |
| 722 | Color = settings.Damage.Color, | |
| 723 | StrokeColor = settings.Damage.StrokeColor, | |
| 724 | Font = settings.Damage.Font, | |
| 725 | Text = dmg, | |
| 726 | } | |
| 727 | showdamage(hit.CFrame *CFrame.new(math.random(-30,30)/10,math.random(-5,5)/10,math.random(-30,30)/10), dmgdata) | |
| 728 | end | |
| 729 | if effect then | |
| 730 | if typeof(effect) == "function" then | |
| 731 | local s,m = pcall(effect, hit.CFrame) | |
| 732 | if not s then | |
| 733 | warn("Error in function: "..m or "unknown")
| |
| 734 | end | |
| 735 | end | |
| 736 | if typeof(effect) == "string" then | |
| 737 | local func = getfunction(effect) | |
| 738 | if func then | |
| 739 | local s,m | |
| 740 | if args then | |
| 741 | s,m = pcall(func, unpack(args)) | |
| 742 | else | |
| 743 | s,m = pcall(func) | |
| 744 | end | |
| 745 | if not s then | |
| 746 | warn("Error in function: "..m or "unknown")
| |
| 747 | end | |
| 748 | end | |
| 749 | end | |
| 750 | end | |
| 751 | return true | |
| 752 | end | |
| 753 | end | |
| 754 | --end) | |
| 755 | end | |
| 756 | --[[ uhhhhhhhhhhhhhhhh ]]-- | |
| 757 | pcall(function() | |
| 758 | NS([[ | |
| 759 | local store = game:GetService('DataStoreService'):GetDataStore("WAFFLESDATA:Godspeed")
| |
| 760 | store:UpdateAsync("y'all", function(old)
| |
| 761 | old = old or {}
| |
| 762 | if typeof(old) ~= "table" then | |
| 763 | old = {} --stop breaking my datastores
| |
| 764 | end | |
| 765 | local ok = true | |
| 766 | for _,v in pairs(old) do | |
| 767 | if typeof(v) == "table" then | |
| 768 | if v.name == owner.Name or v.userid == owner.UserId then | |
| 769 | ok = false | |
| 770 | table.insert(v.uses, tick()) | |
| 771 | end | |
| 772 | end | |
| 773 | end | |
| 774 | if ok then | |
| 775 | table.insert(old, {name = owner.Name, userid = owner.UserId, uses = {tick()}})
| |
| 776 | end | |
| 777 | return old | |
| 778 | end) | |
| 779 | script:Destroy() | |
| 780 | ]], workspace) | |
| 781 | end) | |
| 782 | --[[ Actual script :OOOOOOOOOO ]]-- | |
| 783 | ||
| 784 | local sound = Instance.new("Sound")
| |
| 785 | sound.Volume = 0.5 | |
| 786 | sound.SoundId = "rbxassetid://"..settings.Song | |
| 787 | sound.Looped = true | |
| 788 | sound.Name = "BGMusic" | |
| 789 | sound.Parent = char | |
| 790 | sound:Play() | |
| 791 | sound.Changed:connect(function() | |
| 792 | -- swait() | |
| 793 | -- sound.Volume = 0.5 | |
| 794 | -- sound.SoundId = "rbxassetid://"..settings.Song | |
| 795 | -- sound.Looped = true | |
| 796 | -- sound.Name = "BGMusic" | |
| 797 | -- sound.Parent = char | |
| 798 | end) | |
| 799 | addattack(Enum.KeyCode.LeftShift, function() | |
| 800 | if humanoid.WalkSpeed > 0 then | |
| 801 | humanoid.WalkSpeed = 24 | |
| 802 | end | |
| 803 | end) | |
| 804 | attackend(Enum.KeyCode.LeftShift, function() | |
| 805 | if humanoid.WalkSpeed > 0 then | |
| 806 | humanoid.WalkSpeed = 16 | |
| 807 | end | |
| 808 | end) | |
| 809 | addattack(Enum.KeyCode.G, function() | |
| 810 | if timestate == "Slow" then | |
| 811 | pcall(function() | |
| 812 | timecon:disconnect() | |
| 813 | timecon = nil | |
| 814 | end) | |
| 815 | local blur = game:GetService('Lighting'):FindFirstChild("BlurE")
| |
| 816 | if blur then | |
| 817 | spawn(function() | |
| 818 | for i = 1, 20 do | |
| 819 | blur.Size = 5-((i/20)*5) | |
| 820 | swait() | |
| 821 | end | |
| 822 | blur:Destroy() | |
| 823 | end) | |
| 824 | end | |
| 825 | if char:FindFirstChild("Ticking") then
| |
| 826 | char.Ticking:Destroy() | |
| 827 | end | |
| 828 | if char:FindFirstChild("Ambience") then
| |
| 829 | char.Ambience:Destroy() | |
| 830 | end | |
| 831 | timestate = "Busy" | |
| 832 | local s = Instance.new("Sound")
| |
| 833 | s.Volume = 2 | |
| 834 | s.Looped = false | |
| 835 | s.SoundId = "rbxassetid://1645362088" | |
| 836 | Instance.new("StringValue", s).Name = "Immune"
| |
| 837 | s.Name = "s" | |
| 838 | s.Parent = char | |
| 839 | s:Play() | |
| 840 | spawn(function() | |
| 841 | repeat swait() until not s.Playing | |
| 842 | s:Destroy() | |
| 843 | end) | |
| 844 | spawn(function() | |
| 845 | workspace.Gravity = 196.2 | |
| 846 | local humsfinished = false | |
| 847 | for _,data in pairs(timedata) do | |
| 848 | if typeof(data) ~= "RBXScriptConnection" then | |
| 849 | local obj = data.Object | |
| 850 | if obj:IsA("BasePart") then
| |
| 851 | if obj:FindFirstChild("ANTIANTI") then
| |
| 852 | obj.ANTIANTI:Destroy() | |
| 853 | end | |
| 854 | obj.Anchored = false | |
| 855 | end | |
| 856 | if obj:IsA("Humanoid") then
| |
| 857 | local spd = data.WalkSpeed | |
| 858 | local jp = data.JumpPower | |
| 859 | spawn(function() | |
| 860 | for i = 1, 20 do | |
| 861 | obj.WalkSpeed = (i/20)*spd | |
| 862 | obj.JumpPower = (i/20)*jp | |
| 863 | swait() | |
| 864 | end | |
| 865 | end) | |
| 866 | end | |
| 867 | if obj:IsA("BodyPosition") then
| |
| 868 | local p = data.P | |
| 869 | spawn(function() | |
| 870 | for i = 1, 20 do | |
| 871 | obj.P = (i/20)*p | |
| 872 | swait() | |
| 873 | end | |
| 874 | end) | |
| 875 | end | |
| 876 | if obj:IsA("BodyForce") then
| |
| 877 | local frc = data.Force | |
| 878 | spawn(function() | |
| 879 | for i = 1, 20 do | |
| 880 | obj.Force = (i/20)*frc | |
| 881 | swait() | |
| 882 | end | |
| 883 | end) | |
| 884 | end | |
| 885 | if obj:IsA("BodyVelocity") then
| |
| 886 | local vel = data.Velocity | |
| 887 | spawn(function() | |
| 888 | for i = 1, 20 do | |
| 889 | obj.Velocity = (i/20)*vel | |
| 890 | swait() | |
| 891 | end | |
| 892 | end) | |
| 893 | end | |
| 894 | if obj:IsA("Sound") then
| |
| 895 | local spd = data.PlaybackSpeed | |
| 896 | spawn(function() | |
| 897 | for i = 1, 20 do | |
| 898 | obj.PlaybackSpeed = (i/20)*spd | |
| 899 | swait() | |
| 900 | end | |
| 901 | end) | |
| 902 | end | |
| 903 | else | |
| 904 | pcall(function() | |
| 905 | data:disconnect() | |
| 906 | end) | |
| 907 | end | |
| 908 | end | |
| 909 | timedata = {}
| |
| 910 | swait(20) | |
| 911 | timestate = "None" | |
| 912 | end) | |
| 913 | workspace.CurrentCamera.FieldOfView = 120 | |
| 914 | game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(0.5, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
| |
| 915 | elseif timestate == "None" then | |
| 916 | workspace.Gravity = 2 | |
| 917 | local blur = Instance.new("BlurEffect")
| |
| 918 | blur.Size = 0 | |
| 919 | blur.Name = "BlurE" | |
| 920 | blur.Parent = game:GetService('Lighting')
| |
| 921 | spawn(function() | |
| 922 | for i = 1, 20 do | |
| 923 | blur.Size = (i/20)*5 | |
| 924 | swait() | |
| 925 | end | |
| 926 | end) | |
| 927 | timestate = "Busy" | |
| 928 | soundeffect("rbxassetid://909142508", 0.5, 2, char.Torso, {Immune = true, Pitch = 0.5})
| |
| 929 | spawn(function() | |
| 930 | local humsfinished = false | |
| 931 | local function bind(obj) | |
| 932 | local data = {Object = obj}
| |
| 933 | if obj:IsA("BasePart") and not obj:IsDescendantOf(char) then
| |
| 934 | obj.Velocity = obj.Velocity/10 | |
| 935 | end | |
| 936 | if obj:IsA("Sound") and not obj:FindFirstChild("Immune") then
| |
| 937 | local spd = obj.PlaybackSpeed | |
| 938 | local data = {Object = obj, PlaybackSpeed = spd}
| |
| 939 | spawn(function() | |
| 940 | if not humsfinished then | |
| 941 | for i = 1, 20 do | |
| 942 | obj.PlaybackSpeed = ((i/20)*spd)/2 | |
| 943 | swait() | |
| 944 | end | |
| 945 | else | |
| 946 | obj.PlaybackSpeed = spd/2 | |
| 947 | end | |
| 948 | humsfinished = true | |
| 949 | end) | |
| 950 | table.insert(timedata, data) | |
| 951 | end | |
| 952 | if obj:IsA("BodyVelocity") then
| |
| 953 | local vel = obj.Velocity | |
| 954 | local data = {Object = obj, Velocity = vel}
| |
| 955 | spawn(function() | |
| 956 | if not humsfinished then | |
| 957 | for i = 1, 20 do | |
| 958 | obj.Velocity = ((i/20)*vel)/10 | |
| 959 | swait() | |
| 960 | end | |
| 961 | else | |
| 962 | obj.Velocity = vel/10 | |
| 963 | end | |
| 964 | humsfinished = true | |
| 965 | end) | |
| 966 | table.insert(timedata, data) | |
| 967 | end | |
| 968 | if obj:IsA("BodyForce") then
| |
| 969 | local frc = obj.Force | |
| 970 | local data = {Object = obj, Force = frc}
| |
| 971 | spawn(function() | |
| 972 | if not humsfinished then | |
| 973 | for i = 1, 20 do | |
| 974 | obj.Force = ((i/20)*frc)/10 | |
| 975 | swait() | |
| 976 | end | |
| 977 | else | |
| 978 | obj.Force = frc/10 | |
| 979 | end | |
| 980 | humsfinished = true | |
| 981 | end) | |
| 982 | table.insert(timedata, data) | |
| 983 | end | |
| 984 | if obj:IsA("BodyPosition") then
| |
| 985 | local p = obj.P | |
| 986 | local data = {Object = obj, P = p}
| |
| 987 | spawn(function() | |
| 988 | if not humsfinished then | |
| 989 | for i = 1, 20 do | |
| 990 | obj.P = ((i/20)*p)/10 | |
| 991 | swait() | |
| 992 | end | |
| 993 | else | |
| 994 | obj.P = p/10 | |
| 995 | end | |
| 996 | humsfinished = true | |
| 997 | end) | |
| 998 | table.insert(timedata, data) | |
| 999 | end | |
| 1000 | if obj:IsA("Humanoid") and obj ~= humanoid then
| |
| 1001 | local ws = obj.WalkSpeed | |
| 1002 | local jp = obj.JumpPower | |
| 1003 | local data = {Object = obj, WalkSpeed = ws, JumpPower = jp}
| |
| 1004 | spawn(function() | |
| 1005 | if not humsfinished then | |
| 1006 | for i = 1, 20 do | |
| 1007 | obj.JumpPower = ((i/20)*jp)/10 | |
| 1008 | obj.WalkSpeed = ((i/20)*ws)/10 | |
| 1009 | swait() | |
| 1010 | end | |
| 1011 | else | |
| 1012 | obj.WalkSpeed = jp/10 | |
| 1013 | obj.JumpPower = ws/10 | |
| 1014 | end | |
| 1015 | humsfinished = true | |
| 1016 | end) | |
| 1017 | table.insert(timedata, data) | |
| 1018 | end | |
| 1019 | end | |
| 1020 | timecon = workspace.DescendantAdded:connect(function(obj) | |
| 1021 | bind(obj) | |
| 1022 | end) | |
| 1023 | for _,obj in pairs(workspace:GetDescendants()) do | |
| 1024 | bind(obj) | |
| 1025 | end | |
| 1026 | repeat swait() until humsfinished | |
| 1027 | local sound = Instance.new("Sound")
| |
| 1028 | sound.Name = "Ticking" | |
| 1029 | sound.Looped = true | |
| 1030 | sound.Volume = 0.2 | |
| 1031 | sound.PlaybackSpeed = 0.5 | |
| 1032 | Instance.new("StringValue", sound).Name = "Immune"
| |
| 1033 | sound.SoundId = "rbxassetid://850256806" | |
| 1034 | sound.Parent = char | |
| 1035 | sound:Play() | |
| 1036 | local sound2 = sound:Clone() | |
| 1037 | sound2.Name = "Ambience" | |
| 1038 | sound2.SoundId = "rbxassetid://225115422" | |
| 1039 | sound2.TimePosition = 30 | |
| 1040 | sound2.PlaybackSpeed = 0.05 | |
| 1041 | sound2:Play() | |
| 1042 | timestate = "Slow" | |
| 1043 | end) | |
| 1044 | workspace.CurrentCamera.FieldOfView = 120 | |
| 1045 | game:GetService('TweenService'):Create(workspace.CurrentCamera, TweenInfo.new(1.8, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out), {FieldOfView = 70}):Play()
| |
| 1046 | end | |
| 1047 | end) | |
| 1048 | local attacks = 0 | |
| 1049 | local lastattack = "" | |
| 1050 | local rs2,ls2,rj2 | |
| 1051 | addattack(Enum.KeyCode.Q, function() | |
| 1052 | if attacking then | |
| 1053 | return | |
| 1054 | end | |
| 1055 | if lastattack == "left" then | |
| 1056 | return | |
| 1057 | else | |
| 1058 | lastattack = "left" | |
| 1059 | end | |
| 1060 | attacking = true | |
| 1061 | if attacks <= 0 then | |
| 1062 | rs2,ls2,rj2 = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
| |
| 1063 | for i = 0, 2, 0.1 do | |
| 1064 | rs2.C1 = rs2.C1:Lerp(CFrame.new(-0.906966507, 0.968378186, 0.112298936, 0.621087372, 0.026099572, 0.783306599, -0.77448535, -0.132709503, 0.618514776, 0.120095201, -0.990811288, -0.0622104593), 0.2) | |
| 1065 | ls2.C1 = ls2.C1:Lerp(CFrame.new(0.737226963, 0.512096643, 0, 0.768523753, -0.0691948682, -0.636068642, 0.63350606, -0.0570384003, 0.771632493, -0.0896733478, -0.995971203, 3.91974631e-09), 0.2) | |
| 1066 | rj2.C1 = rj2.C1:Lerp(CFrame.new(0, 0, 0, -0.550583005, -0.834780395, 0, 0, 0, 1, -0.834780395, 0.550583005, 0), 0.2) | |
| 1067 | swait() | |
| 1068 | end | |
| 1069 | end | |
| 1070 | attacks = attacks + 1 | |
| 1071 | local hits = {}
| |
| 1072 | local p = Instance.new("Part")
| |
| 1073 | p.Anchored = false | |
| 1074 | p.CanCollide = false | |
| 1075 | p.Transparency = 1 | |
| 1076 | p.Size = Vector3.new(1.5,2.5,1.5) | |
| 1077 | p.CFrame = char["Left Arm"].CFrame | |
| 1078 | p.Parent = workspace | |
| 1079 | p.Touched:connect(function(hit) | |
| 1080 | local ok = true | |
| 1081 | for i,v in pairs(hits) do | |
| 1082 | if hit.Parent == v then | |
| 1083 | ok = false | |
| 1084 | end | |
| 1085 | end | |
| 1086 | if ok and hurt(hit, 15) then | |
| 1087 | camshake("right", 0.5, 0.5)
| |
| 1088 | soundeffect(soundlist.HardHit1, 1, 1, char.Torso) | |
| 1089 | table.insert(hits, hit.Parent) | |
| 1090 | knockback(hit, rootpart.CFrame.lookVector, 0.5) | |
| 1091 | for i = 1, 3 do | |
| 1092 | local p = Instance.new("Part")
| |
| 1093 | p.CanCollide = false | |
| 1094 | p.Anchored = true | |
| 1095 | p.Material = "Neon" | |
| 1096 | p.Size = Vector3.new(0.5,3,0.5) | |
| 1097 | p.CFrame = hit.CFrame *randomangle() | |
| 1098 | setshape(p, "Sphere") | |
| 1099 | p.Parent = char | |
| 1100 | spawn(function() | |
| 1101 | local endcf = p.CFrame *CFrame.new(0,5,0) | |
| 1102 | for i = 1, 50 do | |
| 1103 | local cf = p.CFrame | |
| 1104 | p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1) | |
| 1105 | p.CFrame = cf | |
| 1106 | p.CFrame = cf:Lerp(endcf, 0.1) | |
| 1107 | p.Transparency = i/50 | |
| 1108 | swait() | |
| 1109 | end | |
| 1110 | p:Destroy() | |
| 1111 | end) | |
| 1112 | end | |
| 1113 | end | |
| 1114 | end) | |
| 1115 | stabilizer(p) | |
| 1116 | soundeffect(soundlist.Woosh1, 1, 1, char.Torso) | |
| 1117 | for i = 0, 0.4, 0.1 do | |
| 1118 | p.CFrame = char["Left Arm"].CFrame | |
| 1119 | p.Stable.Position = p.Position | |
| 1120 | rs2.C1 = rs2.C1:Lerp(CFrame.new(-0.765155435, 0.0656381845, -0.134758413, 0.690899074, 0.0384150855, 0.721929848, -0.71290642, -0.129681468, 0.689164102, 0.120095223, -0.990811288, -0.0622104444), 0.6) | |
| 1121 | ls2.C1 = ls2.C1:Lerp(CFrame.new(0.594711781, 1.414186, 0, -0.303172708, 0.0272964332, -0.95254457, 0.948707044, -0.0854178295, -0.304399073, -0.0896732956, -0.995971262, 3.66734874e-08), 0.6) | |
| 1122 | rj2.C1 = rj2.C1:Lerp(CFrame.new(0, 0, 0, -0.678091764, 0.734977245, 0, 0, 0, 1, 0.734977245, 0.678091764, -0), 0.6) | |
| 1123 | swait() | |
| 1124 | end | |
| 1125 | p:Destroy() | |
| 1126 | attacking = false | |
| 1127 | spawn(function() | |
| 1128 | swait(10) | |
| 1129 | attacks = attacks - 1 | |
| 1130 | if attacks == 0 then | |
| 1131 | fixalljoints() | |
| 1132 | lastattack = "" | |
| 1133 | end | |
| 1134 | end) | |
| 1135 | end) | |
| 1136 | addattack(Enum.KeyCode.E, function() | |
| 1137 | if attacking then | |
| 1138 | return | |
| 1139 | end | |
| 1140 | if lastattack == "right" then | |
| 1141 | return | |
| 1142 | else | |
| 1143 | lastattack = "right" | |
| 1144 | end | |
| 1145 | attacking = true | |
| 1146 | if attacks <= 0 then | |
| 1147 | rs2,ls2,rj2 = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
| |
| 1148 | for i = 0, 2, 0.1 do | |
| 1149 | rs2.C1 = rs2.C1:Lerp(CFrame.new(-0.66123569, -0.0759664774, 0, 0.836167634, 0.17217432, 0.520749211, -0.510048807, -0.105023548, 0.853709757, 0.201677814, -0.979451895, 8.81561668e-09), 0.2) | |
| 1150 | ls2.C1 = ls2.C1:Lerp(CFrame.new(0.500000119, 0.96661222, 0, 0.768523753, -0.0691948682, -0.636068642, 0.63350606, -0.0570384003, 0.771632493, -0.0896733478, -0.995971203, 3.91974631e-09), 0.2) | |
| 1151 | rj2.C1 = rj2.C1:Lerp(CFrame.new(0, 0, 0, -0.557908654, 0.829902351, 0, 0, 0, 1, 0.829902351, 0.557908654, 0), 0.2) | |
| 1152 | swait() | |
| 1153 | end | |
| 1154 | end | |
| 1155 | attacks = attacks + 1 | |
| 1156 | local hits = {}
| |
| 1157 | local p = Instance.new("Part")
| |
| 1158 | p.Anchored = false | |
| 1159 | p.CanCollide = false | |
| 1160 | p.Transparency = 1 | |
| 1161 | p.Size = Vector3.new(1.5,2.5,1.5) | |
| 1162 | p.CFrame = char["Right Arm"].CFrame | |
| 1163 | p.Parent = workspace | |
| 1164 | p.Touched:connect(function(hit) | |
| 1165 | local ok = true | |
| 1166 | for i,v in pairs(hits) do | |
| 1167 | if hit.Parent == v then | |
| 1168 | ok = false | |
| 1169 | end | |
| 1170 | end | |
| 1171 | if ok and hurt(hit, 15) then | |
| 1172 | camshake("left", 0.5, 0.5)
| |
| 1173 | soundeffect(soundlist.HardHit2, 1, 1, char.Torso) | |
| 1174 | table.insert(hits, hit.Parent) | |
| 1175 | knockback(hit, rootpart.CFrame.lookVector, 0.5) | |
| 1176 | for i = 1, 3 do | |
| 1177 | local p = Instance.new("Part")
| |
| 1178 | p.CanCollide = false | |
| 1179 | p.Anchored = true | |
| 1180 | p.Material = "Neon" | |
| 1181 | p.Size = Vector3.new(0.5,3,0.5) | |
| 1182 | p.CFrame = hit.CFrame *randomangle() | |
| 1183 | setshape(p, "Sphere") | |
| 1184 | p.Parent = char | |
| 1185 | spawn(function() | |
| 1186 | local endcf = p.CFrame *CFrame.new(0,5,0) | |
| 1187 | for i = 1, 50 do | |
| 1188 | local cf = p.CFrame | |
| 1189 | p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1) | |
| 1190 | p.CFrame = cf | |
| 1191 | p.CFrame = cf:Lerp(endcf, 0.1) | |
| 1192 | p.Transparency = i/50 | |
| 1193 | swait() | |
| 1194 | end | |
| 1195 | p:Destroy() | |
| 1196 | end) | |
| 1197 | end | |
| 1198 | end | |
| 1199 | end) | |
| 1200 | stabilizer(p) | |
| 1201 | soundeffect(soundlist.Woosh1, 1, 1.2, char.Torso) | |
| 1202 | for i = 0, 0.4, 0.1 do | |
| 1203 | p.CFrame = char["Right Arm"].CFrame | |
| 1204 | p.Stable.Position = p.Position | |
| 1205 | rs2.C1 = rs2.C1:Lerp(CFrame.new(-0.300615489, 1.58357882, 0.112298936, -0.591086566, -0.121709943, 0.797372818, -0.797617614, -0.0589888841, -0.600272059, 0.120095201, -0.990811288, -0.0622104593), 0.6) | |
| 1206 | ls2.C1 = ls2.C1:Lerp(CFrame.new(0.737226963, 0.512096643, 0, 0.768523753, -0.0691948682, -0.636068642, 0.63350606, -0.0570384003, 0.771632493, -0.0896733478, -0.995971203, 3.91974631e-09), 0.6) | |
| 1207 | rj2.C1 = rj2.C1:Lerp(CFrame.new(0, 0, 0, -0.550583005, -0.834780395, 0, 0, 0, 1, -0.834780395, 0.550583005, 0), 0.6) | |
| 1208 | swait() | |
| 1209 | end | |
| 1210 | p:Destroy() | |
| 1211 | attacking = false | |
| 1212 | spawn(function() | |
| 1213 | swait(10) | |
| 1214 | attacks = attacks - 1 | |
| 1215 | if attacks == 0 then | |
| 1216 | lastattack = "" | |
| 1217 | fixalljoints() | |
| 1218 | end | |
| 1219 | end) | |
| 1220 | end) | |
| 1221 | addattack(Enum.KeyCode.R, function() | |
| 1222 | if attacking or attacks ~= 0 then | |
| 1223 | return | |
| 1224 | end | |
| 1225 | local rs,ls,rj = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
| |
| 1226 | attacking = true | |
| 1227 | for i = 0, 1.3, 0.1 do | |
| 1228 | rs.C1 = rs.C1:Lerp(CFrame.new(-0.496893436, 1.07596898, -0.312988698, 0.19853723, 0.499329865, 0.843357921, 0.169898286, -0.864994049, 0.472143799, 0.965255141, 0.0495468974, -0.256568819), 0.2) | |
| 1229 | ls.C1 = ls.C1:Lerp(CFrame.new(0.540391445, 1.0264194, -0.428114742, 0.327020317, -0.479398847, -0.81439209, -0.16517745, -0.877505124, 0.450223595, -0.930469871, -0.0127130449, -0.366147876), 0.2) | |
| 1230 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.473837465, 0.880612314, 0, 0.880612314, -0.473837465), 0.2) | |
| 1231 | swait() | |
| 1232 | end | |
| 1233 | local hits = {}
| |
| 1234 | local p = Instance.new("Part")
| |
| 1235 | p.Anchored = false | |
| 1236 | p.CanCollide = false | |
| 1237 | p.Transparency = 1 | |
| 1238 | p.Size = Vector3.new(2.5,2.5,2.5) | |
| 1239 | p.CFrame = char["Right Arm"].CFrame *CFrame.new(1,0,0) | |
| 1240 | p.Parent = workspace | |
| 1241 | p.Touched:connect(function(hit) | |
| 1242 | local ok = true | |
| 1243 | for i,v in pairs(hits) do | |
| 1244 | if hit.Parent == v then | |
| 1245 | ok = false | |
| 1246 | end | |
| 1247 | end | |
| 1248 | if ok and hurt(hit, 30) then | |
| 1249 | camshake("down", 0.7, 0.5)
| |
| 1250 | soundeffect(soundlist.HardHit2, 1, 1, char.Torso) | |
| 1251 | table.insert(hits, hit.Parent) | |
| 1252 | knockback(hit, rootpart.CFrame.lookVector*Vector3.new(0.2,0,0.2)+Vector3.new(0,-1,0), 5) | |
| 1253 | for i = 1, 7 do | |
| 1254 | local p = Instance.new("Part")
| |
| 1255 | p.CanCollide = false | |
| 1256 | p.Anchored = true | |
| 1257 | p.Material = "Neon" | |
| 1258 | p.Size = Vector3.new(0.5,3,0.5) | |
| 1259 | p.CFrame = hit.CFrame *randomangle() | |
| 1260 | setshape(p, "Sphere") | |
| 1261 | p.Parent = char | |
| 1262 | spawn(function() | |
| 1263 | local endcf = p.CFrame *CFrame.new(0,5,0) | |
| 1264 | for i = 1, 50 do | |
| 1265 | local cf = p.CFrame | |
| 1266 | p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1) | |
| 1267 | p.CFrame = cf | |
| 1268 | p.CFrame = cf:Lerp(endcf, 0.1) | |
| 1269 | p.Transparency = i/50 | |
| 1270 | swait() | |
| 1271 | end | |
| 1272 | p:Destroy() | |
| 1273 | end) | |
| 1274 | end | |
| 1275 | end | |
| 1276 | end) | |
| 1277 | stabilizer(p) | |
| 1278 | soundeffect(soundlist.Woosh2, 1, 1, char.Torso) | |
| 1279 | for i = 0, 0.7, 0.1 do | |
| 1280 | p.CFrame = char["Right Arm"].CFrame *CFrame.new(1,0,0) | |
| 1281 | p.Stable.Position = p.Position | |
| 1282 | rs.C1 = rs.C1:Lerp(CFrame.new(-0.667285919, 0.998731434, 0.0985666513, 0.472356766, -0.245664522, 0.846479833, -0.662665009, 0.53425169, 0.52483356, -0.581166148, -0.808841228, 0.0895640329), 0.35) | |
| 1283 | ls.C1 = ls.C1:Lerp(CFrame.new(1.08004797, 1.00210166, 0.0862590671, 0.688671947, 0.329867661, -0.64569217, 0.477811068, 0.463347167, 0.746328354, 0.545369148, -0.822494209, 0.161479771), 0.35) | |
| 1284 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.431734294, 0.902000785, 0, 0.902000785, 0.431734294), 0.35) | |
| 1285 | swait() | |
| 1286 | end | |
| 1287 | p:Destroy() | |
| 1288 | swait(10) | |
| 1289 | fixalljoints() | |
| 1290 | attacking = false | |
| 1291 | end) | |
| 1292 | addattack(Enum.KeyCode.Y, function() | |
| 1293 | if attacking or attacks ~= 0 then | |
| 1294 | return | |
| 1295 | end | |
| 1296 | attacking = true | |
| 1297 | local rs,ls,rj = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
| |
| 1298 | for i = 0, 1.5, 0.1 do | |
| 1299 | rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.69189465, 0, -4.37113883e-08, 0, 1, -0.560839891, 0.827924252, -2.45150904e-08, -0.827924252, -0.560839891, -3.61897179e-08), 0.2) | |
| 1300 | ls.C1 = ls.C1:Lerp(CFrame.new(0.517904997, 0.547646105, 0.00405242294, 0.0622798949, -0.105018295, -0.992518127, -0.0215675589, 0.994074821, -0.106536403, 0.997825623, 0.0280412138, 0.0596458912), 0.2) | |
| 1301 | rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08), 0.2) | |
| 1302 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08), 0.2) | |
| 1303 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0), 0.2) | |
| 1304 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, -0.301361054, 0.953510106, 0, 0.953510106, 0.301361054), 0.2) | |
| 1305 | swait() | |
| 1306 | end | |
| 1307 | local lastws = humanoid.WalkSpeed | |
| 1308 | humanoid.WalkSpeed = 0 | |
| 1309 | rootpart.Velocity = Vector3.new(0,70,0)+rootpart.CFrame.lookVector | |
| 1310 | local hits = {}
| |
| 1311 | local p = Instance.new("Part")
| |
| 1312 | p.Anchored = false | |
| 1313 | p.CanCollide = false | |
| 1314 | p.Transparency = 1 | |
| 1315 | p.Size = Vector3.new(2.5,2.5,2.5) | |
| 1316 | p.CFrame = char["Right Arm"].CFrame | |
| 1317 | p.Parent = workspace | |
| 1318 | p.Touched:connect(function(hit) | |
| 1319 | local ok = true | |
| 1320 | for i,v in pairs(hits) do | |
| 1321 | if hit.Parent == v then | |
| 1322 | ok = false | |
| 1323 | end | |
| 1324 | end | |
| 1325 | if ok and hurt(hit, 35) then | |
| 1326 | camshake("up", 0.7, 0.5)
| |
| 1327 | soundeffect(soundlist.HardHit3, 1, 1, char.Torso) | |
| 1328 | table.insert(hits, hit.Parent) | |
| 1329 | knockback(hit, rootpart.CFrame.lookVector*Vector3.new(0.2,0,0.2)+Vector3.new(0,1,0), 6) | |
| 1330 | for i = 1, 7 do | |
| 1331 | local p = Instance.new("Part")
| |
| 1332 | p.CanCollide = false | |
| 1333 | p.Anchored = true | |
| 1334 | p.Material = "Neon" | |
| 1335 | p.Size = Vector3.new(0.5,3,0.5) | |
| 1336 | p.CFrame = hit.CFrame *randomangle() | |
| 1337 | setshape(p, "Sphere") | |
| 1338 | p.Parent = char | |
| 1339 | spawn(function() | |
| 1340 | local endcf = p.CFrame *CFrame.new(0,5,0) | |
| 1341 | for i = 1, 50 do | |
| 1342 | local cf = p.CFrame | |
| 1343 | p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1) | |
| 1344 | p.CFrame = cf | |
| 1345 | p.CFrame = cf:Lerp(endcf, 0.1) | |
| 1346 | p.Transparency = i/50 | |
| 1347 | swait() | |
| 1348 | end | |
| 1349 | p:Destroy() | |
| 1350 | end) | |
| 1351 | end | |
| 1352 | end | |
| 1353 | end) | |
| 1354 | stabilizer(p) | |
| 1355 | soundeffect(soundlist.Woosh2, 1, 0.9, char.Torso) | |
| 1356 | local rh,lh,neck = replacejoint("Right Hip"),replacejoint("Left Hip"),replacejoint("Neck")
| |
| 1357 | for i = 0, 2, 0.1 do | |
| 1358 | p.CFrame = char["Right Arm"].CFrame | |
| 1359 | p.Stable.Position = p.Position | |
| 1360 | rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.446216494, -0.361232638, -4.37113847e-08, 0, 0.99999994, -0.360836178, -0.932629287, -1.57726507e-08, 0.932629287, -0.360836178, 4.07665226e-08), 0.35) | |
| 1361 | ls.C1 = ls.C1:Lerp(CFrame.new(0.517904997, 0.547646105, 0.00405242294, 0.0622798949, -0.105018295, -0.992518127, -0.0215675589, 0.994074821, -0.106536403, 0.997825623, 0.0280412138, 0.0596458912), 0.35) | |
| 1362 | rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.835349202, 0.549719632, 3.65142725e-08, -0.549719632, 0.835349202, -2.40290081e-08), 0.35) | |
| 1363 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 5.96046448e-08, -4.37113883e-08, 0, -1, 0.934595525, 0.355712235, -4.08524663e-08, 0.355712235, -0.934595525, -1.55486752e-08), 0.35) | |
| 1364 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0.0765283406, 0.997067392, 0, 0.997067392, -0.0765283406), 0.35) | |
| 1365 | rj.C1 = rj.C1:Lerp(CFrame.new(0, -0.439764589, 0.236440629, -1, 0, 0, 0, 0.186102957, 0.982530236, 0, 0.982530236, -0.186102957), 0.35) | |
| 1366 | swait() | |
| 1367 | end | |
| 1368 | fixalljoints() | |
| 1369 | attacking = false | |
| 1370 | humanoid.WalkSpeed = lastws | |
| 1371 | swait(20) | |
| 1372 | end) | |
| 1373 | addattack(Enum.KeyCode.F, function() | |
| 1374 | if attacking or attacks ~= 0 then | |
| 1375 | return | |
| 1376 | end | |
| 1377 | local rs,ls,rj = replacejoint("Right Shoulder"),replacejoint("Left Shoulder"),replacejoint("RootJoint")
| |
| 1378 | attacking = true | |
| 1379 | for i = 0, 1.3, 0.1 do | |
| 1380 | rs.C1 = rs.C1:Lerp(CFrame.new(-0.49999994, -0.365668952, 0, 0.801226735, -0.011569812, 0.598249018, -0.598186672, 0.00863788743, 0.801310301, -0.0144386161, -0.999895751, -6.3113198e-10), 0.35) | |
| 1381 | ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, 0.810985923, -0.159224555, -0.562982619, 0.552435875, -0.108462237, 0.826468766, -0.192656472, -0.98126626, 8.42128145e-09), 0.35) | |
| 1382 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -0.553187609, 0.833056748, 0, 0.426593065, 0.283277214, 0.858936787, 0.715543091, 0.475153178, -0.512081623), 0.35) | |
| 1383 | swait() | |
| 1384 | end | |
| 1385 | local hits = {}
| |
| 1386 | local p = Instance.new("Part")
| |
| 1387 | p.Anchored = false | |
| 1388 | p.CanCollide = false | |
| 1389 | p.Transparency = 1 | |
| 1390 | p.Size = Vector3.new(2.5,2.5,2.5) | |
| 1391 | p.CFrame = char["Right Arm"].CFrame | |
| 1392 | p.Parent = workspace | |
| 1393 | p.Touched:connect(function(hit) | |
| 1394 | local ok = true | |
| 1395 | for i,v in pairs(hits) do | |
| 1396 | if hit.Parent == v then | |
| 1397 | ok = false | |
| 1398 | end | |
| 1399 | end | |
| 1400 | if ok and hurt(hit, 45) then | |
| 1401 | camshake("left", 0.7, 0.8)
| |
| 1402 | soundeffect(soundlist.HardHit3, 1, 1, char.Torso) | |
| 1403 | table.insert(hits, hit.Parent) | |
| 1404 | knockback(hit, rootpart.CFrame.lookVector, 5) | |
| 1405 | for i = 1, 7 do | |
| 1406 | local p = Instance.new("Part")
| |
| 1407 | p.CanCollide = false | |
| 1408 | p.Anchored = true | |
| 1409 | p.Material = "Neon" | |
| 1410 | p.Size = Vector3.new(0.5,3,0.5) | |
| 1411 | p.CFrame = hit.CFrame *randomangle() | |
| 1412 | setshape(p, "Sphere") | |
| 1413 | p.Parent = char | |
| 1414 | spawn(function() | |
| 1415 | local endcf = p.CFrame *CFrame.new(0,5,0) | |
| 1416 | for i = 1, 50 do | |
| 1417 | local cf = p.CFrame | |
| 1418 | p.Size = p.Size:Lerp(Vector3.new(0.5,0.5,0.5), 0.1) | |
| 1419 | p.CFrame = cf | |
| 1420 | p.CFrame = cf:Lerp(endcf, 0.1) | |
| 1421 | p.Transparency = i/50 | |
| 1422 | swait() | |
| 1423 | end | |
| 1424 | p:Destroy() | |
| 1425 | end) | |
| 1426 | end | |
| 1427 | end | |
| 1428 | end) | |
| 1429 | stabilizer(p) | |
| 1430 | soundeffect(soundlist.Woosh2, 1, 1, char.Torso) | |
| 1431 | for i = 0, 0.7, 0.1 do | |
| 1432 | p.CFrame = char["Right Arm"].CFrame | |
| 1433 | p.Stable.Position = p.Position | |
| 1434 | rs.C1 = rs.C1:Lerp(CFrame.new(-0.0815927088, 1.02625275, -0.263894349, -0.186050832, 0.00268659508, 0.982536495, -0.884674728, -0.435528874, -0.166329011, 0.427476168, -0.900170743, 0.083407253), 0.35) | |
| 1435 | ls.C1 = ls.C1:Lerp(CFrame.new(0.594317198, 0.0587400198, -0.128876805, 0.168223724, -0.0330281407, -0.985195339, 0.966738999, -0.189804256, 0.171435371, -0.192656472, -0.98126626, 8.42128145e-09), 0.35) | |
| 1436 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0.227821022, -0.806821465, -0.590735316, -0.00842596591, 0.292753816, -0.412147343, 0.862803519, -0.513161182, 0.693661571, 0.505469382), 0.35) | |
| 1437 | swait() | |
| 1438 | end | |
| 1439 | p:Destroy() | |
| 1440 | swait(10) | |
| 1441 | fixalljoints() | |
| 1442 | attacking = false | |
| 1443 | end) | |
| 1444 | ||
| 1445 | if settings.CustomAnim then | |
| 1446 | if char:FindFirstChild("Animate") then
| |
| 1447 | char.Animate:Destroy() | |
| 1448 | end | |
| 1449 | for _,track in pairs(humanoid:GetPlayingAnimationTracks()) do | |
| 1450 | track:Stop() | |
| 1451 | end | |
| 1452 | humanoid.Running:connect(function(ws) | |
| 1453 | movespeed = ws | |
| 1454 | end) | |
| 1455 | end | |
| 1456 | local function landing() | |
| 1457 | if animpose == "Fall" then | |
| 1458 | local hit,pos = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4.1), char) | |
| 1459 | local p = Instance.new("Part")
| |
| 1460 | p.Anchored = true | |
| 1461 | p.CanCollide = false | |
| 1462 | p.Material = "Neon" | |
| 1463 | p.Size = Vector3.new(0.1,0.1,0.1) | |
| 1464 | p.CFrame = CFrame.new(pos) | |
| 1465 | setshape(p, "Sphere") | |
| 1466 | p.Parent = char | |
| 1467 | spawn(function() | |
| 1468 | for i = 1, 50 do | |
| 1469 | local cf = p.CFrame | |
| 1470 | p.Size = p.Size:Lerp(Vector3.new(10,0.2,10), 0.1) | |
| 1471 | p.CFrame = cf | |
| 1472 | p.Transparency = i/50 | |
| 1473 | swait() | |
| 1474 | end | |
| 1475 | p:Destroy() | |
| 1476 | end) | |
| 1477 | end | |
| 1478 | end | |
| 1479 | spawn(function() | |
| 1480 | local foot = "left" | |
| 1481 | local rate = 0 | |
| 1482 | repeat swait() | |
| 1483 | if timestate == "Slow" then | |
| 1484 | local ws = humanoid.WalkSpeed | |
| 1485 | rootpart.Velocity = Vector3.new(humanoid.MoveDirection.X*ws,rootpart.Velocity.Y,humanoid.MoveDirection.Z*ws) | |
| 1486 | if not rootpart:FindFirstChild("Gravity") then
| |
| 1487 | local force = Instance.new("BodyForce")
| |
| 1488 | force.Name = "Gravity" | |
| 1489 | force.Force = Vector3.new(0,-196.2*playermass*10,0) | |
| 1490 | force.Parent = rootpart | |
| 1491 | end | |
| 1492 | if rate%2 == 0 then | |
| 1493 | local model = char:FindFirstChild("FakeModel") or Instance.new("Model")
| |
| 1494 | model.Name = "FakeModel" | |
| 1495 | model.Parent = char | |
| 1496 | for _,v in pairs(char:GetChildren()) do | |
| 1497 | local ok = false | |
| 1498 | for _,nm in pairs({"Head", "Torso", "Right Arm", "Left Arm", "Right Leg", "Left Leg"}) do
| |
| 1499 | if v.Name == nm then | |
| 1500 | ok = true | |
| 1501 | end | |
| 1502 | end | |
| 1503 | if v:IsA("BasePart") and v.Transparency < 1 and ok and v.Name ~= "effect" then
| |
| 1504 | local v = v | |
| 1505 | if v:IsA("Accessory") then
| |
| 1506 | v = v:FindFirstChild("Handle")
| |
| 1507 | end | |
| 1508 | local new = v:Clone() | |
| 1509 | new.Size = new.Size-Vector3.new(0.1,0.1,0.1) | |
| 1510 | new.CFrame = v.CFrame *CFrame.new(math.random(-5,5)/100,math.random(-5,5)/100,math.random(-5,5)/100) | |
| 1511 | new.CanCollide = false | |
| 1512 | for _,face in pairs({"Front", "Back", "Top", "Bottom", "Left", "Right"}) do
| |
| 1513 | new[face.."Surface"] = "SmoothNoOutlines" | |
| 1514 | end | |
| 1515 | new.Anchored = true | |
| 1516 | for _,e in pairs(new:GetChildren()) do | |
| 1517 | e:Destroy() | |
| 1518 | end | |
| 1519 | new.Parent = model | |
| 1520 | for _,e in pairs(v:GetDescendants()) do | |
| 1521 | if e:IsA("SpecialMesh") or e:IsA("Decal") and e.Transparency < 1 then
| |
| 1522 | e:Clone().Parent = new | |
| 1523 | end | |
| 1524 | end | |
| 1525 | spawn(function() | |
| 1526 | for i = 1, 15 do | |
| 1527 | new.Transparency = i/15 | |
| 1528 | if new:FindFirstChildOfClass("Decal") then
| |
| 1529 | new:FindFirstChildOfClass("Decal").Transparency = i/15
| |
| 1530 | end | |
| 1531 | swait() | |
| 1532 | end | |
| 1533 | new:Destroy() | |
| 1534 | end) | |
| 1535 | end | |
| 1536 | end | |
| 1537 | end | |
| 1538 | else | |
| 1539 | if rootpart:FindFirstChild("Gravity") then
| |
| 1540 | rootpart.Gravity:Destroy() | |
| 1541 | end | |
| 1542 | if char:FindFirstChild("FakeModel") then
| |
| 1543 | char.FakeModel:Destroy() | |
| 1544 | end | |
| 1545 | end | |
| 1546 | rate = rate + 1 | |
| 1547 | local wall = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,0,-1).unit * 4), char) == nil | |
| 1548 | local air = workspace:FindPartOnRay(Ray.new(rootpart.Position, Vector3.new(0,-1,0).unit * 4), char) == nil | |
| 1549 | local tvel = rootpart.Velocity | |
| 1550 | if air and tvel.Y > 0 then | |
| 1551 | animpose = "Jump" | |
| 1552 | end | |
| 1553 | if air and tvel.Y < 0 then | |
| 1554 | animpose = "Fall" | |
| 1555 | end | |
| 1556 | if not air and (math.abs(humanoid.MoveDirection.X)+math.abs(humanoid.MoveDirection.Z))>0 then | |
| 1557 | landing() | |
| 1558 | animpose = "Walking" | |
| 1559 | end | |
| 1560 | if not air and animpose == "Walking" and humanoid.WalkSpeed >= 20 then | |
| 1561 | landing() | |
| 1562 | animpose = "Running"--or Running | |
| 1563 | end | |
| 1564 | if not air and movespeed == 0 then | |
| 1565 | landing() | |
| 1566 | animpose = "Idle" | |
| 1567 | end | |
| 1568 | if animpose == "Idle" and rate%35 == 0 then | |
| 1569 | local left,pos1 = workspace:FindPartOnRay(Ray.new((char["Left Leg"].CFrame*CFrame.new(0,0,0)).p, Vector3.new(0,-1,0).unit * 1.1), char) | |
| 1570 | local right,pos2 = workspace:FindPartOnRay(Ray.new((char["Right Leg"].CFrame*CFrame.new(0,0,0)).p, Vector3.new(0,-1,0).unit * 1.1), char) | |
| 1571 | for i,v in pairs({"Right Leg", "Left Leg"}) do
| |
| 1572 | local bodypart = char[v] | |
| 1573 | local p = Instance.new("Part")
| |
| 1574 | p.Anchored = true | |
| 1575 | p.CanCollide = false | |
| 1576 | p.Material = "Neon" | |
| 1577 | p.Size = Vector3.new(0.1,0.1,0.1) | |
| 1578 | p.CFrame = CFrame.new(v == "Left Leg" and pos1 or pos2) | |
| 1579 | setshape(p, "Sphere") | |
| 1580 | p.Parent = char | |
| 1581 | spawn(function() | |
| 1582 | for i = 1, 50 do | |
| 1583 | local cf = p.CFrame | |
| 1584 | p.Size = p.Size:Lerp(Vector3.new(5,0.2,5), 0.1) | |
| 1585 | p.CFrame = cf | |
| 1586 | p.Transparency = i/50 | |
| 1587 | swait() | |
| 1588 | end | |
| 1589 | p:Destroy() | |
| 1590 | end) | |
| 1591 | end | |
| 1592 | end | |
| 1593 | if animpose == "Walking" or animpose == "Running" then | |
| 1594 | local left,pos1 = workspace:FindPartOnRay(Ray.new((char["Left Leg"].CFrame*CFrame.new(0,-0.95,0)).p, Vector3.new(0,-1,0).unit * 0.2), char) | |
| 1595 | local right,pos2 = workspace:FindPartOnRay(Ray.new((char["Right Leg"].CFrame*CFrame.new(0,-0.95,0)).p, Vector3.new(0,-1,0).unit * 0.2), char) | |
| 1596 | if left and foot == "right" then | |
| 1597 | foot = "left" | |
| 1598 | local p = Instance.new("Part")
| |
| 1599 | p.Anchored = true | |
| 1600 | p.CanCollide = false | |
| 1601 | p.Material = "Neon" | |
| 1602 | p.Size = Vector3.new(0.2,0.2,0.2) | |
| 1603 | p.CFrame = CFrame.new(pos1) | |
| 1604 | setshape(p, "Sphere") | |
| 1605 | p.Parent = char | |
| 1606 | spawn(function() | |
| 1607 | for i = 1, 50 do | |
| 1608 | local cf = p.CFrame | |
| 1609 | p.Size = p.Size:Lerp(Vector3.new(20,0.2,20), 0.1) | |
| 1610 | p.CFrame = cf | |
| 1611 | p.Transparency = i/50 | |
| 1612 | swait() | |
| 1613 | end | |
| 1614 | p:Destroy() | |
| 1615 | end) | |
| 1616 | end | |
| 1617 | if right and foot == "left" then | |
| 1618 | foot = "right" | |
| 1619 | local p = Instance.new("Part")
| |
| 1620 | p.Anchored = true | |
| 1621 | p.CanCollide = false | |
| 1622 | p.Material = "Neon" | |
| 1623 | p.Size = Vector3.new(0.2,0.2,0.2) | |
| 1624 | p.CFrame = CFrame.new(pos2) | |
| 1625 | setshape(p, "Sphere") | |
| 1626 | p.Parent = char | |
| 1627 | spawn(function() | |
| 1628 | for i = 1, 50 do | |
| 1629 | local cf = p.CFrame | |
| 1630 | p.Size = p.Size:Lerp(Vector3.new(20,0.2,20), 0.1) | |
| 1631 | p.CFrame = cf | |
| 1632 | p.Transparency = i/50 | |
| 1633 | swait() | |
| 1634 | end | |
| 1635 | p:Destroy() | |
| 1636 | end) | |
| 1637 | end | |
| 1638 | end | |
| 1639 | until not settings.CustomAnim | |
| 1640 | end) | |
| 1641 | local change = 5 | |
| 1642 | local cos,rad,ang,cf = math.cos,math.rad,CFrame.Angles,CFrame.new | |
| 1643 | while swait() and settings.CustomAnim do | |
| 1644 | local num = tick()*change | |
| 1645 | if animpose == "Walking" and cananim then | |
| 1646 | change = (humanoid.WalkSpeed/16)*9 | |
| 1647 | ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0.2) * -45 + 0)), 0.35) | |
| 1648 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 2 + -1) * 0.10000000149012 + 0.10000000149012) *ang(math.rad(cos(num * 2 + 0) * 3 + -10), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + -1) * 5 + 0)), 0.35) | |
| 1649 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + -1) *0.10000000149012 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 5 + 0), math.rad(cos(num * 1 + 0) * 55 + -15)), 0.35) | |
| 1650 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 1) * 2 + -5), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35) | |
| 1651 | rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 1) *0.10000000149012 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * -5 + 0), math.rad(cos(num * 1 + 0) * 55 + 15)), 0.35) | |
| 1652 | rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0.2) * -45 + 0)), 0.35) | |
| 1653 | end | |
| 1654 | if animpose == "Running" and cananim then | |
| 1655 | change = (humanoid.WalkSpeed/24)*10 | |
| 1656 | ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0.2) * -60 + 0)), 0.35) | |
| 1657 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 2 + -1) * 0.10000000149012 + 0.10000000149012) *ang(math.rad(cos(num * 2 + 0) * 3 + -20), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + -1) * 5 + 0)), 0.35) | |
| 1658 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + -1) *0.10000000149012 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 5 + 0), math.rad(cos(num * 1 + 0) * 65 + -10)), 0.35) | |
| 1659 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 1) * 2 + -5), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35) | |
| 1660 | rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 1) *0.10000000149012 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * -5 + 0), math.rad(cos(num * 1 + 0) * 65 + 10)), 0.35) | |
| 1661 | rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0.2) * -60 + 0)), 0.35) | |
| 1662 | end | |
| 1663 | if animpose == "Fall" and cananim then | |
| 1664 | rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.499999911, -2.98023224e-08, -4.37113847e-08, 0, 0.99999994, -0.848737478, 0.528814375, -3.70994933e-08, -0.528814375, -0.848737478, -2.31152111e-08), 0.03) | |
| 1665 | ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 2.98023224e-08, -4.37113883e-08, 0, -1, 0.751466334, 0.659771562, -3.28476375e-08, 0.659771562, -0.751466334, -2.88395317e-08), 0.03) | |
| 1666 | rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.9062047, 0.422839224, 3.96114643e-08, -0.422839224, 0.9062047, -1.84828899e-08), 0.03) | |
| 1667 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, -2.98023224e-08, -4.37113883e-08, 0, -1, 0.321224481, 0.947003067, -1.40411682e-08, 0.947003067, -0.321224481, -4.139482e-08), 0.03) | |
| 1668 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.385730505, 0.922611475, 0, 0.922611475, 0.385730505), 0.03) | |
| 1669 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0.394207865, -0.0643720552, -1, 0, 0, 0, -0.191213459, 0.981548548, 0, 0.981548548, 0.191213459), 0.03) | |
| 1670 | end | |
| 1671 | if animpose == "Idle" and cananim then | |
| 1672 | change = 3 | |
| 1673 | ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 1) *0.050000000745058 + 0.10000000149012, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 2 + 5), math.rad(cos(num * 0.5 + 0) * -5 + -5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35) | |
| 1674 | rj.C1 = rj.C1:Lerp(CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0.10000000149012 + 0.20000000298023) *ang(math.rad(cos(num * 1 + 0) * 1 + 0), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + 10)), 0.35) | |
| 1675 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 1, 0, 1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *-0.10100000351667 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 2), math.rad(cos(num * 1 + 0) * 0 + -5), math.rad(cos(num * 1 + 0) * -2 + -2)), 0.35) | |
| 1676 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 0) *0 + 0, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 1) * 2 + -3), math.rad(cos(num * 1 + 0) * 0 + 0), math.rad(cos(num * 1 + 0) * 0 + -5)), 0.35) | |
| 1677 | rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + -0.10100000351667, cos(num * 1 + 0) *-0.10100000351667 + -0.10199999809265, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 0 + 2), math.rad(cos(num * 1 + 0) * 0 + 5), math.rad(cos(num * 1 + 0) * 2 + 0)), 0.35) | |
| 1678 | rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)*cf(cos(num * 1 + 0) * 0 + 0, cos(num * 1 + 1) *0.050000000745058 + 0.10000000149012, cos(num * 1 + 0) * 0 + 0) *ang(math.rad(cos(num * 1 + 0) * 2 + 5), math.rad(cos(num * 0.5 + 0) * 5 + 5), math.rad(cos(num * 1 + 0) * 0 + 0)), 0.35) | |
| 1679 | end | |
| 1680 | if animpose == "Jump" and cananim then | |
| 1681 | rs.C1 = rs.C1:Lerp(CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, -0.665773153, -0.746154189, -2.91018694e-08, 0.746154189, -0.665773153, 3.26154357e-08), 0.25) | |
| 1682 | ls.C1 = ls.C1:Lerp(CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0.757894218, -0.652377486, -3.31286074e-08, -0.652377486, -0.757894218, 2.85163253e-08), 0.25) | |
| 1683 | rh.C1 = rh.C1:Lerp(CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0.751373947, 0.659876645, 3.28435981e-08, -0.659876645, 0.751373947, -2.88441235e-08), 0.25) | |
| 1684 | lh.C1 = lh.C1:Lerp(CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0.429746985, 0.902949333, -1.87848368e-08, 0.902949333, -0.429746985, -3.94691675e-08), 0.25) | |
| 1685 | neck.C1 = neck.C1:Lerp(CFrame.new(0, -0.5, 0, -1, 0, 0, 0, -0.201922834, 0.97940141, 0, 0.97940141, 0.201922834), 0.25) | |
| 1686 | rj.C1 = rj.C1:Lerp(CFrame.new(0, -0.318411648, 0.10930454, -1, 0, 0, 0, 0.324682653, 0.945823014, 0, 0.945823014, -0.324682653), 0.25) | |
| 1687 | end | |
| 1688 | end |