Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local p = game.Players:WaitForChild("asbuff")
- local c = p.Character
- local m = p:GetMouse()
- local ass = workspace.Terrain:WaitForChild("MINECRAFTASBUFF")
- local cam = workspace.CurrentCamera
- local sprint = false
- m.KeyDown:connect(function(k)
- if k == "0" then
- sprint = true
- end
- end)
- m.KeyUp:connect(function(k)
- if k == "0" then
- sprint = false
- end
- end)
- m.Button2Down:connect(function()
- ass:FireServer("placeblock",{cam.CFrame,m.Hit})
- end)
- m.Button1Down:connect(function()
- ass:FireServer("removeblock",{cam.CFrame,m.Hit})
- end)
- m.KeyDown:connect(function(k)
- if k == "q" then
- ass:FireServer("openinv",{cam.CFrame,m.Hit})
- end
- end)
- m.KeyUp:connect(function(k)
- if k == "q" then
- ass:FireServer("closeinv",{cam.CFrame,m.Hit})
- end
- end)
- game:GetService("RunService").RenderStepped:connect(function()
- if sprint then
- c.Humanoid.WalkSpeed = 30
- else
- c.Humanoid.WalkSpeed = 18
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement