Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script has convert to FE by who i don't know?
- -----------------------------------------------------
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code by Joseph Deramus")
- local rp = RealPlayer
- script.Parent = rp.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local Mouse = Player:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then return s[k] end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end,
- __call = function(self,...)
- local s = rawget(self,"_RealService")
- if s then return s(...) end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return self[s]
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- g.RunService = FakeService({
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- setmetatable(g,{
- __index=function(self,s)
- return _rg:GetService(s) or typeof(_rg[s])=="function"
- and function(_,...)return _rg[s](_rg,...)end or _rg[s]
- end,
- __newindex = fsmt.__newindex,
- __call = fsmt.__call
- })
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- Save New Duplicate & Edit Just Text Twitter
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184
- 185
- 186
- 187
- 188
- 189
- 190
- 191
- 192
- 193
- 194
- 195
- 196
- 197
- 198
- 199
- 200
- 201
- 202
- 203
- 204
- 205
- 206
- 207
- 208
- 209
- 210
- 211
- 212
- 213
- 214
- 215
- 216
- 217
- 218
- 219
- 220
- 221
- 222
- 223
- 224
- 225
- 226
- 227
- 228
- 229
- 230
- 231
- 232
- 233
- 234
- 235
- 236
- 237
- 238
- 239
- 240
- 241
- 242
- 243
- 244
- 245
- 246
- 247
- 248
- 249
- 250
- 251
- 252
- 253
- 254
- 255
- 256
- 257
- 258
- 259
- 260
- 261
- 262
- 263
- 264
- 265
- 266
- 267
- 268
- 269
- 270
- 271
- 272
- 273
- 274
- 275
- 276
- 277
- 278
- 279
- 280
- 281
- 282
- 283
- 284
- 285
- 286
- 287
- 288
- 289
- 290
- 291
- 292
- 293
- 294
- 295
- 296
- 297
- 298
- 299
- 300
- 301
- 302
- 303
- 304
- 305
- 306
- 307
- 308
- 309
- 310
- 311
- 312
- 313
- 314
- 315
- 316
- 317
- 318
- 319
- 320
- 321
- 322
- 323
- 324
- 325
- 326
- 327
- 328
- 329
- 330
- 331
- 332
- 333
- 334
- 335
- 336
- 337
- 338
- 339
- 340
- 341
- 342
- 343
- 344
- 345
- 346
- 347
- 348
- 349
- 350
- 351
- 352
- 353
- 354
- 355
- 356
- 357
- 358
- 359
- 360
- 361
- 362
- 363
- 364
- 365
- 366
- 367
- 368
- 369
- 370
- 371
- 372
- 373
- 374
- 375
- 376
- 377
- 378
- 379
- 380
- 381
- 382
- 383
- 384
- 385
- 386
- 387
- 388
- 389
- 390
- 391
- 392
- 393
- 394
- 395
- 396
- 397
- 398
- 399
- 400
- 401
- 402
- 403
- 404
- 405
- 406
- 407
- 408
- 409
- 410
- 411
- 412
- 413
- 414
- 415
- 416
- 417
- 418
- 419
- 420
- 421
- 422
- 423
- 424
- 425
- 426
- 427
- 428
- 429
- 430
- 431
- 432
- 433
- 434
- 435
- 436
- 437
- 438
- 439
- 440
- 441
- 442
- 443
- 444
- 445
- 446
- 447
- 448
- 449
- 450
- 451
- 452
- 453
- 454
- 455
- 456
- 457
- 458
- 459
- 460
- 461
- 462
- 463
- 464
- 465
- 466
- 467
- 468
- 469
- 470
- 471
- 472
- 473
- 474
- 475
- 476
- 477
- 478
- 479
- 480
- 481
- 482
- 483
- 484
- 485
- 486
- 487
- 488
- 489
- 490
- 491
- 492
- 493
- 494
- 495
- 496
- 497
- 498
- 499
- 500
- 501
- 502
- 503
- 504
- 505
- 506
- 507
- 508
- 509
- 510
- 511
- 512
- 513
- 514
- 515
- 516
- 517
- 518
- 519
- 520
- 521
- 522
- 523
- 524
- 525
- 526
- 527
- 528
- 529
- 530
- 531
- 532
- 533
- 534
- 535
- 536
- 537
- 538
- 539
- 540
- --[[ Time Testing ]]--
- -------------------------------------------------------
- --[[
- This script was created by WafflesAreVeryGood.
- ATTACKS
- _______
- --]]
- -------------------------------------------------------
- print("This script was created by WafflesAreVeryGood!")
- --[[Changeable Variables]]--
- local multiplier = 1 --Attack multiplier (default is 1)
- local soundlist = {
- HardHit1 = "rbxassetid://565207203",
- HardHit2 = "rbxassetid://541909913",
- HardHit3 = "rbxassetid://541909983",
- WeakHit1 = "rbxassetid://558642292",
- WeakHit2 = "rbxassetid://541907812",
- Slice1 = "rbxassetid://260429964",
- Slice2 = "rbxassetid://260430015",
- Explosion1 = "rbxassetid://138186576",
- Explosion2 = "rbxassetid://157878578",
- Woosh1 = "rbxassetid://541909867",
- Woosh2 = "rbxassetid://541909763",
- TimeSlow = "rbxassetid://615678808",
- TimeStop = "rbxassetid://926382097",
- TimeResume = "rbxassetid://894793352",
- TimeFast = "rbxassetid://743499393",
- TimeReverse = "rbxassetid://618737332",
- }
- --[[Important Variables]]--
- local plr = game:GetService('Players').LocalPlayer
- local char = plr.Character
- local mouse = plr:GetMouse()
- local input = game:GetService('UserInputService')
- ----
- local joints = {"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}
- local torso,head,rootpart = char.Torso,char.Head,char.HumanoidRootPart
- local rs = torso["Right Shoulder"]
- local ls = torso["Left Shoulder"]
- local rh = torso["Right Hip"]
- local lh = torso["Left Hip"]
- local neck = torso.Neck
- local rj = rootpart["RootJoint"]
- ----
- local huge = Vector3.new(math.huge, math.huge, math.huge)
- local attacking = false
- local cananim = true
- local timestop = false
- local timeslow = false
- local timefast = false
- local reversing = false
- local unfreeze = {}
- local sounddata = {}
- local connections = {}
- local healthstuff = {}
- --[[ Functions ]]--
- function addattack(keycode, func)
- input.InputBegan:connect(function(inp)
- if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
- func()
- end
- end)
- end
- function attackend(keycode, func)
- input.InputEnded:connect(function(inp)
- if inp.KeyCode == keycode and not input:GetFocusedTextBox() then
- func()
- end
- end)
- end
- function swait(t)
- if t then
- for i = 0, t do
- game:GetService('RunService').Stepped:wait(0)
- end
- else
- game:GetService('RunService').Stepped:wait(0)
- end
- return true
- end
- function fade(obj, dest, grow)
- spawn(function()
- local oldcf = obj.CFrame
- for i = 0, 10 do
- if grow then
- obj.Size = obj.Size +Vector3.new(1,1,1)
- obj.CFrame = oldcf
- end
- obj.Transparency = obj.Transparency +0.1
- swait()
- end
- if dest then
- obj:Destroy()
- end
- end)
- end
- function replacejoint(name)
- local j = torso:FindFirstChild(name)
- if not j then j = char.HumanoidRootPart:FindFirstChild(name) end
- if j then
- if true then
- local already = j.Parent:FindFirstChild(j.Name.." Replacement")
- local new = Instance.new("Weld")
- local c0 = j.C0
- local c1 = j.C1
- new.Part0 = j.Part0
- j.Part0 = nil
- new.Name = j.Name.." Replacement"
- if already then c0 = already.C0 c1 = already.C1 already:Destroy() end
- new.Parent = j.Parent
- new.Part1 = j.Part1
- new.C0 = c0
- new.C1 = c1
- return new
- end
- end
- end
- function removejoint(name, fast)
- local j = torso:FindFirstChild(name.." Replacement")
- if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end
- if j then
- local p0 = j.Part0
- if p0 ~= nil then
- local c0 = j.C0
- local c1 = j.C1
- j:Destroy()
- local new = p0:FindFirstChild(name)
- local ac0 = new.C0
- local ac1 = new.C1
- new.Part0 = p0
- new.C0 = c0
- new.C1 = c1
- spawn(function()
- if name ~= "RootJoint" then
- if not fast then
- for i = 0, 0.6, 0.1 do
- new.C0 = new.C0:Lerp(ac0, 0.5)
- new.C1 = new.C1:lerp(ac1, 0.5)
- swait()
- end
- else
- new.C0 = new.C0:Lerp(ac0, 1)
- new.C1 = new.C1:lerp(ac1, 1)
- end
- end
- end)
- end
- end
- end
- function fixalljoints(fast)
- for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do
- removejoint(v, fast)
- end
- end
- function getnewjoints()
- local rs = replacejoint("Right Shoulder")
- local ls = replacejoint("Left Shoulder")
- local rh = replacejoint("Right Hip")
- local lh = replacejoint("Left Hip")
- local neck = replacejoint("Neck")
- local rj = replacejoint("RootJoint")
- return rs,ls,rh,lh,neck,rj
- end
- function knockback(hit, force)
- local bv = Instance.new("BodyVelocity")
- bv.MaxForce = huge
- bv.Velocity = force
- bv.Parent = hit
- game:GetService('Debris'):AddItem(bv, 0.15)
- end
- function soundeffect(id, volume, speed, parent, forcewait)
- local func = function()
- local s = LoadLibrary("RbxUtility").Create("Sound")()
- s.Name = "SoundEffect"
- s.Volume = volume
- s.PlaybackSpeed = speed
- s.SoundId = id
- s.Name = "dont"
- s.Looped = false
- s.Parent = parent
- s:Play()
- repeat wait() until not s.Playing
- s:Destroy()
- end
- if forcewait then
- func()
- else
- spawn(func)
- end
- end
- function getascendants(obj)
- local par = obj
- local ret = {}
- pcall(function()
- repeat
- par = par.Parent
- if par ~= nil then
- table.insert(ret, par)
- end
- until par == nil
- end)
- return ret
- end
- function findascendant(obj, class)
- local par = obj
- local ret = nil
- pcall(function()
- repeat
- par = par.Parent
- if par:IsA(class) then
- ret = par
- break
- end
- until par == nil
- end)
- return ret
- end
- function hurt(hit, dmg)
- --pcall(function()
- local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
- if hum then
- if hum.Parent ~= char then
- hum.Health = hum.Health - dmg
- hum.Health = hum.Health - dmg
- soundeffect(soundlist.Headshot, 1.5, 1, workspace.CurrentCamera)
- return true
- end
- end
- --end)
- end
- --[[ Actual script :OOOOOOOOOO ]]--
- addattack(Enum.KeyCode.G, function()
- if not timeslow and not timefast and not reversing then
- local p = Instance.new("Part")
- p.Anchored = true
- p.Material = "Glass"
- p.Size = Vector3.new(0.1,0.1,0.1)
- p.BrickColor = BrickColor.new("Toothpaste")
- p.CanCollide = false
- p.CFrame = char.HumanoidRootPart.CFrame
- local m = Instance.new("SpecialMesh")
- m.MeshType = "Sphere"
- m.Parent = p
- p.Parent = char
- spawn(function()
- for i = 1, 50 do
- p.Transparency = i/50
- p.Size = p.Size:Lerp(Vector3.new(40,40,40),0.1)
- p.CFrame = char.HumanoidRootPart.CFrame
- swait()
- end
- p:Destroy()
- end)
- if not timestop then
- local s = Instance.new("Sound")
- s.Volume = 3
- s.Name = "dont"
- s.SoundId = soundlist.TimeStop
- s.Parent = char
- s:Play()
- dcon = workspace.DescendantAdded:connect(function(obj)
- pcall(function()
- swait()
- local ok = true
- for i,v in pairs(getascendants(obj)) do
- if v.Name:lower():find("ignoremodel") then
- ok = false
- end
- end
- if obj:IsA("BasePart") and ok and not findascendant(obj, "Tool") and not findascendant(obj, "HopperBin") and not findascendant(obj, "Camera") then
- if not obj.Anchored and obj.Name ~= "HumanoidRootPart" then
- table.insert(unfreeze, obj)
- obj.Anchored = true
- end
- end
- if obj:IsA("Sound") and obj.Name ~= "dont" then
- if obj.Playing then
- obj:Pause()
- table.insert(unfreeze, obj)
- end
- end
- if obj:IsA("Humanoid") then
- local last = obj.Health
- local always = last
- local con = obj.HealthChanged:connect(function(health)
- if last-health > 0 then
- table.insert(healthstuff, {hum = obj, change = last-health})
- end
- last = health
- obj.Health = always
- end)
- table.insert(connections, con)
- end
- end)
- end)
- for i,v in pairs(workspace:GetDescendants()) do
- pcall(function()
- if v:IsA("BasePart") then
- local ok = true
- for i,e in pairs(getascendants(v)) do
- if e.Name:lower():find("ignore_model") then
- ok = false
- end
- if e:IsA("Camera") then
- ok = false
- end
- end
- if not v.Anchored and ok and v.Parent ~= char and not findascendant(v, "Camera") and not findascendant(v, "Tool") and not findascendant(v, "HopperBin") then
- local ok = true
- if v.Parent:IsA("Accessory") then ok = false end
- if ok and v.Name ~= "HumanoidRootPart" then
- v.Anchored = true
- table.insert(unfreeze, v)
- end
- end
- end
- end)
- pcall(function()
- if v:IsA("Sound") and v.Name ~= "dont" then
- if v.Playing then
- v:Pause()
- table.insert(unfreeze, v)
- end
- end
- end)
- pcall(function()
- if v:IsA("Humanoid") then
- local last = v.Health
- local always = last
- local con = v.HealthChanged:connect(function(health)
- if last-health > 0 then
- table.insert(healthstuff, {hum = v, change = last-health})
- end
- last = health
- v.Health = always
- end)
- table.insert(connections, con)
- end
- end)
- end
- timestop = true
- local cor = Instance.new("ColorCorrectionEffect")
- cor.Name = "tstopef"
- cor.Parent = game:GetService('Lighting')
- for i = 1, 50 do
- cor.Saturation = Vector3.new(cor.Saturation,0,0):Lerp(Vector3.new(-5,0,0), 0.05).X
- swait()
- end
- game.Debris:AddItem(s, 2)
- else
- local s = Instance.new("Sound")
- s.Volume = 7
- s.Name = "dont"
- s.SoundId = soundlist.TimeResume
- s.Parent = char
- s:Play()
- local cor = game:GetService('Lighting'):FindFirstChild("tstopef")
- if cor then
- for i = 1, 50 do
- cor.Saturation = Vector3.new(cor.Saturation,0,0):Lerp(Vector3.new(0,0,0), 0.05).X
- swait()
- end
- cor:Destroy()
- end
- game.Debris:AddItem(s, 2)
- timestop = false
- for i,v in pairs(unfreeze) do
- pcall(function()
- v.Anchored = false
- end)
- pcall(function()
- v:Resume()
- end)
- end
- for i,v in pairs(connections) do
- pcall(function()
- v:disconnect()
- end)
- end
- for i,v in pairs(healthstuff) do
- pcall(function()
- local hum = v.hum
- hum.Health = hum.Health - v.change
- if hum.Parent:FindFirstChild("Health") then
- pcall(function()
- hum.Parent.Health.Disabled = false
- end)
- end
- end)
- end
- pcall(function()
- dcon:disconnect()
- end)
- healthstuff = {}
- unfreeze = {}
- end
- end
- end)
- local humanoiddata = {}
- local bodymoverdata = {}
- local dcon2
- local connectionsdata = {}
- addattack(Enum.KeyCode.H, function()
- if not timeslow and not timestop and not reversing then
- local p = Instance.new("Part")
- p.Anchored = true
- p.Material = "Glass"
- p.Size = Vector3.new(0.1,0.1,0.1)
- p.BrickColor = BrickColor.new("Toothpaste")
- p.CanCollide = false
- p.CFrame = char.HumanoidRootPart.CFrame
- local m = Instance.new("SpecialMesh")
- m.MeshType = "Sphere"
- m.Parent = p
- p.Parent = char
- spawn(function()
- for i = 1, 50 do
- p.Transparency = i/50
- p.Size = p.Size:Lerp(Vector3.new(40,40,40),0.1)
- p.CFrame = char.HumanoidRootPart.CFrame
- swait()
- end
- p:Destroy()
- end)
- if not timefast then
- timefast = true
- soundeffect(soundlist.TimeFast, 1.5, 1, char)
- for i,v in pairs(workspace:GetDescendants()) do
- if v:IsA("Humanoid") then
- table.insert(humanoiddata, {Hum = v, WS = v.WalkSpeed, JP = v.JumpPower})
- for _,track in pairs(v:GetPlayingAnimationTracks()) do
- end
- local con = v.AnimationPlayed:connect(function(track)
- end)
- table.insert(connections, con)
- end
- if v:IsA("BodyVelocity") then
- table.insert(bodymoverdata, {Mover = v, Vel = v.Velocity})
- end
- if v:IsA("BodyPosition") then
- table.insert(bodymoverdata, {Mover = v, Vel = v.P})
- end
- if v.Name == "HumanoidRootPart" and v:IsA("BasePart") then
- end
- if v:IsA("Sound") and v.Name ~= "dont" then
- table.insert(sounddata, {Sound = v, Speed = v.PlaybackSpeed})
- end
- end
- dcon2 = workspace.DescendantAdded:connect(function(v)
- swait(2)
- if v:IsA("Humanoid") then
- table.insert(humanoiddata, {Hum = v, WS = v.WalkSpeed, JP = v.JumpPower})
- for _,track in pairs(v:GetPlayingAnimationTracks()) do
- track:AdjustSpeed(1.4)
- end
- local con = v.AnimationPlayed:connect(function(track)
- track:AdjustSpeed(1.4)
- end)
- table.insert(connections, con)
- end
- if v:IsA("BodyVelocity") then
- table.insert(bodymoverdata, {Mover = v, Vel = v.Velocity})
- end
- if v:IsA("BodyPosition") then
- table.insert(bodymoverdata, {Mover = v, Vel = v.P})
- end
- if v.Name == "HumanoidRootPart" and v:IsA("BasePart") then
- end
- if v:IsA("Sound") and v.Name ~= "dont" then
- table.insert(sounddata, {Sound = v, Speed = v.PlaybackSpeed})
- end
- end)
- else
- timefast = false
- soundeffect(soundlist.TimeResume, 1.5, 1, char)
- for i,v in pairs(humanoiddata) do
- pcall(function()
- v["Hum"].WalkSpeed = v["WS"]
- v["Hum"].JumpPower = v["JP"]
- end)
- end
- for i,v in pairs(bodymoverdata) do
- pcall(function()
- if v["Mover"]:IsA("BodyVelocity") then
- v["Mover"].Velocity = v["Vel"]
- end
- if v["Mover"]:IsA("BodyPosition") then
- v["Mover"].P = v["Vel"]
- end
- end)
- end
- for i,v in pairs(sounddata) do
- pcall(function()
- v["Sound"].PlaybackSpeed = v["Speed"]
- end)
- end
- for i,v in pairs(connections) do
- pcall(function()
- v:disconnect()
- end)
- end
- connections = {}
- pcall(function()
- dcon2:disconnect()
- end)
- humanoiddata = {}
- end
- end
- end)
- local reversedata = {}
- local saved = false
- addattack(Enum.KeyCode.C, function()
- if not timestop and not timeslow and not timefast then
- if not saved then
- saved = true
- for i,v in pairs(workspace:GetDescendants()) do
- end
- else
- reversing = true
- saved = false
- soundeffect(soundlist.TimeReverse, 2, 1, workspace)
- for i = 1, 10 do
- for _,v in pairs(reversedata) do
- local obj = v.obj
- local cf = v.cf obj.Anchored = true
- end
- end
- swait()
- end
- char.HumanoidRootPart.Velocity = Vector3.new(0,0,0)
- reversedata = {}
- reversing = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement