Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("The owner is not responsible if you get banned for misusing this script")
- local player = owner--hey guys please dont use this script for inappropriate purposes.
- local pressremote = Instance.new("RemoteEvent",player.Character)
- pressremote.Name = "pressremote"
- local garbage = Instance.new("Model",player.Character)
- local sound = Instance.new("Sound",player.Character)
- pressremote.OnServerEvent:Connect(function(player,press,hit,loud)
- print(player)
- print(press)
- print(hit)
- print(loud)
- if press==nil then local dog = "its dog" else
- if press == "e" then
- sound:Play()
- elseif press=="r" then
- sound:Stop()
- elseif press=="f" then
- garbage:ClearAllChildren()
- end
- end
- if hit ==nil then local dog1 = "its the second dog" else
- 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
- if loud == nil then local dog = "its dog" else
- for i,v in pairs(garbage:GetDescendants()) do
- v.Size = Vector3.new(1,sound.PlaybackLoudness*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 end
- end)
- NLS([[
- local player = owner
- local mouse = player:GetMouse()
- local press = player.Character:WaitForChild("pressremote")
- 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
- press:FireServer(nil,mouse.Hit,nil)
- end
- end
- end))
- mouse.KeyDown:connect(function(key)
- if key:lower() == "e" or key:upper() == "E" then
- press:FireServer("e",nil,nil)
- elseif key:lower() == "r" or key:upper() == "R" then
- press:FireServer("r",nil,nil)
- elseif key:lower() == "f" or key:upper() == "F" then
- press:FireServer("f",nil,nil)
- end
- end)
- local run = game:GetService("RunService")
- while true do wait()
- press:FireServer(nil,nil,player.Character.Sound.PlaybackLoudness)
- end
- ]],player.Character)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement