SHARE
TWEET

draw

masonsyder1524 Aug 20th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7.     print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8.     script.Parent = Player.Character
  9.  
  10.     --RemoteEvent for communicating
  11.     local Event = Instance.new("RemoteEvent")
  12.     Event.Name = "UserInput_Event"
  13.  
  14.     --Fake event to make stuff like Mouse.KeyDown work
  15.     local function fakeEvent()
  16.         local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17.         t.connect = t.Connect
  18.         return t
  19.     end
  20.  
  21.     --Creating fake input objects with fake variables
  22.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26.     end}
  27.     --Merged 2 functions into one by checking amount of arguments
  28.     CAS.UnbindAction = CAS.BindAction
  29.  
  30.     --This function will trigger the events that have been :Connect()'ed
  31.     local function te(self,ev,...)
  32.         local t = m[ev]
  33.         if t and t._fakeEvent and t.Function then
  34.             t.Function(...)
  35.         end
  36.     end
  37.     m.TrigEvent = te
  38.     UIS.TrigEvent = te
  39.  
  40.     Event.OnServerEvent:Connect(function(plr,io)
  41.         if plr~=Player then return end
  42.         if io.isMouse then
  43.             m.Target = io.Target
  44.             m.Hit = io.Hit
  45.         else
  46.             local b = io.UserInputState == Enum.UserInputState.Begin
  47.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49.             end
  50.             for _,t in pairs(CAS.Actions) do
  51.                 for _,k in pairs(t.Keys) do
  52.                     if k==io.KeyCode then
  53.                         t.Function(t.Name,io.UserInputState,io)
  54.                     end
  55.                 end
  56.             end
  57.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59.         end
  60.     end)
  61.     Event.Parent = NLS([==[
  62.     local Player = game:GetService("Players").LocalPlayer
  63.     local Event = script:WaitForChild("UserInput_Event")
  64.  
  65.     local UIS = game:GetService("UserInputService")
  66.     local input = function(io,a)
  67.         if a then return end
  68.         --Since InputObject is a client-side instance, we create and pass table instead
  69.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70.     end
  71.     UIS.InputBegan:Connect(input)
  72.     UIS.InputEnded:Connect(input)
  73.  
  74.     local Mouse = Player:GetMouse()
  75.     local h,t
  76.     --Give the server mouse data 30 times every second, but only if the values changed
  77.     --If player is not moving their mouse, client won't fire events
  78.     while wait(1/30) do
  79.         if h~=Mouse.Hit or t~=Mouse.Target then
  80.             h,t=Mouse.Hit,Mouse.Target
  81.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  82.         end
  83.     end]==],Player.Character)
  84.     Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88. MIDI = Instance.new("ScreenGui")
  89. Frame = Instance.new("Frame")
  90. ID = Instance.new("TextBox")
  91. Play = Instance.new("TextButton")
  92. Dark = Instance.new("TextButton")
  93. Bright = Instance.new("TextButton")
  94. Stop = Instance.new("TextButton")
  95. Hide = Instance.new("TextButton")
  96. Set = Instance.new("TextButton")
  97. BColor = Instance.new("TextBox")
  98. Random = Instance.new("TextButton")
  99. Material = Instance.new("TextBox")
  100. Trans = Instance.new("TextBox")
  101. sound = Instance.new("Sound",game.Players.owner.Character.Torso)
  102. sound.Volume = 4
  103. sound.Looped = true
  104. BVal = "Deep orange"
  105. MVal = "Neon"
  106. TVal = 0
  107. Active = false
  108.  
  109. -- Properties
  110.  
  111. MIDI.Name = "MIDI"
  112. MIDI.Parent = game.Players.owner.PlayerGui
  113.  
  114. Frame.Parent = MIDI
  115. Frame.Active = true
  116. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  117. Frame.BackgroundTransparency = 0.5799999833107
  118. Frame.BorderSizePixel = 0
  119. Frame.Draggable = true
  120. Frame.Position = UDim2.new(0, 300, 0, 50)
  121. Frame.Size = UDim2.new(0, 310, 0, 200)
  122.  
  123. ID.Name = "ID"
  124. ID.Parent = Frame
  125. ID.BackgroundColor3 = Color3.new(1, 1, 1)
  126. ID.BorderSizePixel = 0
  127. ID.Position = UDim2.new(0, 100, 0, 10)
  128. ID.Size = UDim2.new(0, 120, 0, 30)
  129. ID.Font = Enum.Font.Arcade
  130. ID.FontSize = Enum.FontSize.Size18
  131. ID.Text = "639837244"
  132. ID.TextColor3 = Color3.new(0, 0, 0)
  133. ID.TextSize = 18
  134.  
  135. Material.Name = "Material"
  136. Material.Parent = Frame
  137. Material.BackgroundColor3 = Color3.new(1, 1, 1)
  138. Material.BorderSizePixel = 0
  139. Material.Position = UDim2.new(0, 210, 0, 95)
  140. Material.Size = UDim2.new(0, 90, 0, 15)
  141. Material.Font = Enum.Font.Arcade
  142. Material.FontSize = Enum.FontSize.Size14
  143. Material.Text = "Neon"
  144. Material.TextSize = 14
  145.  
  146. Trans.Name = "Trans"
  147. Trans.Parent = Frame
  148. Trans.BackgroundColor3 = Color3.new(1, 1, 1)
  149. Trans.BorderSizePixel = 0
  150. Trans.Position = UDim2.new(0, 210, 0, 75)
  151. Trans.Size = UDim2.new(0, 90, 0, 15)
  152. Trans.Font = Enum.Font.Arcade
  153. Trans.FontSize = Enum.FontSize.Size14
  154. Trans.Text = "Transparency"
  155. Trans.TextSize = 14
  156.  
  157. Set.Name = "Set"
  158. Set.Parent = Frame
  159. Set.BackgroundColor3 = Color3.new(1, 1, 1)
  160. Set.BorderSizePixel = 0
  161. Set.Position = UDim2.new(0, 210, 0, 135)
  162. Set.Size = UDim2.new(0, 90, 0, 15)
  163. Set.Font = Enum.Font.Arcade
  164. Set.FontSize = Enum.FontSize.Size14
  165. Set.Text = "Set"
  166. Set.TextSize = 14
  167. Set.MouseButton1Down:connect(function()
  168.     if Active == true then
  169.         Active = false
  170.     end
  171.     BVal = tostring(BColor.Text)
  172.     TVal = tonumber(Trans.Text)
  173.     MVal = tostring(Material.Text)
  174. end)
  175.  
  176. BColor.Name = "BColor"
  177. BColor.Parent = Frame
  178. BColor.BackgroundColor3 = Color3.new(1, 1, 1)
  179. BColor.BorderSizePixel = 0
  180. BColor.Position = UDim2.new(0, 210, 0, 115)
  181. BColor.Size = UDim2.new(0, 90, 0, 15)
  182. BColor.Font = Enum.Font.Arcade
  183. BColor.FontSize = Enum.FontSize.Size14
  184. BColor.Text = "Lime Green"
  185. BColor.TextSize = 14
  186.  
  187. Random.Name = "Random"
  188. Random.Parent = Frame
  189. Random.BackgroundColor3 = Color3.new(1, 1, 1)
  190. Random.BorderSizePixel = 0
  191. Random.Position = UDim2.new(0, 10, 0, 80)
  192. Random.Size = UDim2.new(0, 90, 0, 30)
  193. Random.Font = Enum.Font.Arcade
  194. Random.FontSize = Enum.FontSize.Size14
  195. Random.Text = "Random"
  196. Random.TextSize = 14
  197. Random.MouseButton1Down:connect(function()
  198.     if Active == false then
  199.         Active = true
  200.     end
  201. end)
  202.  
  203. Play.Name = "Play"
  204. Play.Parent = Frame
  205. Play.BackgroundColor3 = Color3.new(1, 1, 1)
  206. Play.BorderSizePixel = 0
  207. Play.Position = UDim2.new(0, 10, 0, 160)
  208. Play.Size = UDim2.new(0, 90, 0, 30)
  209. Play.Font = Enum.Font.Arcade
  210. Play.FontSize = Enum.FontSize.Size14
  211. Play.Text = "Play"
  212. Play.TextSize = 14
  213. Play.MouseButton1Down:connect(function()
  214.     sound.TimePosition = 0
  215.     sound.Playing = true
  216.     sound.SoundId = "rbxassetid://"..tonumber(ID.Text)
  217. end)
  218.  
  219. Dark.Name = "Dark"
  220. Dark.Parent = Frame
  221. Dark.BackgroundColor3 = Color3.new(1, 1, 1)
  222. Dark.BorderSizePixel = 0
  223. Dark.Position = UDim2.new(0, 10, 0, 120)
  224. Dark.Size = UDim2.new(0, 90, 0, 30)
  225. Dark.Font = Enum.Font.Arcade
  226. Dark.FontSize = Enum.FontSize.Size14
  227. Dark.Text = "Dark"
  228. Dark.TextSize = 14
  229. Dark.MouseButton1Down:connect(function()
  230.     game.Lighting.TimeOfDay = 0
  231.     game.Lighting.GlobalShadows = false
  232.     game.Lighting.Ambient = Color3.new(0,0,0)
  233.     game.Lighting.Brightness = 0
  234. end)
  235.  
  236. Bright.Name = "Bright"
  237. Bright.Parent = Frame
  238. Bright.BackgroundColor3 = Color3.new(1, 1, 1)
  239. Bright.BorderSizePixel = 0
  240. Bright.Position = UDim2.new(0, 110, 0, 120)
  241. Bright.Size = UDim2.new(0, 90, 0, 30)
  242. Bright.Font = Enum.Font.Arcade
  243. Bright.FontSize = Enum.FontSize.Size14
  244. Bright.Text = "Bright"
  245. Bright.TextSize = 14
  246. Bright.MouseButton1Down:connect(function()
  247.     game.Lighting.TimeOfDay = 12
  248.     game.Lighting.GlobalShadows = true
  249.     game.Lighting.Ambient = Color3.fromRGB(10,10,10)
  250.     game.Lighting.Brightness = 1
  251. end)
  252.  
  253. Stop.Name = "Stop"
  254. Stop.Parent = Frame
  255. Stop.BackgroundColor3 = Color3.new(1, 1, 1)
  256. Stop.BorderSizePixel = 0
  257. Stop.Position = UDim2.new(0, 110, 0, 160)
  258. Stop.Size = UDim2.new(0, 90, 0, 30)
  259. Stop.Font = Enum.Font.Arcade
  260. Stop.FontSize = Enum.FontSize.Size14
  261. Stop.Text = "Stop"
  262. Stop.TextSize = 14
  263. Stop.MouseButton1Down:connect(function()
  264.     sound.Playing = false
  265. end)
  266.  
  267. Hide.Name = "Hide"
  268. Hide.Parent = Frame
  269. Hide.BackgroundColor3 = Color3.new(1, 1, 1)
  270. Hide.BorderSizePixel = 0
  271. Hide.Position = UDim2.new(0, 210, 0, 160)
  272. Hide.Size = UDim2.new(0, 90, 0, 30)
  273. Hide.Font = Enum.Font.Arcade
  274. Hide.FontSize = Enum.FontSize.Size14
  275. Hide.Text = "Clear"
  276. Hide.TextSize = 14
  277. Hide.MouseButton1Down:connect(function()
  278.     for i,v in pairs(game.Players.owner.Character:GetChildren()) do
  279.         if v.Name == "location" then
  280.             v:Remove()
  281.         end
  282.     end
  283. end)
  284.  
  285. --- Made By Pugz AKA (PugLover77)
  286. plyr = game.Players.owner
  287. c = plyr.Character
  288. RunService = game:service'RunService'
  289.  
  290. local draw2 = false
  291. local colorA = 1
  292. local lastPos
  293.  
  294. tool = Instance.new("HopperBin", plyr.Backpack)
  295. tool.Name = "Draw"
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.                function draw(obj) --
  303.     local lastPos = obj.CFrame.p
  304.     coroutine.wrap(function()
  305.         while wait() do
  306.         if draw2 then
  307.         while draw2 do
  308.             wait()
  309.             objC = obj:Clone()
  310.              objC.Parent = c
  311.             objC.Anchored = true
  312.             local distance = (lastPos- obj.CFrame.p).magnitude
  313.             objC.Size = Vector3.new(.1,.1,distance)
  314.             objC.CFrame = CFrame.new(lastPos,obj.Position)*CFrame.new(0,0,-distance/2)
  315.             lastPos = obj.CFrame.p
  316.         end
  317.         else
  318.                 break
  319.         end
  320.         end
  321.     end)()
  322.                 end
  323.  
  324. tool.Selected:connect(function(mouse)
  325.        
  326.         mouse.Button1Down:connect(function(mouse)
  327.     draw2 = true
  328.                 part = Instance.new("Part", c)
  329. mesh = Instance.new("BlockMesh",part)
  330.         Li = Instance.new("PointLight",part)
  331.         Li.Range = 8
  332.         Li.Color = part.Color
  333.                 part.Name = "location"
  334.            
  335.                 part.BottomSurface = 0
  336.                 part.Material = MVal
  337.                 part.TopSurface = 0
  338.                 part.Size = Vector3.new()
  339.                 part.Transparency = TVal
  340.                 if Active == true then
  341.                     part.Color = Color3.new(math.random(), math.random(), math.random())
  342.                 elseif Active == false then
  343.                     part.BrickColor = BrickColor.new(BVal)
  344.                 end
  345.         Li.Color = part.Color
  346.                 part.FormFactor = "Custom"
  347.                 part.Size = Vector3.new(0.01, 0.01, 0.01)
  348.                 part.Anchored = true
  349.                 part.Locked = true
  350.                 coroutine.wrap(function()
  351.                 while part ~= nil do
  352.                 part.CFrame                 wait()
  353.                 end
  354.                 end)()
  355.                 wait()    
  356.                 draw(part)
  357.                 wait()
  358.         end)
  359.         mouse.Button1Up:connect(function(mouse)
  360.     draw2 = false
  361.                
  362.         end)
  363.                        
  364. end)
  365. x = 60
  366. game:GetService("RunService").Stepped:connect(function()
  367.     n = sound.PlaybackLoudness
  368.     if n > 500 then
  369.         x = 100
  370.     elseif n < 500 then
  371.         x = 110
  372.     end
  373. for i,v in pairs(game.Players.owner.Character:GetChildren()) do
  374.     if v.Name == "location" then
  375.         v.Mesh.Scale = Vector3.new(n / x, n / x, n / x)
  376.         v.PointLight.Range = n / 50
  377.     end
  378. end
  379. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top