Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- u = game:GetService("UserInputService")
- s = game.ReplicatedStorage:FindFirstChild("Sound")
- --h = game:GetService("Players").LocalPlayer.PlayerGui:WaitForChild("Main_HUD").Mana.Bar.v
- w = 1.9
- q = true
- u.InputBegan:Connect(function(f)
- if f.UserInputType == Enum.UserInputType.Keyboard then
- if f.KeyCode == Enum.KeyCode.Z and q and h.Value > 0 then
- q=false
- --h.Value = h.Value - 10
- print("WORKS");
- s:Play()
- wait(w)
- for _,v in pairs(workspace:GetChildren()) do
- if v:IsA("Model") and v.Name~=game:GetService("Players").LocalPlayer.Name then
- for f,z in pairs(v:GetChildren()) do
- if z:IsA("Part") or z:IsA("MeshPart") then
- z.Anchored = f
- --local xp = Instance.new("Explosion")
- --xp.Position = z.Position
- --xp.Parent = z
- end
- end
- end
- end
- if s.Playing then
- s.PlaybackSpeed = .8
- end
- end
- end
- end)
- s.Ended:connect(function()
- wait(4)
- for _,v in pairs(workspace:GetChildren()) do
- if v:IsA("Model") and v.Name~=game:GetService("Players").LocalPlayer.Name then
- for f,z in pairs(v:GetChildren()) do
- if z:IsA("Part") or z:IsA("MeshPart") then
- z.Anchored = false
- end
- end
- end
- end
- game:GetService("Lighting"):FindFirstChild("CO").Enabled = false
- game:GetService("Lighting"):FindFirstChild("CO"):Destroy()
- s.PlaybackSpeed = 1
- print("STOPPED");
- q=true
- end)
- s.Played:connect(function()
- wait(w)
- game:GetService("ReplicatedStorage"):FindFirstChild("CO"):Clone().Parent = game:GetService("Lighting")
- for i = 70, 145 do
- workspace.CurrentCamera.FieldOfView = i
- wait(.0009)
- end
- workspace.CurrentCamera.FieldOfView = 70
- --for i = 120, 70, -1 do
- --workspace.CurrentCamera.FieldOfView = i
- --wait(.005)
- --end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement