SHOW:
|
|
- or go back to the newest paste.
1 | - | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end |
1 | + | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {} |
2 | - | print("FE Compatibility: by WaverlyCole & Mokiros") |
2 | + | |
3 | - | InternalData = {} |
3 | + | |
4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
5 | local function NewFakeEvent() | |
6 | - | local Event = Instance.new("RemoteEvent") |
6 | + | local Bind = Instance.new("BindableEvent") |
7 | - | Event.Name = "UserInput" |
7 | + | local Fake;Fake = {Connections = {}, |
8 | fakeEvent=true; | |
9 | - | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect |
9 | + | Connect=function(self,Func) |
10 | - | return Fake |
10 | + | Bind.Event:connect(Func) |
11 | self.Connections[Bind] = true | |
12 | return setmetatable({Connected = true},{ | |
13 | __index = function (self,Index) | |
14 | if Index:lower() == "disconnect" then | |
15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
16 | end | |
17 | return Fake[Index] | |
18 | end; | |
19 | - | if Trigger and Trigger.fakeEvent and Trigger.Function then |
19 | + | __tostring = function() return "Connection" end; |
20 | - | Trigger.Function(...) |
20 | + | }) |
21 | end} | |
22 | Fake.connect = Fake.Connect;return Fake; | |
23 | - | Mouse.TrigEvent = TriggerEvent |
23 | + | |
24 | - | UserInputService.TrigEvent = TriggerEvent |
24 | + | |
25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
26 | - | if FiredBy.Name ~= owner.Name then end |
26 | + | |
27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
28 | - | Mouse.Target = Input.Target |
28 | + | |
29 | - | Mouse.Hit = Input.Hit |
29 | + | |
30 | local Trigger = Mouse[Event] | |
31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
32 | - | if Input.UserInputType == Enum.UserInputType.MouseButton1 then |
32 | + | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end |
33 | - | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") |
33 | + | |
34 | end | |
35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
36 | - | for _,Key in pairs(Action.Keys) do |
36 | + | |
37 | - | if Key==Input.KeyCode then |
37 | + | if FiredBy.Name ~= owner.Name then return end |
38 | - | Action.Function(Action.Name,Input.UserInputState,Input) |
38 | + | |
39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
40 | else | |
41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
43 | for _,Action in pairs(ContextActionService.Actions) do | |
44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
45 | end | |
46 | - | InternalData["Mouse"] = Mouse |
46 | + | |
47 | - | InternalData["ContextActionService"] = ContextActionService |
47 | + | |
48 | - | InternalData["UserInputService"] = UserInputService |
48 | + | |
49 | end) | |
50 | - | local Player = owner |
50 | + | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService |
51 | - | local Event = script:WaitForChild("UserInput") |
51 | + | |
52 | - | local UserInputService = game:GetService("UserInputService") |
52 | + | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() |
53 | - | local Mouse = Player:GetMouse() |
53 | + | |
54 | if gameProcessedEvent then return end | |
55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
56 | end | |
57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
58 | - | UserInputService.InputBegan:Connect(Input) |
58 | + | |
59 | - | UserInputService.InputEnded:Connect(Input) |
59 | + | |
60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
62 | end | |
63 | - | Hit,Target = Mouse.Hit,Mouse.Target |
63 | + | |
64 | - | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) |
64 | + | |
65 | end | |
66 | RealGame = game;game = setmetatable({},{ | |
67 | __index = function (self,Index) | |
68 | local Sandbox = function (Thing) | |
69 | if Thing:IsA("Player") then | |
70 | local RealPlayer = Thing | |
71 | return setmetatable({},{ | |
72 | __index = function (self,Index) | |
73 | local Type = type(RealPlayer[Index]) | |
74 | if Type == "function" then | |
75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
76 | return function (self)return InternalData["Mouse"] end | |
77 | end | |
78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
79 | - | return function (self) |
79 | + | |
80 | - | return InternalData["Mouse"] |
80 | + | return RealPlayer[Index] |
81 | - | end |
81 | + | |
82 | __tostring = function(self) return RealPlayer.Name end | |
83 | - | return function (self,...) |
83 | + | |
84 | - | return RealPlayer[Index](RealPlayer,...) |
84 | + | |
85 | end | |
86 | - | else |
86 | + | |
87 | - | if Index == "PlrObj" then |
87 | + | |
88 | - | return RealPlayer |
88 | + | |
89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
90 | - | return RealPlayer[Index] |
90 | + | |
91 | local FakeServices = { | |
92 | ["players"] = function() | |
93 | - | __tostring = function(self) |
93 | + | return setmetatable({},{ |
94 | - | return RealPlayer.Name |
94 | + | __index = function (self2,Index2) |
95 | local RealService = RealGame:GetService(Service) | |
96 | local Type2 = type(Index2) | |
97 | if Type2 == "function" then | |
98 | return function (self,...) return RealService[Index2](RealService,...)end | |
99 | else | |
100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
101 | return RealService[Index2] | |
102 | end | |
103 | end; | |
104 | - | if Service:lower() == "players" then |
104 | + | __tostring = function(self) return RealGame:GetService(Service).Name end |
105 | - | return setmetatable({},{ |
105 | + | }) |
106 | - | __index = function (self2,Index2) |
106 | + | end; |
107 | - | local RealService = RealGame:GetService(Service) |
107 | + | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; |
108 | - | local Type2 = type(Index2) |
108 | + | ["userinputservice"] = function() return InternalData["UserInputService"] end; |
109 | - | if Type2 == "function" then |
109 | + | ["runservice"] = function() |
110 | - | return function (self,...) |
110 | + | return setmetatable({},{ |
111 | - | return RealService[Index2](RealService,...) |
111 | + | __index = function(self2,Index2) |
112 | local RealService = RealGame:GetService(Service) | |
113 | - | else |
113 | + | local Type2 = type(Index2) |
114 | - | if Index2:lower() == "localplayer" then |
114 | + | if Type2 == "function" then |
115 | - | return Sandbox(owner) |
115 | + | return function (self,...) return RealService[Index2](RealService,...) end |
116 | else | |
117 | - | return RealService[Index2] |
117 | + | local RunServices = { |
118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
119 | - | end; |
119 | + | ["renderstepped"] = function() return RealService["Stepped"] end |
120 | - | __tostring = function(self) |
120 | + | } |
121 | - | return RealGame:GetService(Service).Name |
121 | + | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end |
122 | - | end |
122 | + | return RealService[Index2] |
123 | - | }) |
123 | + | |
124 | - | elseif Service:lower() == "contextactionservice" then |
124 | + | |
125 | - | return InternalData["ContextActionService"] |
125 | + | }) |
126 | - | elseif Service:lower() == "contextactionservice" then |
126 | + | |
127 | - | return InternalData["UserInputService"] |
127 | + | } |
128 | - | elseif Service:lower() == "runservice" then |
128 | + | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end |
129 | - | return setmetatable({},{ |
129 | + | return RealGame:GetService(Service) |
130 | - | __index = function(self2,Index2) |
130 | + | |
131 | - | local RealService = RealGame:GetService(Service) |
131 | + | |
132 | - | local Type2 = type(Index2) |
132 | + | return function (self,...) return RealGame[Index](RealGame,...) end |
133 | - | if Type2 == "function" then |
133 | + | |
134 | - | return function (self,...) |
134 | + | if game:GetService(Index) then return game:GetService(Index) end |
135 | - | return RealService[Index2](RealService,...) |
135 | + | |
136 | end | |
137 | - | else |
137 | + | |
138 | - | if Index2:lower() == "bindtorenderstep" then |
138 | + | return nil |
139 | - | return function (self,Name,Priority,Function) |
139 | + | |
140 | - | return RealGame:GetService("RunService").Stepped:Connect(Function) |
140 | + | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...") |
141 | - | end |
141 | + | |
142 | print("Complete! Running...") | |
143 | - | if Index2:lower() == "renderstepped" then |
143 | + | |
144 | - | return RealService["Stepped"] |
144 | + | |
145 | print("z - make it morning") | |
146 | - | return RealService[Index2] |
146 | + | |
147 | print("c - clean workspace") | |
148 | - | end |
148 | + | |
149 | - | }) |
149 | + | |
150 | - | else |
150 | + | |
151 | - | return RealGame:GetService(Service) |
151 | + | print("l - annihilate the player your mouse is pointing at") |
152 | print("p - Heal yourself") | |
153 | print("k - kill other players") | |
154 | print("b - control the player your mouse it pointing at") | |
155 | - | return function (self,...) |
155 | + | print("m - tp evryone to you") |
156 | - | return RealGame[Index](RealGame,...) |
156 | + | print("j - send the player your mouse is pointing at to 'heaven'") |
157 | print("q - spawn pet") | |
158 | oil = game.Players.LocalPlayer | |
159 | - | if game:GetService(Index) then |
159 | + | |
160 | - | return game:GetService(Index) |
160 | + | |
161 | head = sauce:FindFirstChild("Head") | |
162 | larm = sauce:FindFirstChild("Left Arm") or sauce:FindFirstChild("LeftUpperArm") | |
163 | rarm = sauce:FindFirstChild("Right Arm") or sauce:FindFirstChild("RightUpperArm") | |
164 | rleg = sauce:FindFirstChild("Right Leg") or sauce:FindFirstChild("RightUpperLeg") | |
165 | - | return nil |
165 | + | |
166 | hum = sauce:FindFirstChildOfClass("Humanoid") | |
167 | humroot = sauce:FindFirstChild("HumanoidRootPart") | |
168 | - | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {} |
168 | + | |
169 | remoteequipped = true | |
170 | controlling = false | |
171 | light = game:GetService("Lighting") | |
172 | tool = Instance.new("Tool", oil.Backpack) | |
173 | tool.Name = "Remote" | |
174 | hand = Instance.new("Part", tool) | |
175 | hand.Name = "Handle" | |
176 | hand.Size = Vector3.new(1, 1, 1) | |
177 | hand.Transparency = 1 | |
178 | - | print("e - annihilate the player your mouse is pointing at") |
178 | + | |
179 | - | print("p - suicide") |
179 | + | |
180 | remoteequiped = true | |
181 | function pressed(key) | |
182 | - | print("r - tp evryone to you") |
182 | + | if remoteequiped == true then |
183 | - | print("t - send the player your mouse is pointing at to 'heaven'") |
183 | + | |
184 | light.TimeOfDay = 21 | |
185 | - | print("g - spawn a blackhole") |
185 | + | |
186 | light.TimeOfDay = 7 | |
187 | elseif key == "c" then | |
188 | for i,v in pairs(workspace:GetChildren()) do | |
189 | if v:IsA("Part") and v.Name ~= "Base" then | |
190 | v.Locked = false | |
191 | v:remove() | |
192 | end | |
193 | if v:IsA("Model") and not v:FindFirstChildOfClass("Humanoid") then | |
194 | v:remove() | |
195 | end | |
196 | end | |
197 | elseif key == "p" then | |
198 | hum.Health = 1000 | |
199 | elseif key == "k" then | |
200 | for i,v in pairs(workspace:GetChildren()) do | |
201 | if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then | |
202 | khum = v:FindFirstChildOfClass("Humanoid") | |
203 | khum.Health = 0 | |
204 | end | |
205 | end | |
206 | - | p1 = Instance.new("Part", hand) |
206 | + | elseif key == "m" then |
207 | - | p1.Size = Vector3.new(0.6, 0.1, 1.2) |
207 | + | |
208 | - | p1.Material = "Metal" |
208 | + | |
209 | - | p1.Name = "p1" |
209 | + | |
210 | - | p2 = Instance.new("Part", hand) |
210 | + | |
211 | - | p2.Size = Vector3.new(0.4, 0.1, 0.1) |
211 | + | |
212 | - | p2.Material = "Metal" |
212 | + | |
213 | - | p2.Name = "p2" |
213 | + | |
214 | - | p2.Shape = "Cylinder" |
214 | + | |
215 | - | p3 = Instance.new("Part", hand) |
215 | + | |
216 | - | p3.Shape = "Ball" |
216 | + | |
217 | - | p3.Material = "Neon" |
217 | + | |
218 | - | p3.Size = Vector3.new(0.15, 0.15, 0.15) |
218 | + | |
219 | - | p3.BrickColor = BrickColor.new("Crimson") |
219 | + | |
220 | - | p3.Name = "p3" |
220 | + | |
221 | - | p4 = Instance.new("Part", hand) |
221 | + | |
222 | - | p4.Size = Vector3.new(0.2, 0.4, 0.4) |
222 | + | |
223 | - | p4.Material = "Neon" |
223 | + | |
224 | - | p4.Name = "p4" |
224 | + | |
225 | - | p4.BrickColor = BrickColor.new("Maroon") |
225 | + | |
226 | - | p4.Shape = "Cylinder" |
226 | + | |
227 | - | w1 = Instance.new("Weld", p1) |
227 | + | |
228 | - | w1.Part0 = hand |
228 | + | |
229 | - | w1.Part1 = p1 |
229 | + | |
230 | - | w1.C1 = CFrame.new(0, 0, 0.6) |
230 | + | |
231 | - | w1.Name = "w1" |
231 | + | |
232 | - | w2 = Instance.new("Weld", p2) |
232 | + | |
233 | - | w2.Part0 = hand |
233 | + | |
234 | - | w2.Part1 = p2 |
234 | + | elseif key == "l" then |
235 | - | w2.C1 = CFrame.new(1.3, 0, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)) |
235 | + | |
236 | - | w3 = Instance.new("Weld", p3) |
236 | + | |
237 | - | w3.Part0 = hand |
237 | + | |
238 | - | w3.Part1 = p3 |
238 | + | |
239 | - | w3.C1 = CFrame.new(0, 0, 1.5) |
239 | + | |
240 | - | w4 = Instance.new("Weld", p4) |
240 | + | |
241 | - | w4.Part0 = hand |
241 | + | |
242 | - | w4.Part1 = p4 |
242 | + | |
243 | - | w4.C1 = CFrame.new(0.1, 0, 0.6) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) |
243 | + | |
244 | local fatman = mou.Target.Parent | |
245 | local fatmanhum = fatman:FindFirstChildOfClass("Humanoid") | |
246 | fatmanhum.WalkSpeed = 8 | |
247 | local fattor = mou.Target.Parent:FindFirstChild("Torso") or mou.Target.Parent:FindFirstChild("UpperTorso") | |
248 | local hinum = Instance.new("Sound", fattor) | |
249 | - | if remoteequipped == true then |
249 | + | |
250 | hinum.Volume = 10 | |
251 | local realfat = Instance.new("Part", fattor) | |
252 | realfat.BrickColor = fattor.BrickColor | |
253 | realfat.Material = "SmoothPlastic" | |
254 | local supaweld = Instance.new("Weld", realfat) | |
255 | supaweld.Part0 = fattor | |
256 | supaweld.Part1 = realfat | |
257 | local fat = Instance.new("SpecialMesh", realfat) | |
258 | fat.MeshType = "Sphere" | |
259 | fat.Scale = Vector3.new(0.6, 1.6, 0.9) | |
260 | fat.Offset = Vector3.new(0, -0.4, -0.7) | |
261 | hinum:Play() | |
262 | if fatman:FindFirstChildOfClass("Shirt") then | |
263 | fatman:FindFirstChildOfClass("Shirt"):remove() | |
264 | end | |
265 | - | hum.Health = 0 |
265 | + | |
266 | elseif key == "b" then | |
267 | if mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") and controlling == false then | |
268 | controlling = true | |
269 | cman = mou.Target.Parent | |
270 | mtor = cman:FindFirstChild("Torso") or cman:FindFirstChild("UpperTorso") | |
271 | mlarm = cman:FindFirstChild("Left Arm") or cman:FindFirstChild("LeftUpperArm") | |
272 | mrarm = cman:FindFirstChild("Right Arm") or cman:FindFirstChild("RightUpperArm") | |
273 | - | elseif key == "r" then |
273 | + | |
274 | mrleg = cman:FindFirstChild("Right Leg") or cman:FindFirstChild("RightUpperLeg") | |
275 | mhead = cman:FindFirstChild("Head") | |
276 | mhum = cman:FindFirstChildOfClass("Humanoid") | |
277 | mhum.PlatformStand = true | |
278 | hum.NameOcclusion = "NoOcclusion" | |
279 | mface = head:FindFirstChild("face") | |
280 | mface.Transparency = 1 | |
281 | humroot.Transparency = 1 | |
282 | for i,v in pairs(sauce:GetChildren()) do | |
283 | if v:IsA("Part") then | |
284 | v.Transparency = 1 | |
285 | end | |
286 | if v:IsA("Accessory") then | |
287 | v.Handle.Transparency = 1 | |
288 | end | |
289 | end | |
290 | ow1 = Instance.new("Weld", tor) | |
291 | ow1.Part0 = tor | |
292 | ow1.Part1 = mtor | |
293 | ow2 = Instance.new("Weld", larm) | |
294 | ow2.Part0 = larm | |
295 | ow2.Part1 = mlarm | |
296 | ow3 = Instance.new("Weld", rarm) | |
297 | ow3.Part0 = rarm | |
298 | ow3.Part1 = mrarm | |
299 | ow4 = Instance.new("Weld", lleg) | |
300 | ow4.Part0 = lleg | |
301 | - | elseif key == "e" then |
301 | + | |
302 | ow5 = Instance.new("Weld", rleg) | |
303 | ow5.Part0 = rleg | |
304 | ow5.Part1 = mrleg | |
305 | ow6 = Instance.new("Weld", head) | |
306 | ow6.Part0 = head | |
307 | ow6.Part1 = mhead | |
308 | elseif controlling == true then | |
309 | controlling = false | |
310 | ow1:Destroy() | |
311 | ow2:Destroy() | |
312 | ow3:Destroy() | |
313 | ow4:Destroy() | |
314 | ow5:Destroy() | |
315 | ow6:Destroy() | |
316 | mhum.PlatformStand = false | |
317 | hum.NameOcclusion = "OccludeAll" | |
318 | humrootTransparency = 1 | |
319 | mface.Transparency = 0 | |
320 | for i,v in pairs(sauce:GetChildren()) do | |
321 | if v:IsA("Part") and v ~= humroot then | |
322 | v.Transparency = 0 | |
323 | end | |
324 | if v:IsA("Accessory") then | |
325 | v.Handle.Transparency = 0 | |
326 | end | |
327 | end | |
328 | end | |
329 | elseif key == "n" then | |
330 | for i,v in pairs(workspace:GetChildren()) do | |
331 | if v:IsA("Model") and v:FindFirstChildOfClass("Humanoid") and v.Name ~= sauce.Name then | |
332 | local fatman = v | |
333 | local fatmanhum = fatman:FindFirstChildOfClass("Humanoid") | |
334 | fatmanhum.WalkSpeed = 8 | |
335 | local fattor = fatman:FindFirstChild("Torso") or fatman:FindFirstChild("UpperTorso") | |
336 | local hinum2 = Instance.new("Sound", fattor) | |
337 | hinum2.SoundId = "rbxassetid://1278031541" | |
338 | hinum2.Volume = 10 | |
339 | local realfat = Instance.new("Part", fattor) | |
340 | realfat.BrickColor = fattor.BrickColor | |
341 | realfat.Material = "SmoothPlastic" | |
342 | local supaweld = Instance.new("Weld", realfat) | |
343 | supaweld.Part0 = fattor | |
344 | supaweld.Part1 = realfat | |
345 | local fat = Instance.new("SpecialMesh", realfat) | |
346 | fat.MeshType = "Sphere" | |
347 | fat.Scale = Vector3.new(0.6, 1.6, 0.9) | |
348 | fat.Offset = Vector3.new(0, -0.4, -0.7) | |
349 | hinum2:Play() | |
350 | if fatman:FindFirstChildOfClass("Shirt") then | |
351 | fatman:FindFirstChildOfClass("Shirt"):remove() | |
352 | end | |
353 | end | |
354 | end | |
355 | elseif key == "j" then | |
356 | if mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then | |
357 | local goneman = mou.Target.Parent | |
358 | local gonehead = goneman:FindFirstChild("Head") | |
359 | local gonetor = goneman:FindFirstChild("Torso") or goneman:FindFirstChild("UpperTorso") | |
360 | local lightb = Instance.new("Part", goneman) | |
361 | lightb.Shape = "Cylinder" | |
362 | lightb.CanCollide = false | |
363 | lightb.Anchored = true | |
364 | lightb.Size = Vector3.new(300, 15, 15) | |
365 | lightb.Material = "Neon" | |
366 | lightb.Transparency = 0.5 | |
367 | lightb.BrickColor = BrickColor.new("New Yeller") | |
368 | lightb.CFrame = gonetor.CFrame * CFrame.new(0, 140, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(90)) | |
369 | local start = gonetor.CFrame | |
370 | local finish = lightb.CFrame * CFrame.new(140, 0, 0) | |
371 | for i = 0,1,.01 do | |
372 | gonetor.CFrame = start:lerp(finish, i) | |
373 | wait() | |
374 | end | |
375 | goneman:Destroy() | |
376 | wait(1.50) | |
377 | lightb:Destroy() | |
378 | end | |
379 | elseif key == "q" then | |
380 | if mou.Target ~= nil then | |
381 | local dont = Instance.new("Part", sauce) | |
382 | dont.CFrame = mou.Hit | |
383 | dont.Material = "Sand" | |
384 | dont.BrickColor = BrickColor.new("Royal purple") | |
385 | dont.Size = Vector3.new(-5, -5, -5) | |
386 | dont.Shape = "Ball" | |
387 | dont.Anchored = true | |
388 | local obj = Instance.new("Sound", dont) | |
389 | local feats = {937258314,4897528175,1585416938,1972238279,4216306082,3017465331,1145101566,561818043,1705749553,2785552824,2362140771,347049837,347049837,903445489,2593538490} | |
390 | obj.SoundId = "rbxassetid://"..feats[math.random(1,#feats)] | |
391 | obj.Volume = 7 | |
392 | obj.Looped = true | |
393 | obj:Play() | |
394 | oil.Chatted:connect(function(msg) | |
395 | if msg:lower():sub(1, 7) == "plastic" then | |
396 | dont.Material = "Plastic" | |
397 | elseif msg:lower():sub(1, 5) == "slate" then | |
398 | dont.Material = "Slate" | |
399 | elseif msg:lower():sub(1, 3) == "ice" then | |
400 | dont.Material = "Ice" | |
401 | elseif msg:lower():sub(1, 5) == "metal" then | |
402 | dont.Material = "Metal" | |
403 | elseif msg:lower():sub(1, 4) == "neon" then | |
404 | dont.Material = "Neon" | |
405 | elseif msg:lower():sub(1, 5) == "grass" then | |
406 | dont.Material = "Grass" | |
407 | elseif msg:lower():sub(1, 4) == "sand" then | |
408 | dont.Material = "Sand" | |
409 | elseif msg:lower():sub(1, 9) == "woodplank" then | |
410 | dont.Material = "WoodPlanks" | |
411 | elseif msg:lower():sub(1, 4) == "wood" then | |
412 | dont.Material = "Wood" | |
413 | elseif msg:lower():sub(1, 6) == "marble" then | |
414 | dont.Material = "Marble" | |
415 | elseif msg:lower():sub(1, 8) == "concrete" then | |
416 | dont.Material = "Concrete" | |
417 | elseif msg:lower():sub(1, 5) == "brick" then | |
418 | dont.Material = "Brick" | |
419 | elseif msg:lower():sub(1, 7) == "granite" then | |
420 | dont.Material = "Granite" | |
421 | elseif msg:lower():sub(1, 6) == "pebble" then | |
422 | - | elseif key == "t" then |
422 | + | |
423 | elseif msg:lower():sub(1, 11) == "cobblestone" then | |
424 | dont.Material = "Cobblestone" | |
425 | elseif msg:lower():sub(1, 13) == "corrodedmetal" then | |
426 | dont.Material = "CorrodedMetal" | |
427 | elseif msg:lower():sub(1, 12) == "diamondplate" then | |
428 | dont.Material = "DiamondPlate" | |
429 | elseif msg:lower():sub(1, 4) == "foil" then | |
430 | dont.Material = "Foil" | |
431 | - | lightb.Size = Vector3.new(300, 10, 10) |
431 | + | |
432 | dont.Material = "Fabric" | |
433 | elseif msg:lower():sub(1, 6) == "yellow" then | |
434 | dont.BrickColor = BrickColor.new("New Yeller") | |
435 | elseif msg:lower():sub(1, 6) == "purple" then | |
436 | dont.BrickColor = BrickColor.new("Bright violet") | |
437 | elseif msg:lower():sub(1, 3) == "red" then | |
438 | dont.BrickColor = BrickColor.new("Crimson") | |
439 | elseif msg:lower():sub(1, 5) == "black" then | |
440 | dont.BrickColor = BrickColor.new("Really black") | |
441 | elseif msg:lower():sub(1, 5) == "white" then | |
442 | - | gonehead.Size = Vector3.new(50, 50, 50) |
442 | + | |
443 | elseif msg:lower():sub(1, 4) == "pink" then | |
444 | dont.BrickColor = BrickColor.new("Hot pink") | |
445 | elseif msg:lower():sub(1, 5) == "green" then | |
446 | dont.BrickColor = BrickColor.new("Bright green") | |
447 | elseif msg:lower():sub(1, 4) == "grey" then | |
448 | dont.BrickColor = BrickColor.new("Medium stone grey") | |
449 | elseif msg:lower():sub(1, 5) == "brown" then | |
450 | dont.BrickColor = BrickColor.new("Burnt Sienna") | |
451 | - | dont.Size = Vector3.new(3, 3, 3) |
451 | + | |
452 | dont.BrickColor = BrickColor.new("Deep orange") | |
453 | elseif msg:lower():sub(1, 4) == "blue" then | |
454 | dont.BrickColor = BrickColor.new("Really blue") | |
455 | - | local feats = {463838589, 691897627, 179270320, 425407550, 1074595721, 1065045593, 142688397, 1308566029, 1402510823} |
455 | + | |
456 | dont.BrickColor = BrickColor.new("Cyan") | |
457 | - | obj.Volume = 10 |
457 | + | |
458 | dont.BrickColor = BrickColor.new("Pastel yellow") | |
459 | elseif msg:lower():sub(1, 5) == "ghost" then | |
460 | dont.Transparency = 0.7 | |
461 | elseif msg:lower():sub(1, 5) == "alive" then | |
462 | dont.Transparency = 0 | |
463 | elseif msg:lower():sub(1, 5) == "block" then | |
464 | dont.Shape = "Block" | |
465 | elseif msg:lower():sub(1, 4) == "ball" then | |
466 | dont.Shape = "Ball" | |
467 | elseif msg:lower():sub(1, 3) == "bye" then | |
468 | dont:Destroy() | |
469 | elseif msg:lower():sub(1, 17) == "up" then | |
470 | obj.Volume = 15 | |
471 | elseif msg:lower():sub(1, 17) == "skip" then | |
472 | obj:Stop() | |
473 | obj.SoundId = "rbxassetid://"..feats[math.random(1,#feats)] | |
474 | obj.Volume = 7 | |
475 | obj.Looped = true | |
476 | obj:Play() | |
477 | elseif msg:lower():sub(1, 4) == "play" then | |
478 | obj:Play() | |
479 | elseif msg:lower():sub(1, 4) == "stop" then | |
480 | obj:Stop() | |
481 | elseif msg:lower():sub(1, 3) == "add" then | |
482 | obj:Stop() | |
483 | local arg = msg:sub(5, 999) | |
484 | obj.SoundId = "rbxassetid://"..arg | |
485 | obj:Play() | |
486 | end | |
487 | end) | |
488 | while true do | |
489 | for i = 0,1,.001 do | |
490 | dont.CFrame = dont.CFrame:lerp(tor.CFrame * CFrame.new(0, 5, 3), i) | |
491 | dont.Size = Vector3.new(obj.PlaybackLoudness/80, obj.PlaybackLoudness/80, obj.PlaybackLoudness/80) | |
492 | wait() | |
493 | end | |
494 | wait() | |
495 | end | |
496 | end | |
497 | ||
498 | end | |
499 | end | |
500 | end | |
501 | mou.KeyDown:connect(pressed) | |
502 | end) | |
503 | tool.Unequipped:connect(function() | |
504 | remoteequipped = false | |
505 | end) |