SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | print("FE Compatibility code by Mokiros") | |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | local Player = owner | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/30) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | print("controls:") | |
84 | print("z - make it morning") | |
85 | print("x - make it night") | |
86 | print("c - clean workspace") | |
87 | print("v - heal the player your mouse is pointing at") | |
88 | print("f - make the player your mouse is pointing at fat") | |
89 | print("n - make everyone fat") | |
90 | print("e - annihilate the player your mouse is pointing at") | |
91 | print("p - suicide") | |
92 | print("k - kill other players") | |
93 | print("b - control the player your mouse it pointing at") | |
94 | print("r - tp evryone to you") | |
95 | print("t - send the player your mouse is pointing at to 'heaven'") | |
96 | print("q - spawn pet") | |
97 | print("g - spawn a blackhole") | |
98 | oil = owner | |
99 | sauce = oil.Character | |
100 | tor = sauce:FindFirstChild("Torso") or sauce:FindFirstChild("UpperTorso") | |
101 | head = sauce:FindFirstChild("Head") | |
102 | larm = sauce:FindFirstChild("Left Arm") or sauce:FindFirstChild("LeftUpperArm") | |
103 | rarm = sauce:FindFirstChild("Right Arm") or sauce:FindFirstChild("RightUpperArm") | |
104 | rleg = sauce:FindFirstChild("Right Leg") or sauce:FindFirstChild("RightUpperLeg") | |
105 | lleg = sauce:FindFirstChild("Left Leg") or sauce:FindFirstChild("LeftUpperLeg") | |
106 | hum = sauce:FindFirstChildOfClass("Humanoid") | |
107 | humroot = sauce:FindFirstChild("HumanoidRootPart") | |
108 | mou = oil:GetMouse() | |
109 | remoteequipped = true | |
110 | controlling = false | |
111 | light = game:GetService("Lighting") | |
112 | tool = Instance.new("Tool", oil.Backpack) | |
113 | tool.Name = "Remote" | |
114 | hand = Instance.new("Part", tool) | |
115 | hand.Name = "Handle" | |
116 | hand.Size = Vector3.new(1, 1, 1) | |
117 | hand.Transparency = 1 | |
118 | p1 = Instance.new("Part", hand) | |
119 | p1.Size = Vector3.new(0.6, 0.1, 1.2) | |
120 | p1.Material = "Metal" | |
121 | p1.Name = "p1" | |
122 | p2 = Instance.new("Part", hand) | |
123 | p2.Size = Vector3.new(0.4, 0.1, 0.1) | |
124 | p2.Material = "Metal" | |
125 | p2.Name = "p2" | |
126 | p2.Shape = "Cylinder" | |
127 | p3 = Instance.new("Part", hand) | |
128 | p3.Shape = "Ball" | |
129 | p3.Material = "Neon" | |
130 | p3.Size = Vector3.new(0.15, 0.15, 0.15) | |
131 | p3.BrickColor = BrickColor.new("Crimson") | |
132 | p3.Name = "p3" | |
133 | p4 = Instance.new("Part", hand) | |
134 | p4.Size = Vector3.new(0.2, 0.4, 0.4) | |
135 | p4.Material = "Neon" | |
136 | p4.Name = "p4" | |
137 | p4.BrickColor = BrickColor.new("Maroon") | |
138 | p4.Shape = "Cylinder" | |
139 | w1 = Instance.new("Weld", p1) | |
140 | w1.Part0 = hand | |
141 | w1.Part1 = p1 | |
142 | w1.C1 = CFrame.new(0, 0, 0.6) | |
143 | w1.Name = "w1" | |
144 | w2 = Instance.new("Weld", p2) | |
145 | w2.Part0 = hand | |
146 | w2.Part1 = p2 | |
147 | w2.C1 = CFrame.new(1.3, 0, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) | |
148 | w3 = Instance.new("Weld", p3) | |
149 | w3.Part0 = hand | |
150 | w3.Part1 = p3 | |
151 | w3.C1 = CFrame.new(0, 0, 1.5) | |
152 | w4 = Instance.new("Weld", p4) | |
153 | w4.Part0 = hand | |
154 | w4.Part1 = p4 | |
155 | w4.C1 = CFrame.new(0.1, 0, 0.6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) | |
156 | ||
157 | ||
158 | tool.Equipped:connect(function() | |
159 | remoteequipped = true | |
160 | function pressed(key) | |
161 | if remoteequipped == true then | |
162 | if key == "x" then | |
163 | light.TimeOfDay = 21 | |
164 | elseif key == "z" then | |
165 | light.TimeOfDay = 7 | |
166 | elseif key == "c" then | |
167 | for i,v in pairs(workspace:GetChildren()) do | |
168 | if v:IsA("Part") and v.Name ~= "Base" then | |
169 | v.Locked = false | |
170 | v:remove() | |
171 | end | |
172 | if v:IsA("Model") and not v:FindFirstChildOfClass("Humanoid") then | |
173 | v:remove() | |
174 | end | |
175 | end | |
176 | elseif key == "p" then | |
177 | hum.Health = 0 | |
178 | elseif key == "k" then | |
179 | for i,v in pairs(workspace:GetChildren()) do | |
180 | if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then | |
181 | khum = v:FindFirstChildOfClass("Humanoid") | |
182 | khum.Health = 0 | |
183 | end | |
184 | end | |
185 | elseif key == "r" then | |
186 | for i,v in pairs(workspace:GetChildren()) do | |
187 | if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then | |
188 | vtor = v:FindFirstChild("Torso" )or v:FindFirstChild("UpperTorso") | |
189 | vtor.CFrame = tor.CFrame * CFrame.new(0, 0, -5) | |
190 | end | |
191 | end | |
192 | elseif key == "v" then | |
193 | if mouse.Target.Parent and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
194 | mouhum = mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
195 | mouhum.Health = mouhum.MaxHealth | |
196 | mouhead = mouse.Target.Parent:FindFirstChild("Head") | |
197 | bill = Instance.new("BillboardGui", mousehead) | |
198 | bill.AlwaysOnTop = true | |
199 | bill.StudsOffset = Vector3.new(0, 2, 0) | |
200 | bill.Adornee = mousehead | |
201 | bill.Size = UDim2.new(5, 35, 5, 35) | |
202 | btext = Instance.new("TextLabel", bill) | |
203 | btext.Text = mouse.Target.Parent.Name.." has been Healed!" | |
204 | btext.Font = "Bodoni" | |
205 | btext.TextSize = 30 | |
206 | btext.TextScaled = true | |
207 | btext.BorderSizePixel = 0 | |
208 | btext.BackgroundTransparency = 1 | |
209 | btext.Size = UDim2.new(1.5, 0, 0.5, 0) | |
210 | btext.TextColor = BrickColor.new("Bright green") | |
211 | game:GetService("Debris"):AddItem(bill, 2) | |
212 | end | |
213 | elseif key == "e" then | |
214 | if mouse.Target.Parent and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
215 | local nomoretor = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso") | |
216 | local nomorehum = mouse.Target.parent:FindFirstChildOfClass("Humanoid") | |
217 | local explo = Instance.new("Explosion", workspace) | |
218 | explo.Position = nomoretor.Position | |
219 | nomorehum.Health = 0 | |
220 | end | |
221 | elseif key == "f" then | |
222 | if mouse.Target.Parent and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
223 | local fatman = mouse.Target.Parent | |
224 | local fatmanhum = fatman:FindFirstChildOfClass("Humanoid") | |
225 | fatmanhum.WalkSpeed = 8 | |
226 | local fattor = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso") | |
227 | local hinum = Instance.new("Sound", fattor) | |
228 | hinum.SoundId = "rbxassetid://1278031541" | |
229 | hinum.Volume = 10 | |
230 | local realfat = Instance.new("Part", fattor) | |
231 | realfat.BrickColor = fattor.BrickColor | |
232 | realfat.Material = "SmoothPlastic" | |
233 | local supaweld = Instance.new("Weld", realfat) | |
234 | supaweld.Part0 = fattor | |
235 | supaweld.Part1 = realfat | |
236 | local fat = Instance.new("SpecialMesh", realfat) | |
237 | fat.MeshType = "Sphere" | |
238 | fat.Scale = Vector3.new(0.6, 1.6, 0.9) | |
239 | fat.Offset = Vector3.new(0, -0.4, -0.7) | |
240 | hinum:Play() | |
241 | if fatman:FindFirstChildOfClass("Shirt") then | |
242 | fatman:FindFirstChildOfClass("Shirt"):remove() | |
243 | end | |
244 | end | |
245 | elseif key == "b" then | |
246 | if mouse.Target.Parent and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") and controlling == false then | |
247 | controlling = true | |
248 | cman = mouse.Target.Parent | |
249 | mtor = cman:FindFirstChild("Torso") or cman:FindFirstChild("UpperTorso") | |
250 | mlarm = cman:FindFirstChild("Left Arm") or cman:FindFirstChild("LeftUpperArm") | |
251 | mrarm = cman:FindFirstChild("Right Arm") or cman:FindFirstChild("RightUpperArm") | |
252 | mlleg = cman:FindFirstChild("Left Leg") or cman:FindFirstChild("LeftUpperLeg") | |
253 | mrleg = cman:FindFirstChild("Right Leg") or cman:FindFirstChild("RightUpperLeg") | |
254 | mhead = cman:FindFirstChild("Head") | |
255 | mhum = cman:FindFirstChildOfClass("Humanoid") | |
256 | mhum.PlatformStand = true | |
257 | hum.NameOcclusion = "NoOcclusion" | |
258 | mface = head:FindFirstChild("face") | |
259 | mface.Transparency = 1 | |
260 | humroot.Transparency = 1 | |
261 | for i,v in pairs(sauce:GetChildren()) do | |
262 | if v:IsA("Part") then | |
263 | v.Transparency = 1 | |
264 | end | |
265 | if v:IsA("Accessory") then | |
266 | v.Handle.Transparency = 1 | |
267 | end | |
268 | end | |
269 | ow1 = Instance.new("Weld", tor) | |
270 | ow1.Part0 = tor | |
271 | ow1.Part1 = mtor | |
272 | ow2 = Instance.new("Weld", larm) | |
273 | ow2.Part0 = larm | |
274 | ow2.Part1 = mlarm | |
275 | ow3 = Instance.new("Weld", rarm) | |
276 | ow3.Part0 = rarm | |
277 | ow3.Part1 = mrarm | |
278 | ow4 = Instance.new("Weld", lleg) | |
279 | ow4.Part0 = lleg | |
280 | ow4.Part1 = mlleg | |
281 | ow5 = Instance.new("Weld", rleg) | |
282 | ow5.Part0 = rleg | |
283 | ow5.Part1 = mrleg | |
284 | ow6 = Instance.new("Weld", head) | |
285 | ow6.Part0 = head | |
286 | ow6.Part1 = mhead | |
287 | elseif controlling == true then | |
288 | controlling = false | |
289 | ow1:Destroy() | |
290 | ow2:Destroy() | |
291 | ow3:Destroy() | |
292 | ow4:Destroy() | |
293 | ow5:Destroy() | |
294 | ow6:Destroy() | |
295 | mhum.PlatformStand = false | |
296 | hum.NameOcclusion = "OccludeAll" | |
297 | humrootTransparency = 1 | |
298 | mface.Transparency = 0 | |
299 | for i,v in pairs(sauce:GetChildren()) do | |
300 | if v:IsA("Part") and v ~= humroot then | |
301 | v.Transparency = 0 | |
302 | end | |
303 | if v:IsA("Accessory") then | |
304 | v.Handle.Transparency = 0 | |
305 | end | |
306 | end | |
307 | end | |
308 | elseif key == "n" then | |
309 | for i,v in pairs(workspace:GetChildren()) do | |
310 | if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then | |
311 | local fatman = v | |
312 | local fatmanhum = fatman:FindFirstChildOfClass("Humanoid") | |
313 | fatmanhum.WalkSpeed = 8 | |
314 | local fattor = fatman:FindFirstChild("Torso") or fatman:FindFirstChild("UpperTorso") | |
315 | local hinum2 = Instance.new("Sound", fattor) | |
316 | hinum2.SoundId = "rbxassetid://1278031541" | |
317 | hinum2.Volume = 10 | |
318 | local realfat = Instance.new("Part", fattor) | |
319 | realfat.BrickColor = fattor.BrickColor | |
320 | realfat.Material = "SmoothPlastic" | |
321 | local supaweld = Instance.new("Weld", realfat) | |
322 | supaweld.Part0 = fattor | |
323 | supaweld.Part1 = realfat | |
324 | local fat = Instance.new("SpecialMesh", realfat) | |
325 | fat.MeshType = "Sphere" | |
326 | fat.Scale = Vector3.new(0.6, 1.6, 0.9) | |
327 | fat.Offset = Vector3.new(0, -0.4, -0.7) | |
328 | hinum2:Play() | |
329 | if fatman:FindFirstChildOfClass("Shirt") then | |
330 | fatman:FindFirstChildOfClass("Shirt"):remove() | |
331 | end | |
332 | end | |
333 | end | |
334 | elseif key == "t" then | |
335 | if mouse.Target.Parent and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
336 | local goneman = mouse.Target.Parent | |
337 | local gonehead = goneman:FindFirstChild("Head") | |
338 | local gonetor = goneman:FindFirstChild("Torso") or goneman:FindFirstChild("UpperTorso") | |
339 | local lightb = Instance.new("Part", goneman) | |
340 | lightb.Shape = "Cylinder" | |
341 | lightb.CanCollide = false | |
342 | lightb.Anchored = true | |
343 | lightb.Size = Vector3.new(300, 10, 10) | |
344 | lightb.Material = "Neon" | |
345 | lightb.Transparency = 0.5 | |
346 | lightb.BrickColor = BrickColor.new("New Yeller") | |
347 | lightb.CFrame = gonetor.CFrame * CFrame.new(0, 140, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) | |
348 | local start = gonetor.CFrame | |
349 | local finish = lightb.CFrame * CFrame.new(140, 0, 0) | |
350 | for i = 0,1,.01 do | |
351 | gonetor.CFrame = start:lerp(finish, i) | |
352 | wait() | |
353 | end | |
354 | gonehead.Size = Vector3.new(50, 50, 50) | |
355 | lightb:Destroy() | |
356 | end | |
357 | elseif key == "q" then | |
358 | if mouse.Target ~= nil then | |
359 | local dont = Instance.new("Part", sauce) | |
360 | dont.CFrame = mouse.Hit | |
361 | dont.Material = "Sand" | |
362 | dont.BrickColor = BrickColor.new("Pastel yellow") | |
363 | dont.Size = Vector3.new(3, 3, 3) | |
364 | dont.Shape = "Ball" | |
365 | dont.Anchored = true | |
366 | local obj = Instance.new("Sound", dont) | |
367 | local feats = {463838589, 691897627, 179270320, 425407550, 1074595721, 1065045593, 142688397, 1308566029, 1402510823} | |
368 | obj.SoundId = "rbxassetid://"..feats[math.random(1,#feats)] | |
369 | obj.Volume = 10 | |
370 | obj.Looped = true | |
371 | obj:Play() | |
372 | oil.Chatted:connect(function(msg) | |
373 | if msg:lower():sub(1, 7) == "plastic" then | |
374 | dont.Material = "Plastic" | |
375 | elseif msg:lower():sub(1, 5) == "slate" then | |
376 | dont.Material = "Slate" | |
377 | elseif msg:lower():sub(1, 3) == "ice" then | |
378 | dont.Material = "Ice" | |
379 | elseif msg:lower():sub(1, 5) == "metal" then | |
380 | dont.Material = "Metal" | |
381 | elseif msg:lower():sub(1, 4) == "neon" then | |
382 | dont.Material = "Neon" | |
383 | elseif msg:lower():sub(1, 5) == "grass" then | |
384 | dont.Material = "Grass" | |
385 | elseif msg:lower():sub(1, 4) == "sand" then | |
386 | dont.Material = "Sand" | |
387 | elseif msg:lower():sub(1, 9) == "woodplank" then | |
388 | dont.Material = "WoodPlanks" | |
389 | elseif msg:lower():sub(1, 4) == "wood" then | |
390 | dont.Material = "Wood" | |
391 | elseif msg:lower():sub(1, 6) == "marble" then | |
392 | dont.Material = "Marble" | |
393 | elseif msg:lower():sub(1, 8) == "concrete" then | |
394 | dont.Material = "Concrete" | |
395 | elseif msg:lower():sub(1, 5) == "brick" then | |
396 | dont.Material = "Brick" | |
397 | elseif msg:lower():sub(1, 7) == "granite" then | |
398 | dont.Material = "Granite" | |
399 | elseif msg:lower():sub(1, 6) == "pebble" then | |
400 | dont.Material = "Pebble" | |
401 | elseif msg:lower():sub(1, 11) == "cobblestone" then | |
402 | dont.Material = "Cobblestone" | |
403 | elseif msg:lower():sub(1, 13) == "corrodedmetal" then | |
404 | dont.Material = "CorrodedMetal" | |
405 | elseif msg:lower():sub(1, 12) == "diamondplate" then | |
406 | dont.Material = "DiamondPlate" | |
407 | elseif msg:lower():sub(1, 4) == "foil" then | |
408 | dont.Material = "Foil" | |
409 | elseif msg:lower():sub(1, 6) == "fabric" then | |
410 | dont.Material = "Fabric" | |
411 | elseif msg:lower():sub(1, 6) == "yellow" then | |
412 | dont.BrickColor = BrickColor.new("New Yeller") | |
413 | elseif msg:lower():sub(1, 6) == "purple" then | |
414 | dont.BrickColor = BrickColor.new("Bright violet") | |
415 | elseif msg:lower():sub(1, 3) == "red" then | |
416 | dont.BrickColor = BrickColor.new("Crimson") | |
417 | elseif msg:lower():sub(1, 5) == "black" then | |
418 | dont.BrickColor = BrickColor.new("Really black") | |
419 | elseif msg:lower():sub(1, 5) == "white" then | |
420 | dont.BrickColor = BrickColor.new("Institutional white") | |
421 | elseif msg:lower():sub(1, 4) == "pink" then | |
422 | dont.BrickColor = BrickColor.new("Hot pink") | |
423 | elseif msg:lower():sub(1, 5) == "green" then | |
424 | dont.BrickColor = BrickColor.new("Bright green") | |
425 | elseif msg:lower():sub(1, 4) == "grey" then | |
426 | dont.BrickColor = BrickColor.new("Medium stone grey") | |
427 | elseif msg:lower():sub(1, 5) == "brown" then | |
428 | dont.BrickColor = BrickColor.new("Burnt Sienna") | |
429 | elseif msg:lower():sub(1, 6) == "orange" then | |
430 | dont.BrickColor = BrickColor.new("Deep orange") | |
431 | elseif msg:lower():sub(1, 4) == "blue" then | |
432 | dont.BrickColor = BrickColor.new("Really blue") | |
433 | elseif msg:lower():sub(1, 4) == "cyan" then | |
434 | dont.BrickColor = BrickColor.new("Cyan") | |
435 | elseif msg:lower():sub(1, 6) == "pastel" then | |
436 | dont.BrickColor = BrickColor.new("Pastel yellow") | |
437 | elseif msg:lower():sub(1, 5) == "ghost" then | |
438 | dont.Transparency = 0.7 | |
439 | elseif msg:lower():sub(1, 5) == "alive" then | |
440 | dont.Transparency = 0 | |
441 | elseif msg:lower():sub(1, 5) == "block" then | |
442 | dont.Shape = "Block" | |
443 | elseif msg:lower():sub(1, 4) == "ball" then | |
444 | dont.Shape = "Ball" | |
445 | elseif msg:lower():sub(1, 3) == "bye" then | |
446 | dont:Destroy() | |
447 | elseif msg:lower():sub(1, 17) == "pick another song" then | |
448 | obj:Stop() | |
449 | obj.SoundId = "rbxassetid://"..feats[math.random(1,#feats)] | |
450 | obj.Volume = 10 | |
451 | obj.Looped = true | |
452 | obj:Play() | |
453 | elseif msg:lower():sub(1, 4) == "play" then | |
454 | obj:Play() | |
455 | elseif msg:lower():sub(1, 4) == "stop" then | |
456 | obj:Stop() | |
457 | elseif msg:lower():sub(1, 3) == "add" then | |
458 | obj:Stop() | |
459 | local arg = msg:sub(5, 999) | |
460 | obj.SoundId = "rbxassetid://"..arg | |
461 | obj:Play() | |
462 | end | |
463 | end) | |
464 | while true do | |
465 | for i = 0,1,.001 do | |
466 | dont.CFrame = dont.CFrame:lerp(tor.CFrame * CFrame.new(0, 5, 3), i) | |
467 | dont.Size = Vector3.new(obj.PlaybackLoudness/80, obj.PlaybackLoudness/80, obj.PlaybackLoudness/80) | |
468 | wait() | |
469 | end | |
470 | wait() | |
471 | end | |
472 | end | |
473 | elseif key == "g" then | |
474 | if mouse.Target ~= nil then | |
475 | local MAN = mouse.Target.Parent | |
476 | local MANT = MAN:FindFirstChild("Torso") or MAN:FindFirstChild("UpperTorso") | |
477 | local hole = Instance.new("Part", workspace) | |
478 | hole.Shape = "Ball" | |
479 | hole.Size = Vector3.new(0.7, 0.7, 0.7) | |
480 | hole.BrickColor = BrickColor.new("Eggplant") | |
481 | hole.Anchored = true | |
482 | hole.Material = "Neon" | |
483 | hole.CFrame = mouse.Hit | |
484 | for i,v in pairs(workspace:GetChildren()) do | |
485 | if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then | |
486 | local owtor = v | |
487 | blacktor = owtor:FindFirstChild("Torso") or owtor:FindFirstChild("UpperTorso") | |
488 | bodpos = Instance.new("BodyPosition", blacktor) | |
489 | bodpos.Position = hole.Position | |
490 | bodpos.P = 5000000000 | |
491 | bodpos.MaxForce = Vector3.new(500000000, 500000000, 500000000) | |
492 | end | |
493 | end | |
494 | end | |
495 | ||
496 | end | |
497 | end | |
498 | end | |
499 | mouse.KeyDown:connect(pressed) | |
500 | end) | |
501 | tool.Unequipped:connect(function() | |
502 | remoteequipped = false | |
503 | end) |