daily pastebin goal
70%
SHARE
TWEET

Untitled

Dollynho22 Jul 12th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait()
  2. LoudVolume = false
  3. Submerged = false
  4. Music = true
  5. script.Name = "Rick" -- or Morty.
  6. Player = game.Players.LocalPlayer
  7. c = game.Players.LocalPlayer.Character
  8. Head = c.Head
  9. anim = c.Humanoid.Animator
  10. Humanoid = c:findFirstChild("Humanoid")Humanoid.Name = "InfiniteBeing"
  11. b23 = Instance.new("BoolValue",c)b23.Name = "InfiniteHuman"
  12. rage = false
  13. p = game.Players.LocalPlayer
  14. s = Instance.new("Sound",c.Head)
  15. s.Name = "Rick&MortyMusic"
  16. s.SoundId = "rbxassetid://888185977"
  17. s.Pitch = 1
  18. if LoudVolume == true then s.Volume = 6 else s.Volume = 1 end
  19. s.Looped = true
  20. wait(0.1)
  21. s:play()
  22. Music = false
  23.  
  24. local Effects = {}
  25. attack = false
  26. local attacking = false
  27. vt = Vector3.new
  28. bc = BrickColor.new
  29. br = BrickColor.random
  30. it = Instance.new
  31. cf = CFrame.new
  32. euler = CFrame.fromEulerAnglesXYZ
  33. angles = CFrame.Angles
  34. matr = math.random
  35. mouse = Player:GetMouse()
  36.  
  37.   RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  38.   RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  39.   LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  40.   LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  41.   RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  42.   RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  43.   LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  44.   LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  45.   NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  46.   NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  47.   RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  48.   RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  49.   RS = c.Torso:FindFirstChild("Right Shoulder")
  50.   LS = c.Torso:FindFirstChild("Left Shoulder")
  51.   RH = c.Torso:FindFirstChild("Right Hip")
  52.   LH = c.Torso:FindFirstChild("Left Hip")
  53.   RJ = c.HumanoidRootPart:FindFirstChild("RootJoint")
  54.   N = c.Torso:FindFirstChild("Neck")
  55.   cf = CFrame.new
  56.   ang = CFrame.Angles
  57.   rd = math.rad
  58.   rd2 = math.random
  59.  
  60.  
  61. function swait(num)
  62. if num==0 or num==nil then
  63. game:service'RunService'.Heartbeat:wait(0)
  64. else
  65. for i=0,num do
  66. game:service'RunService'.Heartbeat:wait(0)
  67. end
  68. end
  69. end
  70.    
  71.   function lerpz(joint, prop, cfrmz, alp)
  72.     joint[prop] = joint[prop]:lerp(cfrmz, alp)
  73.   end
  74.   function resetlerp()
  75.     RJ.C0 = RJC0
  76.     RJ.C1 = RJC1
  77.     N.C0 = NC0
  78.     N.C1 = NC1
  79.     RS.C0 = RSC0
  80.     RS.C1 = RSC1
  81.     LS.C0 = LSC0
  82.     LS.C1 = LSC1
  83.     RH.C0 = RHC0
  84.     RH.C1 = RHC1
  85.     LH.C0 = LHC0
  86.     LH.C1 = LHC1
  87.   end
  88.  
  89. New = function(Object, Parent, Name, Data)
  90.     local Object = Instance.new(Object)
  91.     for Index, Value in pairs(Data or {}) do
  92.         Object[Index] = Value
  93.     end
  94.     Object.Parent = Parent
  95.     Object.Name = Name
  96.     return Object
  97. end
  98. -- Les Build a Portal gun shall we?"
  99. function CreatePortalGun()
  100. if c:findFirstChild("PortalGun") == nil then
  101. local m = Instance.new("Model",c)m.Name = "PortalGun"
  102. local P = Instance.new("Part",m)P.Size = Vector3.new(0.6,1,0.4)P.CanCollide = false P.Material = "SmoothPlastic" P.Name = "Base"
  103. local W = Instance.new("Weld",P)W.Part0 = P W.Part1 = c["Right Arm"] W.C0 = CFrame.new(0,1.6,0.6)W.Name = "GunWeld"
  104. local P2 = Instance.new("Part",m)P2.Size = Vector3.new(0.2,0.8,0.2)P2.Material = "SmoothPlastic" P2.Name = "Handle" P2.CanCollide = false
  105. local W2 = Instance.new("Weld",P2)W2.Part0 = P2 W2.Part1 = P W2.C0 = CFrame.new(0,-0.5,0.15)*CFrame.Angles(math.rad(-30),0,0)
  106. local P3 = Instance.new("Part",m)P3.Size = Vector3.new(0.55,0.4,0.2)P3.CanCollide = false P3.Material = "Neon" P3.Name = "FrontLight"
  107. local W3 = Instance.new("Weld",P3)W3.Part0 = P3 W3.Part1 = P W3.C0 = CFrame.new(0,0.31,0)P3.BrickColor = BrickColor.new("Bright green")
  108. local P4 = Instance.new("Part",m)P4.Size = Vector3.new(0.2,0.2,0.4)P4.CanCollide = false P4.Material = "Neon" P4.Name = "TopLight" P4.Transparency = 0.5
  109. local W4 = Instance.new("Weld",P4)W4.Part0 = P4 W4.Part1 = P W4.C0 = CFrame.new(0,0,0.35)P4.BrickColor = BrickColor.new("Bright green")
  110. local P5 = Instance.new("Part",m)P5.Size = Vector3.new(0.25,0.25,0.45)P5.CanCollide = false P5.Material = "Neon" P5.Name = "TopLight" P5.Transparency = 0.5
  111. local W5 = Instance.new("Weld",P5)W5.Part0 = P5 W5.Part1 = P4 P5.BrickColor = BrickColor.new("Bright green")
  112. local P5 = Instance.new("Part",m)P5.Size = Vector3.new(0.3,0.3,0.2)P5.CanCollide = false P5.Material = "SmoothPlastic" P5.Name = "LowerLight"
  113. local W5 = Instance.new("Weld",P5)W5.Part0 = P5 W5.Part1 = P4 W5.C0 = CFrame.new(0,0,-0.15)
  114. local P5 = Instance.new("Part",m)P5.Size = Vector3.new(0.3,0.2,0.2)P5.CanCollide = false P5.Material = "SmoothPlastic" P5.Name = "Button"
  115. local W5 = Instance.new("Weld",P5)W5.Part0 = P5 W5.Part1 = P4 W5.C0 = CFrame.new(0,-0.3,-0.2) P5.BrickColor = BrickColor.new("Bright red")
  116. local B = Instance.new("BlockMesh",P5)B.Scale = Vector3.new(1,0.75,0.75)
  117. for i,v in pairs (m:children()) do
  118. if v.ClassName == "Part" then
  119. v.TopSurface = "SmoothNoOutlines"
  120. v.BottomSurface = "SmoothNoOutlines"
  121. v.BackSurface = "SmoothNoOutlines"
  122. v.Front = "SmoothNoOutlines"
  123. v.LeftSurface = "SmoothNoOutlines"
  124. v.RightSurface = "SmoothNoOutlines"
  125. end
  126. end
  127. end
  128. end
  129. function ThrowGun()
  130. if c:findFirstChild("PortalGun")~=nil then
  131. anim.Parent = nil
  132. local gun = c:findFirstChild("PortalGun") gun.Parent = game.Workspace
  133. for i = 1,14 do
  134. swait()
  135. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.25)
  136. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.25)
  137. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(65), rd(90)), 0.25)
  138. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  139. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  140. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  141. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  142. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  143. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  144. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  145. end
  146. gun.Base.GunWeld:remove()
  147. local BV = Instance.new("BodyVelocity",gun.Base)BV.Velocity = c.HumanoidRootPart.CFrame.lookVector*50 game.Debris:AddItem(BV,0.1)
  148. for i = 1,14 do
  149. swait()
  150. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.25)
  151. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.25)
  152. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-65), rd(90)), 0.25)
  153. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  154. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  155. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  156. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  157. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  158. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  159. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  160. end
  161. for i = 1,14 do
  162. swait()
  163. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  164. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  165. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  166. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  167. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  168. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  169. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  170. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  171. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  172. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  173. end
  174. resetlerp()
  175. anim.Parent = Humanoid
  176. end
  177. end
  178. -- ;-; --
  179. function PortalRipple(Portalz, Colorz)
  180. if Portalz == nil then return end
  181. local Portal = Instance.new("Part",game.Workspace)Portal.Transparency = 1 Portal.Anchored = true Portal.CanCollide = false Portal.BrickColor = Colorz Portal.Name = "PortalEnergy"
  182. Portal.CFrame = Portalz.CFrame Portal.Size = Vector3.new(0.25,0.45,0.55) Portal.Material = "Neon" local M = Instance.new("SpecialMesh",Portal)M.MeshType = "Sphere"
  183. Spawn(function()
  184. Portal.Transparency = 0.5
  185. for i = 1,20 do
  186. Portal.Transparency = Portal.Transparency + 0.025
  187. Portal.Size = Portal.Size + Vector3.new(0.39,0.54,-0.01)
  188. Portal.CFrame = Portalz.CFrame
  189. swait()
  190. end
  191. Portal:remove()
  192. end)
  193. end
  194. function CreatePortal1()
  195. Spawn(function()
  196. local Portal = Instance.new("Part",game.Workspace)Portal.Transparency = 1 Portal.Anchored = true Portal.CanCollide = false Portal.BrickColor = BrickColor.new("Lime green")
  197. Portal.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,0,-10)Portal.Size = Vector3.new(0.2,0.4,0.2) Portal.Material = "Neon"
  198. local S = Instance.new("Sound", Portal)S.SoundId = "rbxassetid://181004957" S:Play()
  199. if LoudVolume == true then S.Volume = 10 else S.Volume = 2 end
  200. local M = Instance.new("SpecialMesh",Portal)M.MeshType = "Sphere" Portal.Name = "PortalEnergy"
  201. local Portal2 = Instance.new("Part",game.Workspace)Portal2.Transparency = 1 Portal2.Anchored = true Portal2.CanCollide = false Portal2.BrickColor = BrickColor.new("Parsley green")
  202. Portal2.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,0,-10)Portal2.Size = Vector3.new(0.2,0.4,0.2) Portal2.Material = "Neon"
  203. local PosP = Portal.CFrame
  204. local M = Instance.new("SpecialMesh",Portal2)M.MeshType = "Sphere" Portal2.Name = "PortalEnergy"
  205. for i = 1,10 do
  206. Portal.Transparency = Portal.Transparency - 0.25
  207. Portal.Size = Portal.Size + Vector3.new(0.65,0.95,0)
  208. Portal.CFrame = PosP
  209. Portal2.Transparency = Portal2.Transparency - 0.25
  210. Portal2.Size = Portal2.Size + Vector3.new(0.63,0.93,0.005)
  211. Portal2.CFrame = PosP
  212. swait()
  213. end
  214. Portal.Touched:connect(function(PartH)
  215. if PartH.Parent ~= c and PartH.Parent.Parent ~= c and PartH.Size.Z <= 200 and PartH.Name ~= "PortalEnergy" then
  216. PartH:remove()
  217. end
  218. end)
  219. local R = 1
  220. for i = 1,100 do
  221. wait(0.1)
  222. if R == 1 then R = 2
  223. PortalRipple(Portal2,BrickColor.new("Earth green"))
  224. elseif R == 2 then R = 1
  225. PortalRipple(Portal2,BrickColor.new("Lime green"))
  226. elseif R == 3 then R = 4
  227. PortalRipple(Portal2,BrickColor.new("Earth green"))
  228. elseif R == 4 then R = 1
  229. PortalRipple(Portal2,BrickColor.new("Lime green"))
  230. end
  231. end
  232. for i = 1,10 do
  233. Portal.Transparency = Portal.Transparency + 0.25
  234. Portal.Size = Portal.Size - Vector3.new(0.65,0.95,0)
  235. Portal.CFrame = PosP
  236. Portal2.Transparency = Portal2.Transparency + 0.25
  237. Portal2.Size = Portal2.Size - Vector3.new(0.63,0.93,0.005)
  238. Portal2.CFrame = PosP
  239. swait()
  240. end
  241. end)
  242. end
  243.  
  244. function CreatePortal2()
  245. Spawn(function()
  246. local Portal = Instance.new("Part",game.Workspace)Portal.Transparency = 1 Portal.Anchored = true Portal.CanCollide = false Portal.BrickColor = BrickColor.new("Lime green")
  247. Portal.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(-90),0,0)Portal.Size = Vector3.new(0.2,0.4,0.2) Portal.Material = "Neon"
  248. local M = Instance.new("SpecialMesh",Portal)M.MeshType = "Sphere" Portal.Name = "PortalEnergy"
  249. local S = Instance.new("Sound", Portal)S.SoundId = "rbxassetid://477163697" S:Play()
  250. if LoudVolume == true then S.Volume = 10 else S.Volume = 2 end
  251. local Portal2 = Instance.new("Part",game.Workspace)Portal2.Transparency = 1 Portal2.Anchored = true Portal2.CanCollide = false Portal2.BrickColor = BrickColor.new("Parsley green")
  252. Portal2.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(-90),0,0)Portal2.Size = Vector3.new(0.2,0.4,0.2) Portal2.Material = "Neon"
  253. local PosP = Portal.CFrame
  254. local M = Instance.new("SpecialMesh",Portal2)M.MeshType = "Sphere" Portal2.Name = "PortalEnergy"
  255. for i = 1,10 do
  256. Portal.Transparency = Portal.Transparency - 0.25
  257. Portal.Size = Portal.Size + Vector3.new(0.65,0.95,0)
  258. Portal.CFrame = PosP
  259. Portal2.Transparency = Portal2.Transparency - 0.25
  260. Portal2.Size = Portal2.Size + Vector3.new(0.63,0.93,0.005)
  261. Portal2.CFrame = PosP
  262. swait()
  263. end
  264. for i = 1,10 do
  265. Portal.Transparency = Portal.Transparency + 0.25
  266. Portal.Size = Portal.Size - Vector3.new(0.65,0.95,0)
  267. Portal.CFrame = PosP
  268. Portal2.Transparency = Portal2.Transparency + 0.25
  269. Portal2.Size = Portal2.Size - Vector3.new(0.63,0.93,0.005)
  270. Portal2.CFrame = PosP
  271. swait()
  272. end
  273. end)
  274. end
  275.  
  276. function CreatePortal3()
  277. Spawn(function()
  278. local Portal = Instance.new("Part",game.Workspace)Portal.Transparency = 1 Portal.Anchored = true Portal.CanCollide = false Portal.BrickColor = BrickColor.new("Lime green")
  279. Portal.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,10,0)*CFrame.Angles(math.rad(-90),0,0)Portal.Size = Vector3.new(0.2,0.4,0.2) Portal.Material = "Neon"
  280. local M = Instance.new("SpecialMesh",Portal)M.MeshType = "Sphere" Portal.Name = "PortalEnergy"
  281. local Portal2 = Instance.new("Part",game.Workspace)Portal2.Transparency = 1 Portal2.Anchored = true Portal2.CanCollide = false Portal2.BrickColor = BrickColor.new("Parsley green")
  282. Portal2.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,10,0)*CFrame.Angles(math.rad(-90),0,0)Portal2.Size = Vector3.new(0.2,0.4,0.2) Portal2.Material = "Neon"
  283. local PosP = Portal.CFrame
  284. local M = Instance.new("SpecialMesh",Portal2)M.MeshType = "Sphere" Portal2.Name = "PortalEnergy"
  285. local S = Instance.new("Sound", Portal)S.SoundId = "rbxassetid://181004957" S:Play()
  286. if LoudVolume == true then S.Volume = 10 else S.Volume = 2 end
  287. for i = 1,10 do
  288. Portal.Transparency = Portal.Transparency - 0.25
  289. Portal.Size = Portal.Size + Vector3.new(0.65,0.95,0)
  290. Portal.CFrame = PosP
  291. Portal2.Transparency = Portal2.Transparency - 0.25
  292. Portal2.Size = Portal2.Size + Vector3.new(0.63,0.93,0.005)
  293. Portal2.CFrame = PosP
  294. swait()
  295. end
  296. for i = 1,10 do
  297. Portal.Transparency = Portal.Transparency + 0.25
  298. Portal.Size = Portal.Size - Vector3.new(0.65,0.95,0)
  299. Portal.CFrame = PosP
  300. Portal2.Transparency = Portal2.Transparency + 0.25
  301. Portal2.Size = Portal2.Size - Vector3.new(0.63,0.93,0.005)
  302. Portal2.CFrame = PosP
  303. swait()
  304. end
  305. end)
  306. end
  307.  
  308. function DestructionPortal()
  309. attack = true
  310. anim.Parent = nil
  311. for i = 1,14 do
  312. swait()
  313. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.25)
  314. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.25)
  315. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-65), rd(90)), 0.25)
  316. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  317. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  318. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  319. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  320. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  321. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  322. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  323. end
  324. for i = 1,6 do
  325. swait()
  326. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.35)
  327. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.35)
  328. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-65), rd(125)), 0.35)
  329. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35)
  330. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35)
  331. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35)
  332. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35)
  333. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35)
  334. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35)
  335. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.35)
  336. end
  337. CreatePortal1()
  338. for i = 1,10 do
  339. swait()
  340. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(65)), 0.25)
  341. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-65)), 0.25)
  342. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-65), rd(90)), 0.25)
  343. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  344. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  345. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  346. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  347. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  348. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  349. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  350. end
  351. for i = 1,10 do
  352. swait()
  353. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  354. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  355. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  356. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  357. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  358. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  359. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  360. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  361. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  362. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  363. end
  364. resetlerp()
  365. attack = false
  366. anim.Parent = Humanoid
  367. end
  368. Disappeared = false
  369. function DisappearPortal()
  370. if Disappeared == false then
  371. attack = true Humanoid.WalkSpeed = 150 Humanoid.JumpPower = 250
  372. Disappeared = true
  373. anim.Parent = nil
  374. for i = 1,14 do
  375. swait()
  376. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  377. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(45), rd(0), rd(0)), 0.25)
  378. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(15)), 0.25)
  379. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  380. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  381. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  382. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  383. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  384. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  385. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  386. end
  387. for i = 1,8 do
  388. swait()
  389. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  390. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(45), rd(0), rd(0)), 0.5)
  391. lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(15), rd(0), rd(15)), 0.5)
  392. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  393. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  394. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  395. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  396. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  397. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  398. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5)
  399. end
  400. CreatePortal2()
  401. for i = 1,14 do
  402. swait()
  403. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  404. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(45), rd(0), rd(0)), 0.25)
  405. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(15)), 0.25)
  406. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  407. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  408. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  409. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  410. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  411. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  412. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  413. end
  414. lerpz(RJ, "C0", RJC0 * cf(0, 0, 1000000) * ang(rd(0), rd(0), rd(0)), 1)
  415. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(45), rd(0), rd(0)), 1)
  416. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(15), rd(0), rd(15)), 1)
  417. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  418. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  419. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  420. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  421. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  422. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  423. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 1)
  424. attack = false
  425. anim.Parent = Humanoid
  426. else Disappeared = false
  427. resetlerp() Humanoid.WalkSpeed = 16 Humanoid.JumpPower = 50
  428. CreatePortal3() wait()
  429. c.HumanoidRootPart.CFrame = c.HumanoidRootPart.CFrame*CFrame.new(0,10,0)
  430. end
  431. end
  432.  
  433. function EpicLaugh()
  434. for i = 1,5 do
  435. local S = Instance.new("Sound",c.Head)S.SoundId = "rbxassetid://207358216" S.Volume = 10 S:Play()
  436. end
  437. for i = 1,35 do
  438. swait()
  439. lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.25)
  440. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(0)), 0.25)
  441. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-35), rd(0), rd(180)), 0.25)
  442. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  443. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-35), rd(0), rd(-180)), 0.25)
  444. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  445. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(-25)), 0.25)
  446. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  447. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(0), rd(25)), 0.25)
  448. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.25)
  449. end
  450. for i = 1,100 do
  451. swait()
  452. lerpz(RJ, "C0", RJC0 * cf(0, 0, -2) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1)
  453. lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1)
  454. lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1)
  455. lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1)
  456. lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1)
  457. lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1)
  458. lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1)
  459. lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1)
  460. lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1)
  461. lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(math.random(-360,360)), rd(math.random(-360,360)), rd(math.random(-360,360))), 1)
  462. end
  463. resetlerp()
  464. end
  465.  
  466. function MuteMusic()
  467. if s.Volume > 0 then
  468. s.Volume = 0
  469. else
  470. if LoudVolume == true then
  471. s.Volume = 6
  472. else
  473. s.Volume = 1
  474. end
  475. end
  476. end
  477.  
  478. mouse.KeyDown:connect(function(key)
  479. if attack == true then return end
  480. if c:findFirstChild("PortalGun")~=nil then
  481. if Disappeared == false then
  482. if key == "z" then
  483. DestructionPortal()
  484. end
  485. end
  486. if key == "x" then
  487. DisappearPortal()
  488. end
  489. end
  490. if Disappeared == false then
  491. if key == "f" then
  492. CreatePortalGun()
  493. end
  494. if key == "e" then
  495. ThrowGun()
  496. end
  497. end
  498. if key == "l" then
  499. MuteMusic()
  500. end
  501. if key == "m" then
  502. EpicLaugh()
  503. end
  504. end)
  505.  
  506.   game:GetService("RunService").RenderStepped:connect(function()
  507.     Humanoid.MaxHealth = Humanoid.MaxHealth*2
  508.     Humanoid.Health = Humanoid.MaxHealth*2
  509.     for i,v in pairs (c:children()) do
  510. if v.ClassName == "Accessory" then
  511. for i,v2 in pairs (v:children()) do
  512. if v2.ClassName == "Part" then
  513. v2.Anchored = false
  514. end
  515. end
  516. end
  517. end
  518. for i,v in pairs (c:children()) do
  519. if v.ClassName == "Part" then
  520. v.Anchored = false
  521. end
  522. end
  523.     end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top