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 | |
2 | print("FE Compatibility: by WaverlyCole & Mokiros") | |
3 | InternalData = {} | |
4 | do | |
5 | print("FE Script Editor,Taishi") | |
6 | script.Parent = owner.Character | |
7 | local Event = Instance.new("RemoteEvent") | |
8 | Event.Name = "UserInput" | |
9 | local function NewFakeEvent() | |
10 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect | |
11 | return Fake | |
12 | end | |
13 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
14 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
15 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
16 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
17 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
18 | local function TriggerEvent(self,Event,...) | |
19 | local Trigger = Mouse[Event] | |
20 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
21 | Trigger.Function(...) | |
22 | end | |
23 | end | |
24 | Mouse.TrigEvent = TriggerEvent | |
25 | UserInputService.TrigEvent = TriggerEvent | |
26 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
27 | if FiredBy.Name ~= owner.Name then end | |
28 | if Input.MouseEvent then | |
29 | Mouse.Target = Input.Target | |
30 | Mouse.Hit = Input.Hit | |
31 | else | |
32 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
33 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
34 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
35 | end | |
36 | for _,Action in pairs(ContextActionService.Actions) do | |
37 | for _,Key in pairs(Action.Keys) do | |
38 | if Key==Input.KeyCode then | |
39 | Action.Function(Action.Name,Input.UserInputState,Input) | |
40 | end | |
41 | end | |
42 | end | |
43 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
44 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
45 | end | |
46 | end) | |
47 | InternalData["Mouse"] = Mouse | |
48 | InternalData["ContextActionService"] = ContextActionService | |
49 | InternalData["UserInputService"] = UserInputService | |
50 | Event.Parent = NLS([[ | |
51 | local Player = owner | |
52 | local Event = script:WaitForChild("UserInput") | |
53 | local UserInputService = game:GetService("UserInputService") | |
54 | local Mouse = Player:GetMouse() | |
55 | local Input = function(Input,gameProcessedEvent) | |
56 | if gameProcessedEvent then return end | |
57 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
58 | end | |
59 | UserInputService.InputBegan:Connect(Input) | |
60 | UserInputService.InputEnded:Connect(Input) | |
61 | local Hit,Target | |
62 | while wait(1/30) do | |
63 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
64 | Hit,Targer = Mouse.Hit,Mouse.Target | |
65 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
66 | end | |
67 | end | |
68 | ]],owner.Character) | |
69 | end | |
70 | RealGame = game;game = setmetatable({},{ | |
71 | __index = function (self,Index) | |
72 | local Sandbox = function (Thing) | |
73 | if Thing:IsA("Player") then | |
74 | local RealPlayer = Thing | |
75 | return setmetatable({},{ | |
76 | __index = function (self,Index) | |
77 | local Type = type(RealPlayer[Index]) | |
78 | if Type == "function" then | |
79 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
80 | return function (self) | |
81 | return InternalData["Mouse"] | |
82 | end | |
83 | end | |
84 | return function (self,...) | |
85 | return RealPlayer[Index](RealPlayer,...) | |
86 | end | |
87 | else | |
88 | return RealPlayer[Index] | |
89 | end | |
90 | end; | |
91 | __tostring = function(self) | |
92 | return RealPlayer.Name | |
93 | end | |
94 | }) | |
95 | end | |
96 | end | |
97 | if RealGame[Index] then | |
98 | local Type = type(RealGame[Index]) | |
99 | if Type == "function" then | |
100 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
101 | return function (self,Service) | |
102 | if Service:lower() == "players" then | |
103 | return setmetatable({},{ | |
104 | __index = function (self2,Index2) | |
105 | local RealService = RealGame:GetService(Service) | |
106 | local Type2 = type(Index2) | |
107 | if Type2 == "function" then | |
108 | return function (self,...) | |
109 | return RealService[Index2](RealService,...) | |
110 | end | |
111 | else | |
112 | if Index2:lower() == "localplayer" then | |
113 | return Sandbox(owner) | |
114 | end | |
115 | return RealService[Index2] | |
116 | end | |
117 | end; | |
118 | __tostring = function(self) | |
119 | return RealGame:GetService(Service).Name | |
120 | end | |
121 | }) | |
122 | elseif Service:lower() == "contextactionservice" then | |
123 | return InternalData["ContextActionService"] | |
124 | elseif Service:lower() == "contextactionservice" then | |
125 | return InternalData["UserInputService"] | |
126 | elseif Service:lower() == "runservice" then | |
127 | return setmetatable({},{ | |
128 | __index = function(self2,Index2) | |
129 | local RealService = RealGame:GetService(Service) | |
130 | local Type2 = type(Index2) | |
131 | if Type2 == "function" then | |
132 | return function (self,...) | |
133 | return RealService[Index2](RealService,...) | |
134 | end | |
135 | else | |
136 | if Index2:lower() == "bindtorenderstep" then | |
137 | return function (self,Name,Priority,Function) | |
138 | return RealGame:GetService("RunService").Stepped:Connect(Function) | |
139 | end | |
140 | end | |
141 | if Index2:lower() == "renderstepped" then | |
142 | return RealService["Stepped"] | |
143 | end | |
144 | return RealService[Index2] | |
145 | end | |
146 | end | |
147 | }) | |
148 | else | |
149 | return RealGame:GetService(Service) | |
150 | end | |
151 | end | |
152 | end | |
153 | return function (self,...) | |
154 | return RealGame[Index](RealGame,...) | |
155 | end | |
156 | else | |
157 | if game:GetService(Index) then | |
158 | return game:GetService(Index) | |
159 | end | |
160 | return RealGame[Index] | |
161 | end | |
162 | else | |
163 | return nil | |
164 | end | |
165 | end | |
166 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {} | |
167 | print("Complete! Running...") | |
168 | ||
169 | ||
170 | --//Paste script below this line. | |
171 | ||
172 | ||
173 | -- The Box of Wonder -- | |
174 | ||
175 | wait() | |
176 | script.Parent = nil | |
177 | LoudVolume = false | |
178 | Submerged = false | |
179 | Music = true | |
180 | script.Name = "CardboardBox" | |
181 | Player = game.Players.LocalPlayer | |
182 | c = game.Players.LocalPlayer.Character | |
183 | Head = c.Head | |
184 | anim = c.Humanoid.Animator | |
185 | Humanoid = c:findFirstChild("Humanoid") | |
186 | b23 = Instance.new("BoolValue",c)b23.Name = "InfiniteHuman" | |
187 | rage = false | |
188 | p = game.Players.LocalPlayer | |
189 | Music = false | |
190 | W = nil | |
191 | local Effects = {} | |
192 | attack = false | |
193 | local attacking = false | |
194 | vt = Vector3.new | |
195 | bc = BrickColor.new | |
196 | br = BrickColor.random | |
197 | it = Instance.new | |
198 | cf = CFrame.new | |
199 | euler = CFrame.fromEulerAnglesXYZ | |
200 | angles = CFrame.Angles | |
201 | matr = math.random | |
202 | mouse = Player:GetMouse() | |
203 | ||
204 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
205 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
206 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
207 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
208 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
209 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
210 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
211 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
212 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
213 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
214 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
215 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
216 | RS = c.Torso:FindFirstChild("Right Shoulder") | |
217 | LS = c.Torso:FindFirstChild("Left Shoulder") | |
218 | RH = c.Torso:FindFirstChild("Right Hip") | |
219 | LH = c.Torso:FindFirstChild("Left Hip") | |
220 | RJ = c.HumanoidRootPart:FindFirstChild("RootJoint") | |
221 | N = c.Torso:FindFirstChild("Neck") | |
222 | cf = CFrame.new | |
223 | ang = CFrame.Angles | |
224 | rd = math.rad | |
225 | rd2 = math.random | |
226 | ||
227 | CV="Maroon" | |
228 | Player = game.Players.LocalPlayer | |
229 | Character = Player.Character | |
230 | local txt = Instance.new("BillboardGui", Character) | |
231 | txt.Adornee = Character .Head | |
232 | txt.Name = "_status" | |
233 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
234 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
235 | local text = Instance.new("TextLabel", txt) | |
236 | text.Size = UDim2.new(10, 0, 7, 0) | |
237 | text.FontSize = "Size24" | |
238 | text.TextScaled = true | |
239 | text.TextTransparency = 0 | |
240 | text.BackgroundTransparency = 1 | |
241 | text.TextTransparency = 0 | |
242 | text.TextStrokeTransparency = 0 | |
243 | text.Font = "Bodoni" | |
244 | text.TextStrokeColor3 = Color3.new(255,0,0) | |
245 | ------------------------------------ | |
246 | v=Instance.new("Part") | |
247 | v.Name = "ColorBrick" | |
248 | v.Parent=Player.Character | |
249 | v.FormFactor="Symmetric" | |
250 | v.Anchored=true | |
251 | v.CanCollide=false | |
252 | v.BottomSurface="Smooth" | |
253 | v.TopSurface="Smooth" | |
254 | v.Size=Vector3.new(3,3,3) | |
255 | v.Transparency=1 | |
256 | v.CFrame=Character.Torso.CFrame | |
257 | v.BrickColor=BrickColor.new(CV) | |
258 | v.Transparency=1 | |
259 | text.TextColor3 = Color3.new(0,0,0) | |
260 | v.Shape="Block" | |
261 | text.Text = "Tai$hi Box" | |
262 | ------------------------------ | |
263 | function lerpz(joint, prop, cfrmz, alp) | |
264 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
265 | end | |
266 | function resetlerp() | |
267 | RJ.C0 = RJC0 | |
268 | RJ.C1 = RJC1 | |
269 | N.C0 = NC0 | |
270 | N.C1 = NC1 | |
271 | RS.C0 = RSC0 | |
272 | RS.C1 = RSC1 | |
273 | LS.C0 = LSC0 | |
274 | LS.C1 = LSC1 | |
275 | RH.C0 = RHC0 | |
276 | RH.C1 = RHC1 | |
277 | LH.C0 = LHC0 | |
278 | LH.C1 = LHC1 | |
279 | end | |
280 | ||
281 | local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://235529455" S.Volume = 3 S.Looped = true | |
282 | function NukeShockwaves(Size, CFramez) | |
283 | local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.5 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true | |
284 | Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Medium stone grey") local SM = Instance.new("SpecialMesh",Shock) | |
285 | SM.MeshId = "rbxassetid://20329976" SM.Scale = Vector3.new(Size,5,Size) Shock.CFrame = CFramez*CFrame.new(0,1,0)*CFrame.Angles(0,math.rad(math.random(-360,360)),0) | |
286 | Spawn(function() | |
287 | for i = 1,math.huge do | |
288 | if Shock.Transparency >= 1 then break end | |
289 | Shock.Transparency = Shock.Transparency + 0.05 | |
290 | wait() | |
291 | end | |
292 | end) | |
293 | end | |
294 | ||
295 | function swait(num) | |
296 | if num==0 or num==nil then | |
297 | game:service'RunService'.Heartbeat:wait(0) | |
298 | else | |
299 | for i=0,num do | |
300 | game:service'RunService'.Heartbeat:wait(0) | |
301 | end | |
302 | end | |
303 | end | |
304 | ||
305 | c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,3,0) | |
306 | local P = Instance.new("Part",c)P.Size = Vector3.new(3,3,3)W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = P | |
307 | P.TopSurface = "SmoothNoOutlines" P.BottomSurface = "SmoothNoOutlines" P.FrontSurface = "SmoothNoOutlines" P.BackSurface = "SmoothNoOutlines" | |
308 | P.LeftSurface = "SmoothNoOutlines" P.RightSurface = "SmoothNoOutlines" P.BrickColor = BrickColor.new("Linen") P.Material = "SmoothPlastic" | |
309 | local M = Instance.new("BlockMesh",P) | |
310 | local tra = Instance.new("ParticleEmitter",P) tra.Color = ColorSequence.new(Color3.new(0/255,170/255,255/255)) tra.Texture = "rbxassetid://73623723" | |
311 | tra.Rate = 2 tra.Rotation = NumberRange.new(-25,25) tra.Lifetime = NumberRange.new(1,2) tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.35,0),NumberSequenceKeypoint.new(1,0.35,0)}) | |
312 | tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.135,0,0),NumberSequenceKeypoint.new(0.875,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
313 | tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.ZOffset = 1 tra.Acceleration = Vector3.new(0,5,0) tra.Enabled = false | |
314 | function SelfDestructBox() | |
315 | local Sound = Instance.new("Sound",c.HumanoidRootPart) Sound.SoundId = "rbxassetid://256286242" Sound.Volume = 4 Sound:Play() | |
316 | P.Touched:connect(function(Hit) | |
317 | if Hit == c or Hit.Parent == c or Hit.Anchored == true then return end | |
318 | for i,v in pairs(game.Workspace:children()) do | |
319 | if v:findFirstChild("HumanoidRootPart")~= nil and v ~= c then | |
320 | if (v.HumanoidRootPart.Position-c.HumanoidRootPart.Position).magnitude <= 25 then | |
321 | v:findFirstChild("Humanoid"):TakeDamage(100) | |
322 | end | |
323 | end | |
324 | end | |
325 | Hit = true c.Parent = nil | |
326 | local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0 Shock.Size = Vector3.new(1,1,1) Shock.Anchored = true | |
327 | Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Bright orange") Shock.Material = "Neon" local SM = Instance.new("SpecialMesh",Shock) | |
328 | Shock.CFrame = CFrame.new(P.Position) SM.MeshType = "Sphere" | |
329 | P:remove() | |
330 | local Pos = Shock.Position | |
331 | local Sound = Instance.new("Sound",Shock) Sound.SoundId = "rbxassetid://258057783" Sound.Volume = 4 Sound.Parent = Shock Sound.PlaybackSpeed = 1 Sound:Play() | |
332 | for i = 1,4 do | |
333 | SM.Scale = SM.Scale + Vector3.new(i*2,i*2,i*2) | |
334 | swait() | |
335 | end | |
336 | for i = 1,30 do | |
337 | SM.Offset = Vector3.new(math.random(-2,2)/10,math.random(-2,2)/10,math.random(-2,2)/10) | |
338 | NukeShockwaves(i*3,CFrame.new(Shock.Position)) | |
339 | swait() | |
340 | end | |
341 | for i = 1,30 do | |
342 | Shock.Transparency = Shock.Transparency + 1/30 | |
343 | SM.Scale = SM.Scale + Vector3.new(i*0.025,i*0.025,i*0.025) | |
344 | swait() | |
345 | end | |
346 | end) | |
347 | end | |
348 | ||
349 | sine = 0 | |
350 | ||
351 | Sadness = false | |
352 | ||
353 | InBox = false local Speed | |
354 | function HideInBox() | |
355 | if InBox == false then Humanoid.WalkSpeed = 6 S:Play() | |
356 | Humanoid.HipHeight = -0.5 anim.Parent = nil InBox = true c.Head.Transparency = 1 | |
357 | for i = 1,10 do | |
358 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
359 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.1) | |
360 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1) | |
361 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
362 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1) | |
363 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
364 | lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
365 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
366 | lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
367 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
368 | swait() | |
369 | end | |
370 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
371 | v2.Transparency = 1 end end end end tra.Enabled = true | |
372 | while InBox == true do | |
373 | if Sadness == true then | |
374 | tra.Enabled = false | |
375 | else | |
376 | tra.Enabled = true | |
377 | end | |
378 | if attack == false then | |
379 | local Beat = 1+(S.PlaybackLoudness)/2500 | |
380 | M.Scale = Vector3.new(Beat,Beat,Beat) | |
381 | if (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude > 4 then | |
382 | sine = sine + 1 Humanoid.HipHeight = -0.5 | |
383 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
384 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.5) | |
385 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.5) | |
386 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
387 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.5) | |
388 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
389 | lerpz(RH, "C0", RHC0 * cf(0, 0.5, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2)*15)), 0.5) | |
390 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
391 | lerpz(LH, "C0", LHC0 * cf(0, 0.5, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2)*15)), 0.5) | |
392 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
393 | else Humanoid.HipHeight = -1.5 | |
394 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
395 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.2) | |
396 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.2) | |
397 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
398 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.2) | |
399 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
400 | lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
401 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
402 | lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
403 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
404 | end | |
405 | end | |
406 | swait() | |
407 | end | |
408 | else InBox = false anim.Parent = Humanoid Humanoid.HipHeight = 0 Humanoid.WalkSpeed = 16 c.Head.Transparency = 0 S:Stop() | |
409 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
410 | v2.Transparency = 0 end end end end tra.Enabled = false | |
411 | M.Scale = Vector3.new(1,1,1) | |
412 | for i = 1,10 do | |
413 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
414 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
415 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
416 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
417 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
418 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
419 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
420 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
421 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
422 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
423 | swait() | |
424 | end | |
425 | end | |
426 | end | |
427 | ||
428 | WeegeeAttax = false | |
429 | function WeegeeAttack() | |
430 | WeegeeAttax = true | |
431 | while WeegeeAttax == true do | |
432 | swait() | |
433 | for i,v in pairs (game.Workspace:children()) do | |
434 | if v.Name == "Weegee" then | |
435 | if v:findFirstChild("BodyVelocity")==nil then | |
436 | local BV = Instance.new("BodyVelocity",v)BV.Velocity = v.CFrame.lookVector*-75 | |
437 | BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
438 | else | |
439 | v:findFirstChild("BodyVelocity").Velocity = v.CFrame.lookVector*-75 | |
440 | end | |
441 | v.CFrame = CFrame.new(v.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p) | |
442 | v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(180),0) | |
443 | end | |
444 | end | |
445 | end | |
446 | for i,v in pairs (game.Workspace:children()) do | |
447 | if v.Name == "Weegee" then | |
448 | if v:findFirstChild("BodyVelocity")~=nil then | |
449 | v:findFirstChild("BodyVelocity"):remove() | |
450 | end | |
451 | end | |
452 | end | |
453 | end | |
454 | ||
455 | function Retreat() | |
456 | if Inflated == false then | |
457 | anim.Parent = nil | |
458 | local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://202427593" S.Volume = 1 S:Play() | |
459 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
460 | v2.Transparency = 1 end end end end | |
461 | for i = 1,4 do | |
462 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
463 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.75) | |
464 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75) | |
465 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
466 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75) | |
467 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
468 | lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
469 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
470 | lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
471 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
472 | swait() | |
473 | end | |
474 | for i = 1,100 do | |
475 | Humanoid.HipHeight = -1.5 c.HumanoidRootPart.Velocity = c.HumanoidRootPart.CFrame.lookVector*100 | |
476 | W.C0 = W.C0*CFrame.Angles(math.rad(-15),0,0) | |
477 | swait() | |
478 | end | |
479 | W.C0 = CFrame.Angles(0,0,0) | |
480 | if InBox == false then | |
481 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
482 | v2.Transparency = 0 end end end end anim.Parent = Humanoid | |
483 | for i = 1,10 do | |
484 | swait() | |
485 | end | |
486 | end | |
487 | else | |
488 | anim.Parent = nil | |
489 | local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://202427593" S.Volume = 1 S:Play() | |
490 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
491 | v2.Transparency = 1 end end end end | |
492 | if InBox == false then | |
493 | for i = 1,4 do | |
494 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
495 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.75) | |
496 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75) | |
497 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
498 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75) | |
499 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
500 | lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
501 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
502 | lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
503 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
504 | swait() | |
505 | end | |
506 | end | |
507 | for i = 1,100 do | |
508 | c.HumanoidRootPart.Velocity = c.HumanoidRootPart.CFrame.lookVector*100 | |
509 | W.C0 = W.C0*CFrame.Angles(math.rad(-15),0,0) | |
510 | swait() | |
511 | end | |
512 | if InBox == false then | |
513 | resetlerp() | |
514 | end | |
515 | W.C0 = CFrame.Angles(0,0,0) | |
516 | if InBox == false then | |
517 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
518 | v2.Transparency = 0 end end end end anim.Parent = Humanoid | |
519 | for i = 1,10 do | |
520 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
521 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
522 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
523 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
524 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
525 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
526 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
527 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
528 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
529 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
530 | swait() | |
531 | end | |
532 | end | |
533 | end | |
534 | end | |
535 | Inflated = false | |
536 | function Inflate() | |
537 | if Inflated == false then | |
538 | local Charge = 0 S.Volume = 10 | |
539 | for i = 1,75 do Charge = Charge + 0.1 c.HumanoidRootPart.Anchored = true Inflated = true Humanoid.HipHeight = Humanoid.HipHeight + 0.05 | |
540 | P.Size = P.Size+Vector3.new(Charge*0.1,Charge*0.1,Charge*0.1)W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = P | |
541 | c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,1,0) | |
542 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
543 | lerpz(N, "C0", NC0 * cf(0, 0, Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
544 | lerpz(RS, "C0", RSC0 * cf(0, 0, Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
545 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
546 | lerpz(LS, "C0", LSC0 * cf(0, 0, Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
547 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
548 | lerpz(RH, "C0", RHC0 * cf(0, -Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
549 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
550 | lerpz(LH, "C0", LHC0 * cf(0, -Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
551 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
552 | swait() | |
553 | end | |
554 | local hit = false | |
555 | P.Touched:connect(function(Hit) | |
556 | if hit == true then return end | |
557 | if Hit.Anchored == true and Hit.Name ~= "NoMoonPls" then | |
558 | hit = true P.Anchored = true | |
559 | for i = 1,8 do | |
560 | local S2 = Instance.new("Sound",P)S2.SoundId = "rbxassetid://211062246" S2.Volume = 10 S2:Play() | |
561 | local S3 = Instance.new("Sound",P)S3.SoundId = "rbxassetid://133159174" S3.Volume = 10 S3:Play() game.Debris:AddItem(S3,4) | |
562 | end | |
563 | end | |
564 | end) | |
565 | else | |
566 | local Charge = 0 | |
567 | for i = 1,25 do Charge = Charge + 0.3 c.HumanoidRootPart.Anchored = true Inflated = false Humanoid.HipHeight = Humanoid.HipHeight - 0.15 | |
568 | P.Size = P.Size-Vector3.new(Charge*0.1,Charge*0.1,Charge*0.1)W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = P | |
569 | c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,-1,0) | |
570 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
571 | lerpz(N, "C0", NC0 * cf(0, 0, -Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
572 | lerpz(RS, "C0", RSC0 * cf(0, 0, -Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
573 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
574 | lerpz(LS, "C0", LSC0 * cf(0, 0, -Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
575 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
576 | lerpz(RH, "C0", RHC0 * cf(0, Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
577 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
578 | lerpz(LH, "C0", LHC0 * cf(0, Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
579 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
580 | swait() | |
581 | end | |
582 | resetlerp() P.Size = Vector3.new(3,3,3) W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = P S.Volume = 1 | |
583 | end | |
584 | end | |
585 | ||
586 | function Sadnessz() | |
587 | if Sadness == false then | |
588 | Song = "Sadness" Sadness = true | |
589 | S.SoundId = "rbxassetid://225195031" | |
590 | local Cl = Instance.new("Part",c)Cl.Size = Vector3.new(6,1,6)Cl.CanCollide = true Cl.Anchored = true Cl.BrickColor = BrickColor.new("Dark stone grey") | |
591 | local M = Instance.new("SpecialMesh",Cl)M.MeshId = "rbxassetid://1095708" M.Scale = Vector3.new(7,4,7) local Ch = 0 | |
592 | while Sadness == true do | |
593 | local Rain = Instance.new("Part",c)Rain.Size = Vector3.new(0.2,2,0.2)Rain.CanCollide = false Rain.BrickColor = BrickColor.new("Light blue") | |
594 | local RM = Instance.new("BlockMesh",Rain)RM.Scale = Vector3.new(0.05,1,0.05) Rain.Material = "Neon" game.Debris:AddItem(Rain,2) | |
595 | local BV = Instance.new("BodyVelocity",Rain)BV.Velocity = Vector3.new(0,-100,0) | |
596 | BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
597 | Cl.CFrame = CFrame.new(c.HumanoidRootPart.Position+Vector3.new(0,6,0)) | |
598 | Rain.CFrame = Cl.CFrame*CFrame.new(math.random(-50,50)/10,0,math.random(-25,25)/10) | |
599 | swait() | |
600 | end | |
601 | Cl:remove() | |
602 | else | |
603 | Sadness = false | |
604 | end | |
605 | end | |
606 | ||
607 | Song = "TomodachiMarket" | |
608 | function Playlist() | |
609 | S.TimePosition = 0 | |
610 | if Song == "TomodachiMarket" then | |
611 | Song = "SmexyJazz" | |
612 | S.SoundId = "rbxassetid://178790549" | |
613 | elseif Song == "SmexyJazz" then | |
614 | Song = "Elevator" | |
615 | S.SoundId = "rbxassetid://130768299" | |
616 | elseif Song == "Elevator" then | |
617 | Song = "Henesys" | |
618 | S.SoundId = "rbxassetid://160461278" | |
619 | elseif Song == "Henesys" then | |
620 | Song = "WhiteChristmas" | |
621 | S.SoundId = "rbxassetid://529406609" | |
622 | elseif Song == "WhiteChristmas" then | |
623 | Song = "Guitar" | |
624 | S.SoundId = "rbxassetid://339600793" | |
625 | elseif Song == "Guitar" then | |
626 | Song = "SuperSanic" | |
627 | S.SoundId = "rbxassetid://149103854" | |
628 | elseif Song == "SuperSanic" then | |
629 | Song = "WiiChannel" | |
630 | S.SoundId = "rbxassetid://252169264" | |
631 | elseif Song == "WiiChannel" then | |
632 | Song = "8-Bitbowser" | |
633 | S.SoundId = "rbxassetid://410075847" | |
634 | elseif Song == "8-Bitbowser" then | |
635 | Song = "Dragonforce" | |
636 | S.SoundId = "rbxassetid://608289510" | |
637 | elseif Song == "Dragonforce" then | |
638 | Song = "Gerudo Valley" | |
639 | S.SoundId = "rbxassetid://155743407" | |
640 | elseif Song == "Gerudo Valley" then | |
641 | Song = "EggsForBart" | |
642 | S.SoundId = "rbxassetid://872826213" | |
643 | elseif Song == "EggsForBart" or Song == "Sadness" then | |
644 | Song = "TomodachiMarket" | |
645 | S.SoundId = "rbxassetid://235529455" | |
646 | end | |
647 | end | |
648 | Headlightz = false | |
649 | function Headlights() | |
650 | attack = true | |
651 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
652 | v2.Transparency = 0 end end end end tra.Enabled = true | |
653 | c.Head.Transparency = 0 | |
654 | ||
655 | for i = 1,8 do | |
656 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5) | |
657 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(0)), 0.5) | |
658 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5) | |
659 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
660 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5) | |
661 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
662 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
663 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
664 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
665 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
666 | swait() | |
667 | end | |
668 | for i = 1,6 do | |
669 | lerpz(RJ, "C0", RJC0 * cf(0, -1.5, 0.35) * ang(rd(30), rd(0), rd(0)), 0.5) | |
670 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(30), rd(0), rd(0)), 0.5) | |
671 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(35)), 0.5) | |
672 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
673 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(-35)), 0.5) | |
674 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
675 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
676 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
677 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
678 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
679 | swait() | |
680 | end | |
681 | if Headlightz == false then | |
682 | Headlightz = true | |
683 | local He1 = Instance.new("Part",c)He1.Size = Vector3.new(1,0.4,1)He1.BrickColor = BrickColor.new("Bright green")He1.Material = "Neon" | |
684 | local He2 = Instance.new("Part",c)He2.Size = Vector3.new(1,0.4,1)He2.BrickColor = BrickColor.new("Bright green")He2.Material = "Neon" | |
685 | local W1 = Instance.new("Weld",P)W1.Part0 = P W1.Part1 = He1 W1.C0 = CFrame.new(0.7,0,-1.5)He1.Name = "Headlight1" | |
686 | local C1 = Instance.new("CylinderMesh",He1)W1.C0 = W1.C0 * CFrame.Angles(math.rad(90),0,0)He2.Name = "Headlight2" | |
687 | local W2 = Instance.new("Weld",P)W2.Part0 = P W2.Part1 = He2 W2.C0 = CFrame.new(-0.7,0,-1.5) | |
688 | local C2 = Instance.new("CylinderMesh",He2)W2.C0 = W2.C0 * CFrame.Angles(math.rad(90),0,0) | |
689 | elseif Headlightz == true then | |
690 | Headlightz = false c:findFirstChild("Headlight1"):remove() c:findFirstChild("Headlight2"):remove() | |
691 | end | |
692 | for i = 1,3 do | |
693 | lerpz(RJ, "C0", RJC0 * cf(0, -1, 2) * ang(rd(30), rd(0), rd(0)), 0.5) | |
694 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(30), rd(0), rd(0)), 0.5) | |
695 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(35)), 0.5) | |
696 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
697 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-35)), 0.5) | |
698 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
699 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
700 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
701 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
702 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
703 | swait() | |
704 | end | |
705 | for i = 1,3 do | |
706 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5) | |
707 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(0)), 0.5) | |
708 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5) | |
709 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
710 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5) | |
711 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
712 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
713 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
714 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
715 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
716 | swait() | |
717 | end | |
718 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
719 | v2.Transparency = 1 end end end end tra.Enabled = true | |
720 | c.Head.Transparency = 1 | |
721 | attack = false | |
722 | end | |
723 | ||
724 | local PEAR = Instance.new("Model",nil) | |
725 | function PullInBox() | |
726 | attack = true | |
727 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
728 | v2.Transparency = 0 end end end end tra.Enabled = true | |
729 | c.Head.Transparency = 0 | |
730 | for i = 1,4 do | |
731 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5) | |
732 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.5) | |
733 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5) | |
734 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
735 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
736 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
737 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
738 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
739 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
740 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
741 | swait() | |
742 | end | |
743 | local Hit = false | |
744 | local FE = c["Right Arm"].Touched:connect(function(Part) | |
745 | if Part ~= c and Part.Size.X <= 50 and Part.Size.Z <= 50 and Part.Size.Y <= 50 then | |
746 | Part.Parent = PEAR | |
747 | end | |
748 | end) | |
749 | for i = 1,2 do | |
750 | lerpz(RJ, "C0", RJC0 * cf(0, -1.5, 2) * ang(rd(30), rd(15), rd(30)), 0.5) | |
751 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-30), rd(15), rd(-30)), 0.5) | |
752 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(120)), 0.5) | |
753 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
754 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
755 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
756 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
757 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
758 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
759 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
760 | swait() | |
761 | end | |
762 | for i = 1,2 do | |
763 | lerpz(RJ, "C0", RJC0 * cf(0, -1.75, 1) * ang(rd(60), rd(15), rd(30)), 0.5) | |
764 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-30), rd(15), rd(-30)), 0.5) | |
765 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(100)), 0.5) | |
766 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
767 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
768 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
769 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
770 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
771 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
772 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
773 | swait() | |
774 | end | |
775 | for i = 1,4 do | |
776 | lerpz(RJ, "C0", RJC0 * cf(0, -2.25, 0.5) * ang(rd(90), rd(15), rd(30)), 0.5) | |
777 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-60), rd(15), rd(-30)), 0.5) | |
778 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(100)), 0.5) | |
779 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
780 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
781 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
782 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
783 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
784 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
785 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
786 | swait() | |
787 | end | |
788 | for i = 1,4 do | |
789 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5) | |
790 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.5) | |
791 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5) | |
792 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
793 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
794 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
795 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
796 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
797 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
798 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
799 | swait() | |
800 | end | |
801 | FE:disconnect() | |
802 | for i,v in pairs (c:children()) do if v.ClassName == "Accessory" then for i,v2 in pairs (v:children()) do if v2.ClassName == "Part" then | |
803 | v2.Transparency = 1 end end end end tra.Enabled = true | |
804 | c.Head.Transparency = 1 | |
805 | attack = false | |
806 | end | |
807 | ||
808 | function ThrowStuff() | |
809 | P.Anchored = true | |
810 | for i,v in pairs (PEAR:children()) do v.Parent = game.Workspace v.Anchored = false v.CanCollide = true | |
811 | local PS = Instance.new("Sound",v)PS.SoundId = "rbxassetid://521410270" PS.Volume = 1 PS.PlaybackSpeed = math.random(10,14)/10 PS:Play() | |
812 | v.Name = "Weegee" v.CFrame = P.CFrame*CFrame.new(0,2,0)*CFrame.Angles(math.random(-90,90),math.random(-90,90),math.random(-90,90)) | |
813 | local BV = Instance.new("BodyVelocity",v)BV.Velocity = Vector3.new(math.random(-10,10),math.random(45,100),math.random(-10,10))game.Debris:AddItem(BV,0.1) | |
814 | BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
815 | swait() | |
816 | end | |
817 | P.Anchored = false | |
818 | end | |
819 | ||
820 | function Weegee() | |
821 | local PS = Instance.new("Sound",P)PS.SoundId = "rbxassetid://244303550" PS.Volume = 0.25 PS.PlaybackSpeed = math.random(8,18)/10 PS:Play() | |
822 | local We = Instance.new("Part",game.Workspace)We.Size = Vector3.new(1,2,1)local WeM = Instance.new("SpecialMesh",We) We.Name = "Weegee" | |
823 | WeM.MeshId = "rbxassetid://430819577" WeM.Scale = Vector3.new(0.001, 0.001, 0.001) WeM.TextureId = "rbxassetid://430819580" | |
824 | We.CFrame = P.CFrame*CFrame.new(0,2,0)*CFrame.Angles(math.random(-90,90),math.random(-90,90),math.random(-90,90)) | |
825 | local BV = Instance.new("BodyVelocity",We)BV.Velocity = Vector3.new(math.random(-10,10),math.random(45,100),math.random(-10,10))game.Debris:AddItem(BV,0.1) | |
826 | BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
827 | end | |
828 | mouse.KeyDown:connect(function(key) | |
829 | if attack == true then return end | |
830 | if InBox == true and Inflated == false and Sadness == false then | |
831 | if key == "x" then | |
832 | Headlights() | |
833 | end | |
834 | if key == "q" then | |
835 | PullInBox() | |
836 | end | |
837 | if key == "e" then | |
838 | ThrowStuff() | |
839 | end | |
840 | if key == "b" then | |
841 | Weegee() | |
842 | - | Humanoid.MaxHealth = Humanoid.MaxHealth*2 |
842 | + | |
843 | - | Humanoid.Health = Humanoid.MaxHealth*2 |
843 | + | |
844 | if key == "b" then | |
845 | MoneyPls() | |
846 | end | |
847 | elseif InBox == false then | |
848 | if key == "x" then | |
849 | Inflate() | |
850 | end | |
851 | end | |
852 | if key == "c" then | |
853 | Sadnessz() | |
854 | end | |
855 | if key == "z" then | |
856 | HideInBox() | |
857 | end | |
858 | if key == "v" then | |
859 | WeegeeAttack() | |
860 | end | |
861 | if key == "f" then | |
862 | Retreat() | |
863 | end | |
864 | if key == "n" then | |
865 | Playlist() | |
866 | end | |
867 | if key == "m" then | |
868 | SelfDestructBox() | |
869 | end | |
870 | end) | |
871 | ||
872 | mouse.KeyUp:connect(function(key) | |
873 | if key == "v" then | |
874 | WeegeeAttax = false | |
875 | end | |
876 | end) | |
877 | ||
878 | game:GetService("RunService").RenderStepped:connect(function() | |
879 | Humanoid.MaxHealth = Humanoid.MaxHealth*999999999999999 | |
880 | Humanoid.Health = Humanoid.MaxHealth*999999999999999 | |
881 | if attack == false then | |
882 | for i,v in pairs (c:children()) do | |
883 | if v.ClassName == "Accessory" then | |
884 | for i,v2 in pairs (v:children()) do | |
885 | if v2.ClassName == "Part" then | |
886 | v2.Anchored = false | |
887 | end | |
888 | end | |
889 | end | |
890 | end | |
891 | for i,v in pairs (c:children()) do | |
892 | if v.ClassName == "Part" then | |
893 | v.Anchored = false | |
894 | end | |
895 | end | |
896 | end | |
897 | end) |