Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- owner=game:GetService("Players"):FindFirstChild("plytalent")
- local remotes=Instance.new("Folder",owner.PlayerGui)
- remotes.Name = "ZafkielRemoteEvent"
- Heal = Instance.new("RemoteEvent",remotes)
- SetMaxHp = Instance.new("RemoteEvent",remotes)
- Position = Instance.new("RemoteEvent",remotes)
- Anchored = Instance.new("RemoteEvent",remotes)
- hbin = Instance.new("HopperBin",owner.Backpack)
- hbin.Name = "Zafkiel"
- Heal.OnServerEvent:Connect(function(plr,target,amount)
- if plr.Name == "plytalent" then
- if plr and target and amount then
- if target then
- if target.Character:FindFirstChildOfClass("Humanoid") then
- local targethumanoid = target.Character:FindFirstChildOfClass("Humanoid")
- if targethumanoid.Health > 0 then
- if typeof(amount) == "number" then
- if amount > 0 then
- targethumanoid.Health = targethumanoid.Health + amount
- end
- end
- end
- end
- end
- end
- end
- end)
- SetMaxHp.OnServerEvent:Connect(function(plr,target,amount)
- if plr.Name == "plytalent" then
- if plr and target and amount then
- if target then
- if target.Character:FindFirstChildOfClass("Humanoid") then
- local targethumanoid = target.Character:FindFirstChildOfClass("Humanoid")
- if targethumanoid.Health > 0 then
- if typeof(amount) == "number" then
- if amount > 0 then
- targethumanoid.MaxHealth = amount
- targethumanoid.Health = targethumanoid.Health + amount
- end
- end
- end
- end
- end
- end
- end
- end)
- Position.OnServerEvent:Connect(function(plr,target,Cf)
- if plr.Name == "plytalent" then
- if target then
- target.HumanoidRootPart.CFrame = Cf
- end
- end
- end)
- Anchored.OnServerEvent:Connect(function(plr,target,value)
- if plr.Name == "plytalent" then
- target = value
- end
- end)
- NLS([[local hopperbin = script.Parent
- local mouse_event = nil
- local subab = {}
- local subabevent = {}
- local plrs = game:GetService("Players")
- local plr = game:GetService("Players").LocalPlayer
- for i =1 , 8 do
- subab[i] = Instance.new("HopperBin")
- end
- local Store ={Frames={},Hp={},MaxHp={},PositionAndOrientation={},Events={},rewinding={}}
- wait(3)
- local RemoteFolder = plr.PlayerGui.ZafkielRemoteEvent
- function startFramesCounter(targetplr)
- local Frameindex = "Frames_"..targetplr.Name
- local PositionAndOrientationIndex="CFrame_"..targetplr.Name
- local MaxHpIndex ="MaxHealthPoint_"..targetplr.Name
- local HpIndex = "HealthPoint_"..targetplr.Name
- local BooleanIndexRewind = "GotRewindedTime_"..targetplr.Name
- local EventIndex = "Events_"..targetplr.Name
- Store.Frames[Frameindex] = 0
- Store.PositionAndOrientation[PositionAndOrientationIndex] = {}
- Store.MaxHp[MaxHpIndex] = {}
- Store.Hp[HpIndex]={}
- Store.rewinding[BooleanIndexRewind] = false
- Store.Events[EventIndex]=game:GetService("RunService").RenderStepped:Connect(function()
- if not Store.rewinding[BooleanIndexRewind] then
- Store.Frames[Frameindex] = Store.Frames[Frameindex] + 1
- Store.PositionAndOrientation[PositionAndOrientationIndex][Store.Frames[Frameindex] ]=targetplr.Character.HumanoidRootPart.CFrame
- Store.MaxHp[MaxHpIndex][Store.Frames[Frameindex] ]=targetplr.Character:FindFirstChildOfClass("Humanoid").MaxHealth
- Store.Hp[HpIndex][Store.Frames[Frameindex] ]=targetplr.Character:FindFirstChildOfClass("Humanoid").Health
- end
- end)
- end
- game:GetService("Players").PlayerAdded:Connect(startFramesCounter)
- game:GetService("Players").PlayerRemoving:Connect(function(removingplr)
- local Frameindex = "Frames_"..removingplr.Name
- local PositionAndOrientationIndex="CFrame_"..removingplr.Name
- local MaxHpIndex ="MaxHealthPoint_"..removingplr.Name
- local HpIndex = "HealthPoint_"..removingplr.Name
- local EventIndex = "Events_"..removingplr.Name
- Store.Events[EventIndex]:Disconnect()
- Store.Events[EventIndex] = nil
- Store.PositionAndOrientation[PositionAndOrientationIndex] = nil
- Store.MaxHp[MaxHpIndex] = nil
- Store.Hp[HpIndex]= nil
- Store.Frames[Frameindex] = nil
- end)
- --startFramesCounter(game:GetService("Players").LocalPlayer)
- for _, v in pairs(game:GetService("Players"):GetPlayers())do
- startFramesCounter(v)
- end
- subab[1].Name = "Aleph" -- speed up external time (replace health script and add velocity to y ws)
- subab[2].Name = "Bet" -- Slow external time (replace health script and gravity ws decreases velocity y)
- subab[3].Name = "Gimmel" -- speed up internal time(replace health script)
- subab[4].Name = "Dalet" -- rewind time half done
- subab[5].Name = "Zayin" -- freeze time (loop anchors part)
- subab[6].Name = "Yud Bet" -- rewind time for n (store current CF and rewind after n teleport back to store CF)
- subab[7].Name = "Teleportation"
- subab[8].Name = "Back"
- function waitframe(frame)
- for i = 1 , frame do
- game:GetService("RunService").RenderStepped:Wait()
- end
- end
- function ahhhh_it_rewind_time(targetplayer,targetframe)
- targetframe = targetframe or 180
- if not Store.rewinding["GotRewindedTime_"..targetplayer.Name] then
- Store.rewinding["GotRewindedTime_"..targetplayer.Name] = true
- local ws=targetplayer.Character:FindFirstChildOfClass("Humanoid").WalkSpeed
- local jp=targetplayer.Character:FindFirstChildOfClass("Humanoid").JumpPower
- if #Store.PositionAndOrientation["CFrame_"..targetplayer.Name] < targetframe then
- targetframe = #Store.PositionAndOrientation["CFrame_"..targetplayer.Name]
- end
- index = #Store.PositionAndOrientation["CFrame_"..targetplayer.Name] - targetframe
- if index < 1 then
- index = 1
- end
- Store.Frames["Frames_"..targetplayer.Name] = index
- RemoteFolder.Anchored:FireServer(targetplayer.Character.HumanoidRootPart,true)
- --{targetpart,true or false}
- wait(0.5)
- for i= index+1,#Store.PositionAndOrientation["CFrame_"..targetplayer.Name] do
- Store.PositionAndOrientation["CFrame_"..targetplayer.Name][i] = nil
- end
- --targetplayer.Character.Humanoid.WalkSpeed = ws*0.1
- --targetplayer.Character.Humanoid.JumpPower = jp*0.1
- RemoteFolder.Anchored:FireServer(targetplayer.Character.HumanoidRootPart,false)
- --{targetpart,true or false}
- RemoteFolder.Position:FireServer(targetplayer.Character,Store.PositionAndOrientation["CFrame_"..targetplayer.Name][index])
- --{target,amount}
- RemoteFolder.Heal:FireServer(targetplayer,Store.Hp["HealthPoint_"..targetplayer.Name][index])
- -- {target,amount}
- RemoteFolder.SetMaxHp:FireServer(targetplayer,Store.MaxHp["MaxHealthPoint_"..targetplayer.Name][index])
- --{target,amount}
- Store.rewinding["GotRewindedTime_"..targetplayer.Name] = false
- Store.Frames["Frame_"..targetplayer.Name]=index
- --coroutine.resume(coroutine.create(function()
- -- waitframe(180)
- -- targetplayer.Character.Humanoid.WalkSpeed = ws
- -- targetplayer.Character.Humanoid.JumpPower = jp
- -- print("Gain Normal Speed")
- --end))
- end
- end
- hopperbin.Selected:Connect(function(playermouse)
- mouse_event = playermouse.Button1Down:Connect(function()
- print("PRESSED M1")
- subab[1].Selected:Connect(function(m)
- subabevent[1] = m.Button1Down:Connect(function()
- -- m.Button1Down:Connect(function()
- print("CALLED AB Aleph")
- end)
- end)
- subab[2].Selected:Connect(function(m)
- subabevent[3] = m.Button1Down:Connect(function()
- -- m.Button1Down:Connect(function()
- print("CALLED AB Bet")
- end)
- end)
- subab[3].Selected:Connect(function(m)
- subabevent[5] = m.Button1Down:Connect(function()
- -- m.Button1Down:Connect(function()
- print("CALLED AB Gimmel")
- end)
- end)
- subab[4].Selected:Connect(function(m)
- subabevent[7] = m.Button2Down:Connect(function()
- -- m.Button1Down:Connect(function()
- print("CALLED AB Dalet")
- --if cd.dalet <= 0 then
- -- cd.dalet = 3
- ahhhh_it_rewind_time(plr,180)
- --end
- end)
- subabevent[8] = m.Button1Down:Connect(function()
- -- m.Button1Down:Connect(function()
- print("CALLED AB Dalet")
- if m.Target.Parent then
- local marktarget=plrs:GetPlayerFromCharacter(m.Target.Parent)
- if marktarget then
- ahhhh_it_rewind_time(marktarget,180)
- end
- end
- end)
- end)
- subab[5].Selected:Connect(function(m)
- subabevent[9] = m.Button1Down:Connect(function()
- -- m.Button1Down:Connect(function()
- print("CALLED AB Zayin")
- end)
- end)
- subab[6].Selected:Connect(function(m)
- subabevent[11] = m.Button1Down:Connect(function()
- -- m.Button1Down:Connect(function()
- print("CALLED AB Yud Bet")
- end)
- end)
- subab[7].Selected:Connect(function(m)
- subabevent[13]= m.Button1Down:Connect(function()
- --m.Button1Down:Connect(function()
- dist=m.Hit
- print("CALLED AB Teleportation")
- Magnitude=(plr.Character.HumanoidRootPart.Position-dist.p).Magnitude
- if Magnitude <= 7500 and Magnitude >= -7500 then
- plr.Character.HumanoidRootPart.Anchored = true
- wait(1)
- plr.Character.HumanoidRootPart.CFrame = dist
- plr.Character.HumanoidRootPart.Anchored= false
- else
- print("ERR:TOO FAR")
- end
- end)
- end)
- subab[8].Selected:Connect(function(m)
- subabevent[15] = m.Button1Down:Connect(function()
- -- m.Button1Down:Connect(function()
- for i =1 , #subab do
- subab[i].Parent = nil
- end
- for i =1 , #subabevent do
- subabevent[i]:Disconnect()
- end
- end)
- end)
- for i =1 , #subab do
- subab[i].Parent = hopperbin.Parent
- end
- end)
- end)
- hopperbin.Deselected:Connect(function()
- if mouse_event then
- mouse_event:Disconnect()
- end
- end)
- ]],hbin)
Add Comment
Please, Sign In to add comment