Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local version = 2
- print("We only got 1 remoteevent now instead of 3 remoteevents")
- local player = owner--hey guys please dont use this script for inappropriate purposes.
- local Remote = Instance.new("RemoteEvent",player.Character)
- Remote.Name = "MainRemote"
- local garbage = Instance.new("Model",script)
- owner.CharacterAdded:Connect(function(k)
- script:Destroy()
- end)
- 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)
- Remote.OnServerEvent:Connect(function(player,purpose,other)
- if purpose:lower() == "keydown" then
- if other == "e" then
- sound:Play()
- elseif other =="r" then
- sound:Stop()
- elseif other =="f" then
- garbage:ClearAllChildren()
- end
- elseif purpose:lower() == "draw" then
- local visual = Instance.new("Part",garbage)
- visual.CFrame = other
- visual.Size = Vector3.new(1,0.1,1)
- visual.Anchored = true
- visual.Orientation = Vector3.new(0,0,0)
- visual.Material = Enum.Material.Neon
- elseif purpose:lower() == "loudness" then
- for i,v in pairs(garbage:GetDescendants()) do
- v.Size = Vector3.new(1,other*0.1/math.random(2,5),1)
- v.Color = Color3.fromRGB(other/math.random(2,5),other/math.random(2,5),other/math.random(2,5))
- end
- end
- end)
- NLS([[
- local player = game.Players.LocalPlayer
- local Rem = owner.Character:WaitForChild("MainRemote")
- local mouse = owner:GetMouse()
- 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
- Rem:FireServer("draw",mouse.Hit)
- end
- end
- end))
- mouse.KeyDown:connect(function(key)
- if key:lower() == "e" or key:upper() == "E" then
- Rem:FireServer("keydown","e")
- elseif key:lower() == "r" or key:upper() == "R" then
- Rem:FireServer("keydown","r")
- elseif key:lower() == "f" or key:upper() == "F" then
- Rem:FireServer("keydown","f")
- end
- end)
- local run = game:GetService("RunService")
- run.Heartbeat:Connect(function()
- wait()
- workspace.CurrentCamera.FieldOfView = 60 + (player.Character.Head.Sound.PlaybackLoudness*0.01)
- Rem:FireServer("loudness",player.Character.Head.Sound.PlaybackLoudness)
- end)
- ]],player.Character)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement