Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
- -- Objects
- MIDI = Instance.new("ScreenGui")
- Frame = Instance.new("Frame")
- ID = Instance.new("TextBox")
- Play = Instance.new("TextButton")
- Dark = Instance.new("TextButton")
- Bright = Instance.new("TextButton")
- Stop = Instance.new("TextButton")
- Hide = Instance.new("TextButton")
- Set = Instance.new("TextButton")
- BColor = Instance.new("TextBox")
- Random = Instance.new("TextButton")
- Material = Instance.new("TextBox")
- Trans = Instance.new("TextBox")
- sound = Instance.new("Sound",game.Players.LocalPlayer.Character.Torso)
- sound.Volume = 4
- sound.Looped = true
- BVal = "Deep orange"
- MVal = "Neon"
- TVal = 0
- Active = false
- -- Properties
- MIDI.Name = "MIDI"
- MIDI.Parent = game.Players.LocalPlayer.PlayerGui
- Frame.Parent = MIDI
- Frame.Active = true
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 0.5799999833107
- Frame.BorderSizePixel = 0
- Frame.Draggable = true
- Frame.Position = UDim2.new(0, 300, 0, 50)
- Frame.Size = UDim2.new(0, 310, 0, 200)
- ID.Name = "ID"
- ID.Parent = Frame
- ID.BackgroundColor3 = Color3.new(1, 1, 1)
- ID.BorderSizePixel = 0
- ID.Position = UDim2.new(0, 100, 0, 10)
- ID.Size = UDim2.new(0, 120, 0, 30)
- ID.Font = Enum.Font.Arcade
- ID.FontSize = Enum.FontSize.Size18
- ID.Text = "639837244"
- ID.TextColor3 = Color3.new(0, 0, 0)
- ID.TextSize = 18
- Material.Name = "Material"
- Material.Parent = Frame
- Material.BackgroundColor3 = Color3.new(1, 1, 1)
- Material.BorderSizePixel = 0
- Material.Position = UDim2.new(0, 210, 0, 95)
- Material.Size = UDim2.new(0, 90, 0, 15)
- Material.Font = Enum.Font.Arcade
- Material.FontSize = Enum.FontSize.Size14
- Material.Text = "Neon"
- Material.TextSize = 14
- Trans.Name = "Trans"
- Trans.Parent = Frame
- Trans.BackgroundColor3 = Color3.new(1, 1, 1)
- Trans.BorderSizePixel = 0
- Trans.Position = UDim2.new(0, 210, 0, 75)
- Trans.Size = UDim2.new(0, 90, 0, 15)
- Trans.Font = Enum.Font.Arcade
- Trans.FontSize = Enum.FontSize.Size14
- Trans.Text = "Transparency"
- Trans.TextSize = 14
- Set.Name = "Set"
- Set.Parent = Frame
- Set.BackgroundColor3 = Color3.new(1, 1, 1)
- Set.BorderSizePixel = 0
- Set.Position = UDim2.new(0, 210, 0, 135)
- Set.Size = UDim2.new(0, 90, 0, 15)
- Set.Font = Enum.Font.Arcade
- Set.FontSize = Enum.FontSize.Size14
- Set.Text = "Set"
- Set.TextSize = 14
- Set.MouseButton1Down:connect(function()
- if Active == true then
- Active = false
- end
- BVal = tostring(BColor.Text)
- TVal = tonumber(Trans.Text)
- MVal = tostring(Material.Text)
- end)
- BColor.Name = "BColor"
- BColor.Parent = Frame
- BColor.BackgroundColor3 = Color3.new(1, 1, 1)
- BColor.BorderSizePixel = 0
- BColor.Position = UDim2.new(0, 210, 0, 115)
- BColor.Size = UDim2.new(0, 90, 0, 15)
- BColor.Font = Enum.Font.Arcade
- BColor.FontSize = Enum.FontSize.Size14
- BColor.Text = "Lime Green"
- BColor.TextSize = 14
- Random.Name = "Random"
- Random.Parent = Frame
- Random.BackgroundColor3 = Color3.new(1, 1, 1)
- Random.BorderSizePixel = 0
- Random.Position = UDim2.new(0, 10, 0, 80)
- Random.Size = UDim2.new(0, 90, 0, 30)
- Random.Font = Enum.Font.Arcade
- Random.FontSize = Enum.FontSize.Size14
- Random.Text = "Random"
- Random.TextSize = 14
- Random.MouseButton1Down:connect(function()
- if Active == false then
- Active = true
- end
- end)
- Play.Name = "Play"
- Play.Parent = Frame
- Play.BackgroundColor3 = Color3.new(1, 1, 1)
- Play.BorderSizePixel = 0
- Play.Position = UDim2.new(0, 10, 0, 160)
- Play.Size = UDim2.new(0, 90, 0, 30)
- Play.Font = Enum.Font.Arcade
- Play.FontSize = Enum.FontSize.Size14
- Play.Text = "Play"
- Play.TextSize = 14
- Play.MouseButton1Down:connect(function()
- sound.TimePosition = 0
- sound.Playing = true
- sound.SoundId = "rbxassetid://"..tonumber(ID.Text)
- end)
- Dark.Name = "Dark"
- Dark.Parent = Frame
- Dark.BackgroundColor3 = Color3.new(1, 1, 1)
- Dark.BorderSizePixel = 0
- Dark.Position = UDim2.new(0, 10, 0, 120)
- Dark.Size = UDim2.new(0, 90, 0, 30)
- Dark.Font = Enum.Font.Arcade
- Dark.FontSize = Enum.FontSize.Size14
- Dark.Text = "Dark"
- Dark.TextSize = 14
- Dark.MouseButton1Down:connect(function()
- game.Lighting.TimeOfDay = 0
- game.Lighting.GlobalShadows = false
- game.Lighting.Ambient = Color3.new(0,0,0)
- game.Lighting.Brightness = 0
- end)
- Bright.Name = "Bright"
- Bright.Parent = Frame
- Bright.BackgroundColor3 = Color3.new(1, 1, 1)
- Bright.BorderSizePixel = 0
- Bright.Position = UDim2.new(0, 110, 0, 120)
- Bright.Size = UDim2.new(0, 90, 0, 30)
- Bright.Font = Enum.Font.Arcade
- Bright.FontSize = Enum.FontSize.Size14
- Bright.Text = "Bright"
- Bright.TextSize = 14
- Bright.MouseButton1Down:connect(function()
- game.Lighting.TimeOfDay = 12
- game.Lighting.GlobalShadows = true
- game.Lighting.Ambient = Color3.fromRGB(10,10,10)
- game.Lighting.Brightness = 1
- end)
- Stop.Name = "Stop"
- Stop.Parent = Frame
- Stop.BackgroundColor3 = Color3.new(1, 1, 1)
- Stop.BorderSizePixel = 0
- Stop.Position = UDim2.new(0, 110, 0, 160)
- Stop.Size = UDim2.new(0, 90, 0, 30)
- Stop.Font = Enum.Font.Arcade
- Stop.FontSize = Enum.FontSize.Size14
- Stop.Text = "Stop"
- Stop.TextSize = 14
- Stop.MouseButton1Down:connect(function()
- sound.Playing = false
- end)
- Hide.Name = "Hide"
- Hide.Parent = Frame
- Hide.BackgroundColor3 = Color3.new(1, 1, 1)
- Hide.BorderSizePixel = 0
- Hide.Position = UDim2.new(0, 210, 0, 160)
- Hide.Size = UDim2.new(0, 90, 0, 30)
- Hide.Font = Enum.Font.Arcade
- Hide.FontSize = Enum.FontSize.Size14
- Hide.Text = "Clear"
- Hide.TextSize = 14
- Hide.MouseButton1Down:connect(function()
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v.Name == "location" then
- v:Remove()
- end
- end
- end)
- --- Made By Pugz AKA (PugLover77)
- plyr = game.Players.LocalPlayer
- c = plyr.Character
- RunService = game:service'RunService'
- mouse = game.Players.LocalPlayer:GetMouse()
- local draw2 = false
- local colorA = 1
- local lastPos
- tool = Instance.new("HopperBin", plyr.Backpack)
- tool.Name = "Draw"
- mouse = plyr:GetMouse()
- function draw(obj) --
- local lastPos = obj.CFrame.p
- coroutine.wrap(function()
- while wait() do
- if draw2 then
- while draw2 do
- wait()
- objC = obj:Clone()
- objC.Parent = c
- objC.Anchored = true
- local distance = (lastPos- obj.CFrame.p).magnitude
- objC.Size = Vector3.new(.1,.1,distance)
- objC.CFrame = CFrame.new(lastPos,obj.Position)*CFrame.new(0,0,-distance/2)
- lastPos = obj.CFrame.p
- end
- else
- break
- end
- end
- end)()
- end
- tool.Selected:connect(function(mouse)
- mouse.Button1Down:connect(function(mouse)
- draw2 = true
- part = Instance.new("Part", c)
- mesh = Instance.new("BlockMesh",part)
- Li = Instance.new("PointLight",part)
- Li.Range = 8
- Li.Color = part.Color
- part.Name = "location"
- part.BottomSurface = 0
- part.Material = MVal
- part.TopSurface = 0
- part.Size = Vector3.new()
- part.Transparency = TVal
- if Active == true then
- part.Color = Color3.new(math.random(), math.random(), math.random())
- elseif Active == false then
- part.BrickColor = BrickColor.new(BVal)
- end
- Li.Color = part.Color
- part.FormFactor = "Custom"
- part.Size = Vector3.new(0.01, 0.01, 0.01)
- part.Anchored = true
- part.Locked = true
- coroutine.wrap(function()
- while part ~= nil do
- part.CFrame = CFrame.new(plyr:GetMouse().Hit.p.x,plyr:GetMouse().Hit.p.y,plyr:GetMouse().Hit.p.z)
- wait()
- end
- end)()
- wait()
- draw(part)
- wait()
- end)
- mouse.Button1Up:connect(function(mouse)
- draw2 = false
- end)
- end)
- x = 60
- game:GetService("RunService").Stepped:connect(function()
- n = sound.PlaybackLoudness
- if n > 500 then
- x = 100
- elseif n < 500 then
- x = 110
- end
- for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if v.Name == "location" then
- v.Mesh.Scale = Vector3.new(n / x, n / x, n / x)
- v.PointLight.Range = n / 50
- end
- end
- end)
Add Comment
Please, Sign In to add comment