Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --//Local Scripts for the World, aka time stop
- local Player = game:GetService("Players").LocalPlayer
- local rp = game:GetService("ReplicatedStorage")
- local World = rp:WaitForChild("World")
- local UIS = game:GetService("UserInputService")
- local debounce = false
- local cooldown = 10
- UIS.InputBegan:Connect(function(input,IsTyping)
- if IsTyping then
- return
- elseif input.KeyCode == Enum.KeyCode.C then
- if workspace:FindFirstChild(Player.Name.." Stand") then
- if debounce == false then
- debounce = true
- World:FireServer()
- end
- end
- end
- end)
- World.OnClientEvent:Connect(function()
- wait(cooldown)
- debounce = false
- end)
- --//Server scripts for the world, aka time stop
- local rp = game:GetService("ReplicatedStorage")
- local World = rp:WaitForChild("World")
- local TweenService = game:GetService("TweenService")
- local Debris = game:GetService("Debris")
- local range = 100
- local duration = 3
- World.OnServerEvent:Connect(function(Player)
- local Stand = workspace:FindFirstChild(Player.Name.." Stand"):WaitForChild("Dummy")
- if Stand then
- local Character = Player.Character
- local Humanoid = Character:WaitForChild("Humanoid")
- local HumanoidRP = Character:WaitForChild("HumanoidRootPart")
- local prevWeld = Stand:WaitForChild("HumanoidRootPart"):WaitForChild("Stand Weld")
- prevWeld:Destroy()
- Stand:WaitForChild("HumanoidRootPart").CFrame = HumanoidRP.CFrame * CFrame.new(0,-.5,-3)
- local weld = Instance.new("ManualWeld")
- weld.Name = "Stand Weld"
- weld.Part0 = Stand:WaitForChild("HumanoidRootPart")
- weld.Part1 = HumanoidRP
- weld.C0 = Stand:WaitForChild("HumanoidRootPart").CFrame:inverse() * HumanoidRP.CFrame
- weld.Parent = weld.Part0
- local animControl = Stand:WaitForChild("AnimControl")
- for i, track in pairs(animControl:GetPlayingAnimationTracks()) do
- track:Stop()
- end
- local Spread = animControl:LoadAnimation(script.Spread)
- Spread:Play()
- local Folder = Instance.new("Folder",workspace)
- Folder.Name = Player.Name.." The World"
- local Orb = script.Orb:Clone()
- Orb.CFrame = Stand:WaitForChild("HumanoidRootPart").CFrame
- Orb.Orientation = Character:WaitForChild("HumanoidRootPart").Orientation
- Orb.Parent = Folder
- local goal = {}
- goal.Size = Orb.Size + Vector3.new(100,100,100)
- local info = TweenInfo.new(1,Enum.EasingStyle.Elastic,Enum.EasingDirection.InOut,0,false,.25)
- local tween = TweenService:Create(Orb,info,goal)
- tween:Play()
- spawn(function()
- wait(.5)
- for i, chars in pairs(workspace:GetChildren()) do
- if chars:FindFirstChild("Humanoid") then
- if chars ~= Character then
- for j, part in pairs(chars:GetChildren()) do
- if part:IsA("MeshPart") or part:IsA("Part") then
- spawn(function()
- part.Anchored = true
- wait(duration)
- part.Anchored = false
- end)
- end
- end
- end
- end
- end
- end)
- spawn(function()
- wait(1)
- local prevWeld = Stand:WaitForChild("HumanoidRootPart"):WaitForChild("Stand Weld")
- prevWeld:Destroy()
- Stand:WaitForChild("HumanoidRootPart").CFrame = HumanoidRP.CFrame * CFrame.new(2,0,2)
- local weld = Instance.new("ManualWeld")
- weld.Name = "Stand Weld"
- weld.Part0 = Stand:WaitForChild("HumanoidRootPart")
- weld.Part1 = HumanoidRP
- weld.C0 = Stand:WaitForChild("HumanoidRootPart").CFrame:inverse() * HumanoidRP.CFrame
- weld.Parent = weld.Part0
- for i, track in pairs(animControl:GetPlayingAnimationTracks()) do
- track:Stop()
- end
- local Idle = animControl:LoadAnimation(script.Idle)
- Idle:Play()
- end)
- wait(duration)
- Debris:AddItem(Orb,1)
- local goal2 = {}
- goal2.Size = Orb.Size - Orb.Size
- local info2 = TweenInfo.new(1,Enum.EasingStyle.Elastic,Enum.EasingDirection.InOut,0,false,.25)
- local tween2 = TweenService:Create(Orb,info2,goal2)
- tween2:Play()
- World:FireClient(Player)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment