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