Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = owner--hey guys please dont use this script for inappropriate purposes.
- local pressremote = Instance.new("RemoteEvent",player.Character)
- pressremote.Name = "pressremote"
- local hitremote = Instance.new("RemoteEvent",player.Character)
- hitremote.Name = "hitremote"
- local loudremote = Instance.new("RemoteEvent",player.Character)
- loudremote.Name = "loudremote"
- local garbage = Instance.new("Model",player.Character)
- local sound = Instance.new("Sound",player.Character.Head)
- sound.Volume = 10
- player.Chatted:Connect(function(msg)
- if msg:sub(1,5) == "/play" then
- local victim = msg:sub(1,5)
- local soundid = string.gsub(msg,victim,"")
- sound.SoundId = "rbxassetid://"..soundid
- sound:Play()
- end
- end)
- pressremote.OnServerEvent:Connect(function(player,press)
- if press == "e" then
- sound:Play()
- elseif press=="r" then
- sound:Stop()
- elseif press=="f" then
- garbage:ClearAllChildren()
- end
- end)
- hitremote.OnServerEvent:Connect(function(player,hit)
- local visual = Instance.new("Part",garbage)
- visual.CFrame = hit
- visual.Size = Vector3.new(1,0.1,1)
- visual.Anchored = true
- visual.Orientation = Vector3.new(0,0,0)
- visual.Material = Enum.Material.Neon
- end)
- loudremote.OnServerEvent:Connect(function(player,loud)
- for i,v in pairs(garbage:GetDescendants()) do
- v.Size = Vector3.new(1,loud*0.1/math.random(2,5),1)
- v.Color = Color3.fromRGB(loud/math.random(2,5),loud/math.random(2,5),loud/math.random(2,5))
- end
- end)
- NLS([[
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local press = player.Character.pressremote
- local hit = player.Character.hitremote
- local loud = player.Character.loudremote
- local clicked = false
- mouse.Button1Down:connect(function()
- clicked = true
- end)
- mouse.Button1Up:connect(function()
- clicked = false
- end)
- coroutine.resume(coroutine.create(function()
- while true do wait()
- if clicked == true then
- hit:FireServer(mouse.Hit)
- end
- end
- end))
- mouse.KeyDown:connect(function(key)
- if key:lower() == "e" or key:upper() == "E" then
- press:FireServer("e")
- elseif key:lower() == "r" or key:upper() == "R" then
- press:FireServer("r")
- elseif key:lower() == "f" or key:upper() == "F" then
- press:FireServer("f")
- end
- end)
- local run = game:GetService("RunService")
- run.Stepped:Connect(function()
- loud:FireServer(player.Character.Head.Sound.PlaybackLoudness)
- end)
- ]],player.Character)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement