Advertisement
SCR1PT_ED1T0R

FE Box of Wonders

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