SHOW:
|
|
- or go back to the newest paste.
1 | -- The Box of Wonder -- | |
2 | --Reanimate | |
3 | loadstring(game:HttpGet("https://pastebin.com/raw/YBMWtriH"))() | |
4 | ||
5 | lol = getcustomasset or getsynasset | |
6 | getgenv().LoadLibrary = function(lib) return loadstring(game:HttpGet("https://raw.githubusercontent.com/Roblox/Core-Scripts/master/CoreScriptsRoot/Libraries/" .. lib .. ".lua"))() end | |
7 | ||
8 | wait() | |
9 | script.Parent = nil | |
10 | LoudVolume = false | |
11 | Submerged = false | |
12 | Music = true | |
13 | script.Name = "CardboardBox" | |
14 | Player = game.Players.LocalPlayer | |
15 | c = game.Players.LocalPlayer.Character | |
16 | Head = c.Head | |
17 | anim = c.Humanoid.Animator | |
18 | Humanoid = c:findFirstChild("Humanoid") | |
19 | b23 = Instance.new("BoolValue",c)b23.Name = "InfiniteHuman" | |
20 | rage = false | |
21 | p = game.Players.LocalPlayer | |
22 | Music = false | |
23 | W = nil | |
24 | local Effects = {} | |
25 | attack = false | |
26 | local attacking = false | |
27 | vt = Vector3.new | |
28 | bc = BrickColor.new | |
29 | br = BrickColor.random | |
30 | it = Instance.new | |
31 | cf = CFrame.new | |
32 | euler = CFrame.fromEulerAnglesXYZ | |
33 | angles = CFrame.Angles | |
34 | matr = math.random | |
35 | mouse = Player:GetMouse() | |
36 | ||
37 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
38 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
39 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
40 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
41 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
42 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
43 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
44 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
45 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
46 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
47 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
48 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
49 | RS = c.Torso:FindFirstChild("Right Shoulder") | |
50 | LS = c.Torso:FindFirstChild("Left Shoulder") | |
51 | RH = c.Torso:FindFirstChild("Right Hip") | |
52 | LH = c.Torso:FindFirstChild("Left Hip") | |
53 | RJ = c.HumanoidRootPart:FindFirstChild("RootJoint") | |
54 | N = c.Torso:FindFirstChild("Neck") | |
55 | cf = CFrame.new | |
56 | ang = CFrame.Angles | |
57 | rd = math.rad | |
58 | rd2 = math.random | |
59 | ||
60 | function lerpz(joint, prop, cfrmz, alp) | |
61 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
62 | end | |
63 | function resetlerp() | |
64 | RJ.C0 = RJC0 | |
65 | RJ.C1 = RJC1 | |
66 | N.C0 = NC0 | |
67 | N.C1 = NC1 | |
68 | RS.C0 = RSC0 | |
69 | RS.C1 = RSC1 | |
70 | LS.C0 = LSC0 | |
71 | LS.C1 = LSC1 | |
72 | RH.C0 = RHC0 | |
73 | RH.C1 = RHC1 | |
74 | LH.C0 = LHC0 | |
75 | LH.C1 = LHC1 | |
76 | end | |
77 | ||
78 | local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://1676172776" S.Volume = 3 S.Looped = true | |
79 | function NukeShockwaves(Size, CFramez) | |
80 | local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0.5 Shock.Size = Vector3.new(0.2,0.2,0.2) Shock.Anchored = true | |
81 | Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Medium stone grey") local SM = Instance.new("SpecialMesh",Shock) | |
82 | 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) | |
83 | Spawn(function() | |
84 | for i = 1,math.huge do | |
85 | if Shock.Transparency >= 1 then break end | |
86 | Shock.Transparency = Shock.Transparency + 0.05 | |
87 | wait() | |
88 | end | |
89 | end) | |
90 | end | |
91 | ||
92 | function swait(num) | |
93 | if num==0 or num==nil then | |
94 | game:service'RunService'.Heartbeat:wait(0) | |
95 | else | |
96 | for i=0,num do | |
97 | game:service'RunService'.Heartbeat:wait(0) | |
98 | end | |
99 | end | |
100 | end | |
101 | ||
102 | c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,3,0) | |
103 | 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 | |
104 | P.TopSurface = "SmoothNoOutlines" P.BottomSurface = "SmoothNoOutlines" P.FrontSurface = "SmoothNoOutlines" P.BackSurface = "SmoothNoOutlines" | |
105 | P.LeftSurface = "SmoothNoOutlines" P.RightSurface = "SmoothNoOutlines" P.BrickColor = BrickColor.new("Really black") P.Material = "Marble" | |
106 | local M = Instance.new("BlockMesh",P) | |
107 | local tra = Instance.new("ParticleEmitter",P) tra.Color = ColorSequence.new(Color3.new(0/255,170/255,255/255)) tra.Texture = "rbxassetid://73623723" | |
108 | 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)}) | |
109 | 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)}) | |
110 | tra.Speed = NumberRange.new(0.5) tra.VelocitySpread = 360 tra.ZOffset = 1 tra.Acceleration = Vector3.new(0,5,0) tra.Enabled = false | |
111 | function SelfDestructBox() | |
112 | local Sound = Instance.new("Sound",c.HumanoidRootPart) Sound.SoundId = "rbxassetid://256286242" Sound.Volume = 4 Sound:Play() | |
113 | P.Touched:connect(function(Hit) | |
114 | if Hit == c or Hit.Parent == c or Hit.Anchored == true then return end | |
115 | for i,v in pairs(game.Workspace:children()) do | |
116 | if v:findFirstChild("HumanoidRootPart")~= nil and v ~= c then | |
117 | if (v.HumanoidRootPart.Position-c.HumanoidRootPart.Position).magnitude <= 25 then | |
118 | v:findFirstChild("Humanoid"):TakeDamage(100) | |
119 | end | |
120 | end | |
121 | end | |
122 | Hit = true c.Parent = nil | |
123 | local Shock = Instance.new("Part",game.Workspace)Shock.Transparency = 0 Shock.Size = Vector3.new(1,1,1) Shock.Anchored = true | |
124 | Shock.CanCollide = false Shock.BrickColor = BrickColor.new("Bright orange") Shock.Material = "Neon" local SM = Instance.new("SpecialMesh",Shock) | |
125 | Shock.CFrame = CFrame.new(P.Position) SM.MeshType = "Sphere" | |
126 | P:remove() | |
127 | local Pos = Shock.Position | |
128 | local Sound = Instance.new("Sound",Shock) Sound.SoundId = "rbxassetid://258057783" Sound.Volume = 4 Sound.Parent = Shock Sound.PlaybackSpeed = 1 Sound:Play() | |
129 | for i = 1,4 do | |
130 | SM.Scale = SM.Scale + Vector3.new(i*2,i*2,i*2) | |
131 | swait() | |
132 | end | |
133 | for i = 1,30 do | |
134 | SM.Offset = Vector3.new(math.random(-2,2)/10,math.random(-2,2)/10,math.random(-2,2)/10) | |
135 | NukeShockwaves(i*3,CFrame.new(Shock.Position)) | |
136 | swait() | |
137 | end | |
138 | for i = 1,30 do | |
139 | Shock.Transparency = Shock.Transparency + 1/30 | |
140 | SM.Scale = SM.Scale + Vector3.new(i*0.025,i*0.025,i*0.025) | |
141 | swait() | |
142 | end | |
143 | end) | |
144 | end | |
145 | ||
146 | sine = 0 | |
147 | ||
148 | Sadness = false | |
149 | ||
150 | InBox = false local Speed | |
151 | function HideInBox() | |
152 | if InBox == false then Humanoid.WalkSpeed = 6 S:Play() | |
153 | Humanoid.HipHeight = -0.5 anim.Parent = nil InBox = true c.Head.Transparency = 1 | |
154 | for i = 1,10 do | |
155 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
156 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.1) | |
157 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1) | |
158 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
159 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1) | |
160 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
161 | lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
162 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
163 | lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
164 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1) | |
165 | swait() | |
166 | end | |
167 | 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 | |
168 | v2.Transparency = 1 end end end end tra.Enabled = true | |
169 | while InBox == true do | |
170 | if Sadness == true then | |
171 | tra.Enabled = false | |
172 | else | |
173 | tra.Enabled = true | |
174 | end | |
175 | if attack == false then | |
176 | local Beat = 1+(S.PlaybackLoudness)/2500 | |
177 | M.Scale = Vector3.new(Beat,Beat,Beat) | |
178 | if (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude > 4 then | |
179 | sine = sine + 1 Humanoid.HipHeight = -0.5 | |
180 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
181 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.5) | |
182 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.5) | |
183 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
184 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.5) | |
185 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
186 | lerpz(RH, "C0", RHC0 * cf(0, 0.5, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2)*15)), 0.5) | |
187 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
188 | lerpz(LH, "C0", LHC0 * cf(0, 0.5, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2)*15)), 0.5) | |
189 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
190 | else Humanoid.HipHeight = -1.5 | |
191 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
192 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.2) | |
193 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.2) | |
194 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
195 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.2) | |
196 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
197 | lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
198 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
199 | lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
200 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
201 | end | |
202 | end | |
203 | swait() | |
204 | end | |
205 | else InBox = false anim.Parent = Humanoid Humanoid.HipHeight = 0 Humanoid.WalkSpeed = 16 c.Head.Transparency = 0 S:Stop() | |
206 | 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 | |
207 | v2.Transparency = 0 end end end end tra.Enabled = false | |
208 | M.Scale = Vector3.new(1,1,1) | |
209 | for i = 1,10 do | |
210 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
211 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
212 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
213 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
214 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
215 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
216 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
217 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
218 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
219 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25) | |
220 | swait() | |
221 | end | |
222 | end | |
223 | end | |
224 | ||
225 | WeegeeAttax = false | |
226 | function WeegeeAttack() | |
227 | WeegeeAttax = true | |
228 | while WeegeeAttax == true do | |
229 | swait() | |
230 | for i,v in pairs (game.Workspace:children()) do | |
231 | if v.Name == "Weegee" then | |
232 | if v:findFirstChild("BodyVelocity")==nil then | |
233 | local BV = Instance.new("BodyVelocity",v)BV.Velocity = v.CFrame.lookVector*-75 | |
234 | BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
235 | else | |
236 | v:findFirstChild("BodyVelocity").Velocity = v.CFrame.lookVector*-75 | |
237 | end | |
238 | v.CFrame = CFrame.new(v.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p) | |
239 | v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(180),0) | |
240 | end | |
241 | end | |
242 | end | |
243 | for i,v in pairs (game.Workspace:children()) do | |
244 | if v.Name == "Weegee" then | |
245 | if v:findFirstChild("BodyVelocity")~=nil then | |
246 | v:findFirstChild("BodyVelocity"):remove() | |
247 | end | |
248 | end | |
249 | end | |
250 | end | |
251 | ||
252 | function Retreat() | |
253 | if Inflated == false then | |
254 | anim.Parent = nil | |
255 | local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://202427593" S.Volume = 1 S:Play() | |
256 | 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 | |
257 | v2.Transparency = 1 end end end end | |
258 | for i = 1,4 do | |
259 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
260 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.75) | |
261 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75) | |
262 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
263 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75) | |
264 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
265 | lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
266 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
267 | lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
268 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
269 | swait() | |
270 | end | |
271 | for i = 1,100 do | |
272 | Humanoid.HipHeight = -1.5 c.HumanoidRootPart.Velocity = c.HumanoidRootPart.CFrame.lookVector*100 | |
273 | W.C0 = W.C0*CFrame.Angles(math.rad(-15),0,0) | |
274 | swait() | |
275 | end | |
276 | W.C0 = CFrame.Angles(0,0,0) | |
277 | if InBox == false then | |
278 | 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 | |
279 | v2.Transparency = 0 end end end end anim.Parent = Humanoid | |
280 | for i = 1,10 do | |
281 | swait() | |
282 | end | |
283 | end | |
284 | else | |
285 | anim.Parent = nil | |
286 | local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://202427593" S.Volume = 1 S:Play() | |
287 | 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 | |
288 | v2.Transparency = 1 end end end end | |
289 | if InBox == false then | |
290 | for i = 1,4 do | |
291 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
292 | lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.75) | |
293 | lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75) | |
294 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
295 | lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75) | |
296 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
297 | lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
298 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
299 | lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
300 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75) | |
301 | swait() | |
302 | end | |
303 | end | |
304 | for i = 1,100 do | |
305 | c.HumanoidRootPart.Velocity = c.HumanoidRootPart.CFrame.lookVector*100 | |
306 | W.C0 = W.C0*CFrame.Angles(math.rad(-15),0,0) | |
307 | swait() | |
308 | end | |
309 | if InBox == false then | |
310 | resetlerp() | |
311 | end | |
312 | W.C0 = CFrame.Angles(0,0,0) | |
313 | if InBox == false then | |
314 | 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 | |
315 | v2.Transparency = 0 end end end end anim.Parent = Humanoid | |
316 | for i = 1,10 do | |
317 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
318 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
319 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
320 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
321 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
322 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
323 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
324 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
325 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
326 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
327 | swait() | |
328 | end | |
329 | end | |
330 | end | |
331 | end | |
332 | Inflated = false | |
333 | function Inflate() | |
334 | if Inflated == false then | |
335 | local Charge = 0 S.Volume = 10 | |
336 | for i = 1,75 do Charge = Charge + 0.1 c.HumanoidRootPart.Anchored = true Inflated = true Humanoid.HipHeight = Humanoid.HipHeight + 0.05 | |
337 | 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 | |
338 | c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,1,0) | |
339 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
340 | lerpz(N, "C0", NC0 * cf(0, 0, Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
341 | lerpz(RS, "C0", RSC0 * cf(0, 0, Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
342 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
343 | lerpz(LS, "C0", LSC0 * cf(0, 0, Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
344 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
345 | lerpz(RH, "C0", RHC0 * cf(0, -Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
346 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
347 | lerpz(LH, "C0", LHC0 * cf(0, -Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
348 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
349 | swait() | |
350 | end | |
351 | local hit = false | |
352 | P.Touched:connect(function(Hit) | |
353 | if hit == true then return end | |
354 | if Hit.Anchored == true and Hit.Name ~= "NoMoonPls" then | |
355 | hit = true P.Anchored = true | |
356 | for i = 1,8 do | |
357 | local S2 = Instance.new("Sound",P)S2.SoundId = "rbxassetid://211062246" S2.Volume = 10 S2:Play() | |
358 | local S3 = Instance.new("Sound",P)S3.SoundId = "rbxassetid://133159174" S3.Volume = 10 S3:Play() game.Debris:AddItem(S3,4) | |
359 | end | |
360 | end | |
361 | end) | |
362 | else | |
363 | local Charge = 0 | |
364 | for i = 1,25 do Charge = Charge + 0.3 c.HumanoidRootPart.Anchored = true Inflated = false Humanoid.HipHeight = Humanoid.HipHeight - 0.15 | |
365 | 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 | |
366 | c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,-1,0) | |
367 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
368 | lerpz(N, "C0", NC0 * cf(0, 0, -Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
369 | lerpz(RS, "C0", RSC0 * cf(0, 0, -Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
370 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
371 | lerpz(LS, "C0", LSC0 * cf(0, 0, -Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5) | |
372 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
373 | lerpz(RH, "C0", RHC0 * cf(0, Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
374 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
375 | lerpz(LH, "C0", LHC0 * cf(0, Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
376 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
377 | swait() | |
378 | end | |
379 | resetlerp() P.Size = Vector3.new(3,3,3) W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = P S.Volume = 1 | |
380 | end | |
381 | end | |
382 | ||
383 | function Sadnessz() | |
384 | if Sadness == false then | |
385 | Song = "Sadness" Sadness = true | |
386 | S.SoundId = "rbxassetid://655029578" | |
387 | 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") | |
388 | local M = Instance.new("SpecialMesh",Cl)M.MeshId = "rbxassetid://1095708" M.Scale = Vector3.new(7,4,7) local Ch = 0 | |
389 | while Sadness == true do | |
390 | local Rain = Instance.new("Part",c)Rain.Size = Vector3.new(0.2,2,0.2)Rain.CanCollide = false Rain.BrickColor = BrickColor.new("Light blue") | |
391 | local RM = Instance.new("BlockMesh",Rain)RM.Scale = Vector3.new(0.05,1,0.05) Rain.Material = "Neon" game.Debris:AddItem(Rain,2) | |
392 | local BV = Instance.new("BodyVelocity",Rain)BV.Velocity = Vector3.new(0,-100,0) | |
393 | BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
394 | Cl.CFrame = CFrame.new(c.HumanoidRootPart.Position+Vector3.new(0,6,0)) | |
395 | Rain.CFrame = Cl.CFrame*CFrame.new(math.random(-50,50)/10,0,math.random(-25,25)/10) | |
396 | swait() | |
397 | end | |
398 | Cl:remove() | |
399 | else | |
400 | Sadness = false | |
401 | end | |
402 | end | |
403 | ||
404 | Song = "TomodachiMarket" | |
405 | function Playlist() | |
406 | S.TimePosition = 0 | |
407 | if Song == "TomodachiMarket" then | |
408 | Song = "SmexyJazz" | |
409 | S.SoundId = "rbxassetid://603146550" | |
410 | elseif Song == "SmexyJazz" then | |
411 | Song = "Elevator" | |
412 | S.SoundId = "rbxassetid://1674203484" | |
413 | elseif Song == "Elevator" then | |
414 | Song = "Henesys" | |
415 | S.SoundId = "rbxassetid://845577713" | |
416 | elseif Song == "Henesys" then | |
417 | Song = "WhiteChristmas" | |
418 | S.SoundId = "rbxassetid://973281733" | |
419 | elseif Song == "WhiteChristmas" then | |
420 | Song = "Guitar" | |
421 | S.SoundId = "rbxassetid://667661063" | |
422 | elseif Song == "Guitar" then | |
423 | Song = "SuperSanic" | |
424 | S.SoundId = "rbxassetid://1514073985" | |
425 | elseif Song == "SuperSanic" then | |
426 | Song = "WiiChannel" | |
427 | S.SoundId = "rbxassetid://252169264" | |
428 | elseif Song == "WiiChannel" then | |
429 | Song = "8-Bitbowser" | |
430 | S.SoundId = "rbxassetid://427736550" | |
431 | elseif Song == "8-Bitbowser" then | |
432 | Song = "Dragonforce" | |
433 | S.SoundId = "rbxassetid://1145245034" | |
434 | elseif Song == "Dragonforce" then | |
435 | Song = "Gerudo Valley" | |
436 | S.SoundId = "rbxassetid://1621589101" | |
437 | elseif Song == "Gerudo Valley" then | |
438 | Song = "EggsForBart" | |
439 | S.SoundId = "rbxassetid://1042053236" | |
440 | elseif Song == "EggsForBart" or Song == "Sadness" then | |
441 | Song = "TomodachiMarket" | |
442 | S.SoundId = "rbxassetid://894702010" | |
443 | end | |
444 | end | |
445 | Headlightz = false | |
446 | function Headlights() | |
447 | attack = true | |
448 | 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 | |
449 | v2.Transparency = 0 end end end end tra.Enabled = true | |
450 | c.Head.Transparency = 0 | |
451 | ||
452 | for i = 1,8 do | |
453 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5) | |
454 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(0)), 0.5) | |
455 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5) | |
456 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
457 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5) | |
458 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
459 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
460 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
461 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
462 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
463 | swait() | |
464 | end | |
465 | for i = 1,6 do | |
466 | lerpz(RJ, "C0", RJC0 * cf(0, -1.5, 0.35) * ang(rd(30), rd(0), rd(0)), 0.5) | |
467 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(30), rd(0), rd(0)), 0.5) | |
468 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(35)), 0.5) | |
469 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
470 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(-35)), 0.5) | |
471 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
472 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
473 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
474 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
475 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
476 | swait() | |
477 | end | |
478 | if Headlightz == false then | |
479 | Headlightz = true | |
480 | local He1 = Instance.new("Part",c)He1.Size = Vector3.new(1,0.4,1)He1.BrickColor = BrickColor.new("Crimson")He1.Material = "Neon" | |
481 | local He2 = Instance.new("Part",c)He2.Size = Vector3.new(1,0.4,1)He2.BrickColor = BrickColor.new("Crimson")He2.Material = "Neon" | |
482 | local W1 = Instance.new("Weld",P)W1.Part0 = P W1.Part1 = He1 W1.C0 = CFrame.new(0.7,0,-1.5)He1.Name = "Headlight1" | |
483 | local C1 = Instance.new("CylinderMesh",He1)W1.C0 = W1.C0 * CFrame.Angles(math.rad(90),0,0)He2.Name = "Headlight2" | |
484 | local W2 = Instance.new("Weld",P)W2.Part0 = P W2.Part1 = He2 W2.C0 = CFrame.new(-0.7,0,-1.5) | |
485 | local C2 = Instance.new("CylinderMesh",He2)W2.C0 = W2.C0 * CFrame.Angles(math.rad(90),0,0) | |
486 | elseif Headlightz == true then | |
487 | Headlightz = false c:findFirstChild("Headlight1"):remove() c:findFirstChild("Headlight2"):remove() | |
488 | end | |
489 | for i = 1,3 do | |
490 | lerpz(RJ, "C0", RJC0 * cf(0, -1, 2) * ang(rd(30), rd(0), rd(0)), 0.5) | |
491 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(30), rd(0), rd(0)), 0.5) | |
492 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(35)), 0.5) | |
493 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
494 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-35)), 0.5) | |
495 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
496 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
497 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
498 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
499 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
500 | swait() | |
501 | end | |
502 | for i = 1,3 do | |
503 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5) | |
504 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(0)), 0.5) | |
505 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5) | |
506 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
507 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5) | |
508 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
509 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
510 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
511 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
512 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
513 | swait() | |
514 | end | |
515 | 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 | |
516 | v2.Transparency = 1 end end end end tra.Enabled = true | |
517 | c.Head.Transparency = 1 | |
518 | attack = false | |
519 | end | |
520 | ||
521 | local PEAR = Instance.new("Model",nil) | |
522 | function PullInBox() | |
523 | attack = true | |
524 | 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 | |
525 | v2.Transparency = 0 end end end end tra.Enabled = true | |
526 | c.Head.Transparency = 0 | |
527 | for i = 1,4 do | |
528 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5) | |
529 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.5) | |
530 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5) | |
531 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
532 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
533 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
534 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
535 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
536 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
537 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
538 | swait() | |
539 | end | |
540 | local Hit = false | |
541 | local FE = c["Right Arm"].Touched:connect(function(Part) | |
542 | if Part ~= c and Part.Size.X <= 50 and Part.Size.Z <= 50 and Part.Size.Y <= 50 then | |
543 | Part.Parent = PEAR | |
544 | end | |
545 | end) | |
546 | for i = 1,2 do | |
547 | lerpz(RJ, "C0", RJC0 * cf(0, -1.5, 2) * ang(rd(30), rd(15), rd(30)), 0.5) | |
548 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-30), rd(15), rd(-30)), 0.5) | |
549 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(120)), 0.5) | |
550 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
551 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
552 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
553 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
554 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
555 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
556 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
557 | swait() | |
558 | end | |
559 | for i = 1,2 do | |
560 | lerpz(RJ, "C0", RJC0 * cf(0, -1.75, 1) * ang(rd(60), rd(15), rd(30)), 0.5) | |
561 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-30), rd(15), rd(-30)), 0.5) | |
562 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(100)), 0.5) | |
563 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
564 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
565 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
566 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
567 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
568 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
569 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
570 | swait() | |
571 | end | |
572 | for i = 1,4 do | |
573 | lerpz(RJ, "C0", RJC0 * cf(0, -2.25, 0.5) * ang(rd(90), rd(15), rd(30)), 0.5) | |
574 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-60), rd(15), rd(-30)), 0.5) | |
575 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(100)), 0.5) | |
576 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
577 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
578 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
579 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
580 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
581 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
582 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
583 | swait() | |
584 | end | |
585 | for i = 1,4 do | |
586 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5) | |
587 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.5) | |
588 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5) | |
589 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
590 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
591 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
592 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
593 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
594 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
595 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
596 | swait() | |
597 | end | |
598 | FE:disconnect() | |
599 | 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 | |
600 | v2.Transparency = 1 end end end end tra.Enabled = true | |
601 | c.Head.Transparency = 1 | |
602 | attack = false | |
603 | end | |
604 | ||
605 | function ThrowStuff() | |
606 | P.Anchored = true | |
607 | for i,v in pairs (PEAR:children()) do v.Parent = game.Workspace v.Anchored = false v.CanCollide = true | |
608 | local PS = Instance.new("Sound",v)PS.SoundId = "rbxassetid://521410270" PS.Volume = 1 PS.PlaybackSpeed = math.random(10,14)/10 PS:Play() | |
609 | 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)) | |
610 | 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) | |
611 | BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
612 | swait() | |
613 | end | |
614 | P.Anchored = false | |
615 | end | |
616 | ||
617 | function Weegee() | |
618 | local PS = Instance.new("Sound",P)PS.SoundId = "rbxassetid://244303550" PS.Volume = 0.25 PS.PlaybackSpeed = math.random(8,18)/10 PS:Play() | |
619 | local We = Instance.new("Part",game.Workspace)We.Size = Vector3.new(1,2,1)local WeM = Instance.new("SpecialMesh",We) We.Name = "Weegee" | |
620 | WeM.MeshId = "rbxassetid://430819577" WeM.Scale = Vector3.new(0.001, 0.001, 0.001) WeM.TextureId = "rbxassetid://430819580" | |
621 | We.CFrame = P.CFrame*CFrame.new(0,2,0)*CFrame.Angles(math.random(-90,90),math.random(-90,90),math.random(-90,90)) | |
622 | 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) | |
623 | BV.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
624 | end | |
625 | mouse.KeyDown:connect(function(key) | |
626 | if attack == true then return end | |
627 | if InBox == true and Inflated == false and Sadness == false then | |
628 | if key == "x" then | |
629 | Headlights() | |
630 | end | |
631 | if key == "q" then | |
632 | PullInBox() | |
633 | end | |
634 | if key == "e" then | |
635 | ThrowStuff() | |
636 | end | |
637 | if key == "b" then | |
638 | Weegee() | |
639 | end | |
640 | elseif InBox == true and Sadness == true then | |
641 | if key == "b" then | |
642 | MoneyPls() | |
643 | end | |
644 | elseif InBox == false then | |
645 | if key == "x" then | |
646 | Inflate() | |
647 | end | |
648 | end | |
649 | if key == "c" then | |
650 | Sadnessz() | |
651 | end | |
652 | if key == "z" then | |
653 | HideInBox() | |
654 | end | |
655 | if key == "v" then | |
656 | WeegeeAttack() | |
657 | end | |
658 | if key == "f" then | |
659 | Retreat() | |
660 | end | |
661 | if key == "n" then | |
662 | Playlist() | |
663 | end | |
664 | if key == "m" then | |
665 | SelfDestructBox() | |
666 | end | |
667 | end) | |
668 | ||
669 | mouse.KeyUp:connect(function(key) | |
670 | if key == "v" then | |
671 | WeegeeAttax = false | |
672 | end | |
673 | end) | |
674 | ||
675 | game:GetService("RunService").RenderStepped:connect(function() | |
676 | Humanoid.MaxHealth = Humanoid.MaxHealth*2 | |
677 | Humanoid.Health = Humanoid.MaxHealth*2 | |
678 | if attack == false then | |
679 | for i,v in pairs (c:children()) do | |
680 | if v.ClassName == "Accessory" then | |
681 | for i,v2 in pairs (v:children()) do | |
682 | if v2.ClassName == "Part" then | |
683 | v2.Anchored = false | |
684 | end | |
685 | end | |
686 | end | |
687 | end | |
688 | for i,v in pairs (c:children()) do | |
689 | if v.ClassName == "Part" then | |
690 | v.Anchored = false | |
691 | end | |
692 | end | |
693 | end | |
694 | end) |