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