Advertisement
SCR1PT_ED1T0R

FE Rainbow Box of Wonders (EDIT BY XDAVODIOX)

Oct 15th, 2018
1,541
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 Rainbow 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. touchCounter = 0
  283. local cR=255
  284. local cG=0
  285. local cB=0
  286. local flg5=1 local omgidk=1
  287. local add=15
  288. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  289. if omgidk>10000 then omgidk=0 end
  290. omgidk=omgidk+1
  291. if cR>=255 then flg5=1 end
  292. if cG>=255 then flg5=2 end
  293. if cB>=255 then flg5=3 end
  294. if flg5==1 then cR=cR-add cG=cG+add end
  295. if flg5==2 then cG=cG-add cB=cB+add end
  296. if flg5==3 then cB=cB-add cR=cR+add end
  297. color=Color3.fromRGB(cR,cG,cB)
  298. P.Color = color
  299. end)
  300.  
  301. sine = 0
  302.  
  303. Sadness = false
  304.  
  305. InBox = false local Speed
  306. function HideInBox()
  307. if InBox == false then Humanoid.WalkSpeed = 6 S:Play()
  308. Humanoid.HipHeight = -0.5 anim.Parent = nil InBox = true c.Head.Transparency = 1
  309. for i = 1,10 do
  310. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  311. lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.1)
  312. lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  313. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  314. lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.1)
  315. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  316. lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  317. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  318. lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  319. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1)
  320. swait()
  321. end
  322. 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
  323. v2.Transparency = 1 end end end end tra.Enabled = true
  324. while InBox == true do
  325. if Sadness == true then
  326. tra.Enabled = false
  327. else
  328. tra.Enabled = true
  329. end
  330. if attack == false then
  331. local Beat = 1+(S.PlaybackLoudness)/2500
  332. M.Scale = Vector3.new(Beat,Beat,Beat)
  333. if (c.HumanoidRootPart.Velocity * Vector3.new(1, 0, 1)).magnitude > 4 then
  334. sine = sine + 1 Humanoid.HipHeight = -0.5
  335. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  336. lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.5)
  337. lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.5)
  338. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  339. lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.5)
  340. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  341. lerpz(RH, "C0", RHC0 * cf(0, 0.5, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2)*15)), 0.5)
  342. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  343. lerpz(LH, "C0", LHC0 * cf(0, 0.5, 0) * ang(rd(0), rd(0), rd(math.cos(sine/2)*15)), 0.5)
  344. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  345. else Humanoid.HipHeight = -1.5
  346. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  347. lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.2)
  348. lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.2)
  349. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  350. lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.2)
  351. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  352. lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  353. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  354. lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  355. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
  356. end
  357. end
  358. swait()
  359. end
  360. else InBox = false anim.Parent = Humanoid Humanoid.HipHeight = 0 Humanoid.WalkSpeed = 16 c.Head.Transparency = 0 S:Stop()
  361. 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
  362. v2.Transparency = 0 end end end end tra.Enabled = false
  363. M.Scale = Vector3.new(1,1,1)
  364. for i = 1,10 do
  365. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  366. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  367. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  368. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  369. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  370. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  371. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  372. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  373. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  374. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  375. swait()
  376. end
  377. end
  378. end
  379.  
  380. WeegeeAttax = false
  381. function WeegeeAttack()
  382. WeegeeAttax = true
  383. while WeegeeAttax == true do
  384. swait()
  385. for i,v in pairs (game.Workspace:children()) do
  386. if v.Name == "Weegee" then
  387. if v:findFirstChild("BodyVelocity")==nil then
  388. local BV = Instance.new("BodyVelocity",v)BV.Velocity = v.CFrame.lookVector*-75
  389. BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  390. else
  391. v:findFirstChild("BodyVelocity").Velocity = v.CFrame.lookVector*-75
  392. end
  393. v.CFrame = CFrame.new(v.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p)
  394. v.CFrame = v.CFrame*CFrame.Angles(0,math.rad(180),0)
  395. end
  396. end
  397. end
  398. for i,v in pairs (game.Workspace:children()) do
  399. if v.Name == "Weegee" then
  400. if v:findFirstChild("BodyVelocity")~=nil then
  401. v:findFirstChild("BodyVelocity"):remove()
  402. end
  403. end
  404. end
  405. end
  406.  
  407. function Retreat()
  408. if Inflated == false then
  409. anim.Parent = nil
  410. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://202427593" S.Volume = 1 S:Play()
  411. 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
  412. v2.Transparency = 1 end end end end
  413. for i = 1,4 do
  414. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  415. lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.75)
  416. lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75)
  417. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  418. lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75)
  419. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  420. lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  421. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  422. lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  423. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  424. swait()
  425. end
  426. for i = 1,100 do
  427. Humanoid.HipHeight = -1.5 c.HumanoidRootPart.Velocity = c.HumanoidRootPart.CFrame.lookVector*100
  428. W.C0 = W.C0*CFrame.Angles(math.rad(-15),0,0)
  429. swait()
  430. end
  431. W.C0 = CFrame.Angles(0,0,0)
  432. if InBox == false then
  433. 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
  434. v2.Transparency = 0 end end end end anim.Parent = Humanoid
  435. for i = 1,10 do
  436. swait()
  437. end
  438. end
  439. else
  440. anim.Parent = nil
  441. local S = Instance.new("Sound",c.HumanoidRootPart)S.SoundId = "rbxassetid://202427593" S.Volume = 1 S:Play()
  442. 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
  443. v2.Transparency = 1 end end end end
  444. if InBox == false then
  445. for i = 1,4 do
  446. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  447. lerpz(N, "C0", NC0 * cf(0, 0, -1) * ang(rd(0), rd(0), rd(0)), 0.75)
  448. lerpz(RS, "C0", RSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75)
  449. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  450. lerpz(LS, "C0", LSC0 * cf(0, 0, -2) * ang(rd(0), rd(0), rd(0)), 0.75)
  451. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  452. lerpz(RH, "C0", RHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  453. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  454. lerpz(LH, "C0", LHC0 * cf(0, 2.2, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  455. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.75)
  456. swait()
  457. end
  458. end
  459. for i = 1,100 do
  460. c.HumanoidRootPart.Velocity = c.HumanoidRootPart.CFrame.lookVector*100
  461. W.C0 = W.C0*CFrame.Angles(math.rad(-15),0,0)
  462. swait()
  463. end
  464. if InBox == false then
  465. resetlerp()
  466. end
  467. W.C0 = CFrame.Angles(0,0,0)
  468. if InBox == false then
  469. 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
  470. v2.Transparency = 0 end end end end anim.Parent = Humanoid
  471. for i = 1,10 do
  472. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  473. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  474. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  475. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  476. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  477. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  478. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  479. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  480. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  481. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  482. swait()
  483. end
  484. end
  485. end
  486. end
  487. Inflated = false
  488. function Inflate()
  489. if Inflated == false then
  490. local Charge = 0 S.Volume = 10
  491. for i = 1,75 do Charge = Charge + 0.1 c.HumanoidRootPart.Anchored = true Inflated = true Humanoid.HipHeight = Humanoid.HipHeight + 0.05
  492. 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
  493. c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,1,0)
  494. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  495. lerpz(N, "C0", NC0 * cf(0, 0, Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5)
  496. lerpz(RS, "C0", RSC0 * cf(0, 0, Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5)
  497. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  498. lerpz(LS, "C0", LSC0 * cf(0, 0, Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5)
  499. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  500. lerpz(RH, "C0", RHC0 * cf(0, -Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  501. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  502. lerpz(LH, "C0", LHC0 * cf(0, -Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  503. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  504. swait()
  505. end
  506. local hit = false
  507. P.Touched:connect(function(Hit)
  508. if hit == true then return end
  509. if Hit.Anchored == true and Hit.Name ~= "NoMoonPls" then
  510. hit = true P.Anchored = true
  511. for i = 1,8 do
  512. local S2 = Instance.new("Sound",P)S2.SoundId = "rbxassetid://211062246" S2.Volume = 10 S2:Play()
  513. local S3 = Instance.new("Sound",P)S3.SoundId = "rbxassetid://133159174" S3.Volume = 10 S3:Play() game.Debris:AddItem(S3,4)
  514. end
  515. end
  516. end)
  517. else
  518. local Charge = 0
  519. for i = 1,25 do Charge = Charge + 0.3 c.HumanoidRootPart.Anchored = true Inflated = false Humanoid.HipHeight = Humanoid.HipHeight - 0.15
  520. 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
  521. c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,-1,0)
  522. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  523. lerpz(N, "C0", NC0 * cf(0, 0, -Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5)
  524. lerpz(RS, "C0", RSC0 * cf(0, 0, -Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5)
  525. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  526. lerpz(LS, "C0", LSC0 * cf(0, 0, -Charge*0.5) * ang(rd(0), rd(0), rd(0)), 0.5)
  527. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  528. lerpz(RH, "C0", RHC0 * cf(0, Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  529. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  530. lerpz(LH, "C0", LHC0 * cf(0, Charge*0.5, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  531. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  532. swait()
  533. end
  534. resetlerp() P.Size = Vector3.new(3,3,3) W = Instance.new("Weld",c.HumanoidRootPart)W.Part0 = c.HumanoidRootPart W.Part1 = P S.Volume = 1
  535. end
  536. end
  537.  
  538. function Sadnessz()
  539. if Sadness == false then
  540. Song = "Sadness" Sadness = true
  541. S.SoundId = "rbxassetid://225195031"
  542. 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")
  543. local M = Instance.new("SpecialMesh",Cl)M.MeshId = "rbxassetid://1095708" M.Scale = Vector3.new(7,4,7) local Ch = 0
  544. while Sadness == true do
  545. local Rain = Instance.new("Part",c)Rain.Size = Vector3.new(0.2,2,0.2)Rain.CanCollide = false Rain.BrickColor = BrickColor.new("Light blue")
  546. local RM = Instance.new("BlockMesh",Rain)RM.Scale = Vector3.new(0.05,1,0.05) Rain.Material = "Neon" game.Debris:AddItem(Rain,2)
  547. local BV = Instance.new("BodyVelocity",Rain)BV.Velocity = Vector3.new(0,-100,0)
  548. BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  549. Cl.CFrame = CFrame.new(c.HumanoidRootPart.Position+Vector3.new(0,6,0))
  550. Rain.CFrame = Cl.CFrame*CFrame.new(math.random(-50,50)/10,0,math.random(-25,25)/10)
  551. swait()
  552. end
  553. Cl:remove()
  554. else
  555. Sadness = false
  556. end
  557. end
  558.  
  559. Song = "TomodachiMarket"
  560. function Playlist()
  561. S.TimePosition = 0
  562. if Song == "TomodachiMarket" then
  563. Song = "SmexyJazz"
  564. S.SoundId = "rbxassetid://178790549"
  565. elseif Song == "SmexyJazz" then
  566. Song = "Elevator"
  567. S.SoundId = "rbxassetid://130768299"
  568. elseif Song == "Elevator" then
  569. Song = "Henesys"
  570. S.SoundId = "rbxassetid://160461278"
  571. elseif Song == "Henesys" then
  572. Song = "WhiteChristmas"
  573. S.SoundId = "rbxassetid://529406609"
  574. elseif Song == "WhiteChristmas" then
  575. Song = "Guitar"
  576. S.SoundId = "rbxassetid://339600793"
  577. elseif Song == "Guitar" then
  578. Song = "SuperSanic"
  579. S.SoundId = "rbxassetid://149103854"
  580. elseif Song == "SuperSanic" then
  581. Song = "WiiChannel"
  582. S.SoundId = "rbxassetid://252169264"
  583. elseif Song == "WiiChannel" then
  584. Song = "8-Bitbowser"
  585. S.SoundId = "rbxassetid://410075847"
  586. elseif Song == "8-Bitbowser" then
  587. Song = "Dragonforce"
  588. S.SoundId = "rbxassetid://608289510"
  589. elseif Song == "Dragonforce" then
  590. Song = "Gerudo Valley"
  591. S.SoundId = "rbxassetid://155743407"
  592. elseif Song == "Gerudo Valley" then
  593. Song = "EggsForBart"
  594. S.SoundId = "rbxassetid://872826213"
  595. elseif Song == "EggsForBart" or Song == "Sadness" then
  596. Song = "TomodachiMarket"
  597. S.SoundId = "rbxassetid://235529455"
  598. end
  599. end
  600. Headlightz = false
  601. function Headlights()
  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.  
  607. for i = 1,8 do
  608. lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5)
  609. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(0)), 0.5)
  610. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5)
  611. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  612. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5)
  613. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  614. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  615. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  616. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  617. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  618. swait()
  619. end
  620. for i = 1,6 do
  621. lerpz(RJ, "C0", RJC0 * cf(0, -1.5, 0.35) * ang(rd(30), rd(0), rd(0)), 0.5)
  622. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(30), rd(0), rd(0)), 0.5)
  623. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(35)), 0.5)
  624. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  625. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(-35)), 0.5)
  626. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  627. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  628. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  629. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  630. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  631. swait()
  632. end
  633. if Headlightz == false then
  634. Headlightz = true
  635. local He1 = Instance.new("Part",c)He1.Size = Vector3.new(1,0.4,1)He1.BrickColor = BrickColor.new("Bright green")He1.Material = "Neon"
  636. local He2 = Instance.new("Part",c)He2.Size = Vector3.new(1,0.4,1)He2.BrickColor = BrickColor.new("Bright green")He2.Material = "Neon"
  637. local W1 = Instance.new("Weld",P)W1.Part0 = P W1.Part1 = He1 W1.C0 = CFrame.new(0.7,0,-1.5)He1.Name = "Headlight1"
  638. local C1 = Instance.new("CylinderMesh",He1)W1.C0 = W1.C0 * CFrame.Angles(math.rad(90),0,0)He2.Name = "Headlight2"
  639. local W2 = Instance.new("Weld",P)W2.Part0 = P W2.Part1 = He2 W2.C0 = CFrame.new(-0.7,0,-1.5)
  640. local C2 = Instance.new("CylinderMesh",He2)W2.C0 = W2.C0 * CFrame.Angles(math.rad(90),0,0)
  641. elseif Headlightz == true then
  642. Headlightz = false c:findFirstChild("Headlight1"):remove() c:findFirstChild("Headlight2"):remove()
  643. end
  644. for i = 1,3 do
  645. lerpz(RJ, "C0", RJC0 * cf(0, -1, 2) * ang(rd(30), rd(0), rd(0)), 0.5)
  646. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(30), rd(0), rd(0)), 0.5)
  647. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(35)), 0.5)
  648. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  649. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-35)), 0.5)
  650. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  651. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  652. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  653. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  654. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  655. swait()
  656. end
  657. for i = 1,3 do
  658. lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5)
  659. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(0)), 0.5)
  660. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5)
  661. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  662. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-45)), 0.5)
  663. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  664. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  665. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  666. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  667. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  668. swait()
  669. end
  670. 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
  671. v2.Transparency = 1 end end end end tra.Enabled = true
  672. c.Head.Transparency = 1
  673. attack = false
  674. end
  675.  
  676. local PEAR = Instance.new("Model",nil)
  677. function PullInBox()
  678. attack = true
  679. 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
  680. v2.Transparency = 0 end end end end tra.Enabled = true
  681. c.Head.Transparency = 0
  682. for i = 1,4 do
  683. lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5)
  684. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.5)
  685. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 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. local Hit = false
  696. local FE = c["Right Arm"].Touched:connect(function(Part)
  697. if Part ~= c and Part.Size.X <= 50 and Part.Size.Z <= 50 and Part.Size.Y <= 50 then
  698. Part.Parent = PEAR
  699. end
  700. end)
  701. for i = 1,2 do
  702. lerpz(RJ, "C0", RJC0 * cf(0, -1.5, 2) * ang(rd(30), rd(15), rd(30)), 0.5)
  703. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-30), rd(15), rd(-30)), 0.5)
  704. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(120)), 0.5)
  705. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  706. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  707. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  708. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  709. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  710. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  711. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  712. swait()
  713. end
  714. for i = 1,2 do
  715. lerpz(RJ, "C0", RJC0 * cf(0, -1.75, 1) * ang(rd(60), rd(15), rd(30)), 0.5)
  716. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-30), rd(15), rd(-30)), 0.5)
  717. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(100)), 0.5)
  718. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  719. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  720. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  721. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  722. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  723. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  724. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  725. swait()
  726. end
  727. for i = 1,4 do
  728. lerpz(RJ, "C0", RJC0 * cf(0, -2.25, 0.5) * ang(rd(90), rd(15), rd(30)), 0.5)
  729. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-60), rd(15), rd(-30)), 0.5)
  730. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(100)), 0.5)
  731. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  732. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  733. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  734. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  735. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  736. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  737. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  738. swait()
  739. end
  740. for i = 1,4 do
  741. lerpz(RJ, "C0", RJC0 * cf(0, 0, 2) * ang(rd(15), rd(0), rd(0)), 0.5)
  742. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.5)
  743. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(45)), 0.5)
  744. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  745. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  746. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  747. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  748. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  749. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  750. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  751. swait()
  752. end
  753. FE:disconnect()
  754. 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
  755. v2.Transparency = 1 end end end end tra.Enabled = true
  756. c.Head.Transparency = 1
  757. attack = false
  758. end
  759.  
  760. function ThrowStuff()
  761. P.Anchored = true
  762. for i,v in pairs (PEAR:children()) do v.Parent = game.Workspace v.Anchored = false v.CanCollide = true
  763. local PS = Instance.new("Sound",v)PS.SoundId = "rbxassetid://521410270" PS.Volume = 1 PS.PlaybackSpeed = math.random(10,14)/10 PS:Play()
  764. 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))
  765. 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)
  766. BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  767. swait()
  768. end
  769. P.Anchored = false
  770. end
  771.  
  772. function Weegee()
  773. local PS = Instance.new("Sound",P)PS.SoundId = "rbxassetid://244303550" PS.Volume = 0.25 PS.PlaybackSpeed = math.random(8,18)/10 PS:Play()
  774. local We = Instance.new("Part",game.Workspace)We.Size = Vector3.new(1,2,1)local WeM = Instance.new("SpecialMesh",We) We.Name = "Weegee"
  775. WeM.MeshId = "rbxassetid://430819577" WeM.Scale = Vector3.new(0.001, 0.001, 0.001) WeM.TextureId = "rbxassetid://430819580"
  776. We.CFrame = P.CFrame*CFrame.new(0,2,0)*CFrame.Angles(math.random(-90,90),math.random(-90,90),math.random(-90,90))
  777. 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)
  778. BV.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  779. end
  780. mouse.KeyDown:connect(function(key)
  781. if attack == true then return end
  782. if InBox == true and Inflated == false and Sadness == false then
  783. if key == "x" then
  784. Headlights()
  785. end
  786. if key == "q" then
  787. PullInBox()
  788. end
  789. if key == "e" then
  790. ThrowStuff()
  791. end
  792. if key == "b" then
  793. Weegee()
  794. end
  795. elseif InBox == true and Sadness == true then
  796. if key == "b" then
  797. MoneyPls()
  798. end
  799. elseif InBox == false then
  800. if key == "x" then
  801. Inflate()
  802. end
  803. end
  804. if key == "c" then
  805. Sadnessz()
  806. end
  807. if key == "z" then
  808. HideInBox()
  809. end
  810. if key == "v" then
  811. WeegeeAttack()
  812. end
  813. if key == "f" then
  814. Retreat()
  815. end
  816. if key == "n" then
  817. Playlist()
  818. end
  819. if key == "m" then
  820. SelfDestructBox()
  821. end
  822. end)
  823.  
  824. mouse.KeyUp:connect(function(key)
  825. if key == "v" then
  826. WeegeeAttax = false
  827. end
  828. end)
  829.  
  830. game:GetService("RunService").RenderStepped:connect(function()
  831. Humanoid.MaxHealth = Humanoid.MaxHealth*2
  832. Humanoid.Health = Humanoid.MaxHealth*2
  833. if attack == false then
  834. for i,v in pairs (c:children()) do
  835. if v.ClassName == "Accessory" then
  836. for i,v2 in pairs (v:children()) do
  837. if v2.ClassName == "Part" then
  838. v2.Anchored = false
  839. end
  840. end
  841. end
  842. end
  843. for i,v in pairs (c:children()) do
  844. if v.ClassName == "Part" then
  845. v.Anchored = false
  846. end
  847. end
  848. end
  849. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement