VoidScript

Portal[r15]

Sep 30th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.74 KB | None | 0 0
  1. --// Made by Cronizete
  2.  
  3. plr = game:GetService("Players").LocalPlayer
  4. char = plr.Character
  5. hum = char:FindFirstChildOfClass'Humanoid'
  6. hum.BodyDepthScale.Value = 1
  7. hum.BodyHeightScale.Value = 1
  8. hum.BodyWidthScale.Value = 1
  9. hum.HeadScale.Value = 1
  10. lclick = false
  11. mouse = plr:GetMouse()
  12. size = 1
  13. rlick = false
  14. human = char.Humanoid
  15. root = char.HumanoidRootPart
  16. head = char.Head
  17. lshold = char["LeftUpperArm"].LeftShoulder
  18. rshold = char["RightUpperArm"].RightShoulder
  19. lelbow = char["LeftLowerArm"].LeftElbow
  20. relbow = char["RightLowerArm"].RightElbow
  21. lelbo = lelbow.C0
  22. relbo = relbow.C0
  23. rsho = rshold.C0
  24. lsho = lshold.C0
  25. jumping = false
  26. chipmesh = ""
  27. rad = math.rad
  28. firec = 'Deep orange'
  29. shield = false
  30. disguise = ""
  31. step = workspace:WaitForChild('Base')
  32. slam = false
  33. ff=Instance.new('ForceField', char)
  34. ff.Visible = false
  35. dis = false
  36. neck = char.Head.Neck
  37. local ang = -5
  38. local ang2 = -5
  39. local sine = 0
  40. local change = 0.5
  41. arm = 0
  42. char:FindFirstChild'Animate':Destroy()
  43. hum.Animator.Parent = nil
  44. nec = neck.C0
  45. punch = false
  46. spikek = false
  47. cooldown = true
  48. random = math.random
  49. mainc = char.Head.BrickColor
  50. chip = false
  51. color = char.Head.BrickColor
  52. mainf = char.Head.face.Texture
  53. wings = false
  54. face = mainf
  55. lleg = char["LeftUpperLeg"].LeftHip
  56. rleg = char["RightUpperLeg"].RightHip
  57. rle = rleg.C0
  58. lle = lleg.C0
  59. torso = char:FindFirstChild('UpperTorso')
  60. butf = false
  61. previ = ""
  62. jir = false
  63. legslam = false
  64. waist = torso.Waist
  65. wais = waist.C0
  66. rtorso = char.LowerTorso.Root
  67. rtors = rtorso.C0
  68. float = false
  69. signs = false
  70. fold = Instance.new('Folder', char)
  71. sat = false
  72. asdasd = false
  73. fire = false
  74.  
  75. pcd = true
  76.  
  77. cy = Instance.new('NumberValue', script)
  78. cb = Instance.new('NumberValue', script)
  79. cy.Value = 0
  80. cb.Value = 0
  81.  
  82. pasd = Instance.new('Model', char)
  83. pasd.Name = 'Portals'
  84.  
  85. currentblue = false
  86. currentyellow = false
  87. py = char:FindFirstChild'YellowPortal'
  88. pb = char:FindFirstChild'BluePortal'
  89. cb2 = ""
  90. cy2 = ""
  91.  
  92. blue = true
  93. yellow = false
  94.  
  95. Portals = {}
  96.  
  97. --// Sound effects
  98.  
  99. local s5 = Instance.new('Sound', char.LeftFoot) -- walk (grass)
  100. s5.Volume = 6
  101. s5.SoundId = "rbxassetid://429617891"
  102. s5.Looped = true
  103.  
  104. local s6 = Instance.new('Sound', char.LeftFoot) -- walk (metals)
  105. s6.Volume = 6
  106. s6.SoundId = "rbxassetid://174216216"
  107. s6.Looped = true
  108.  
  109. local s7 = Instance.new('Sound', char.LeftFoot) -- walk (sand)
  110. s7.Volume = 6
  111. s7.SoundId = "rbxassetid://336575096"
  112. s7.Looped = true
  113.  
  114. local s8 = Instance.new('Sound', char.LeftFoot) -- walk (ice)
  115. s8.Volume = 6
  116. s8.SoundId = "rbxassetid://138214900"
  117. s8.Looped = true
  118.  
  119. local s12 = Instance.new('Sound', char.LeftFoot) -- walk (metal)
  120. s12.Volume = 6
  121. s12.SoundId = "rbxassetid://549006073"
  122. s12.Looped = true
  123.  
  124. local s13 = Instance.new('Sound', char.LeftFoot) -- walk (bricks and stuff)
  125. s13.Volume = 6
  126. s13.SoundId = "rbxassetid://156659098"
  127. s13.Looped = true
  128.  
  129. local s14 = Instance.new('Sound', char.LeftFoot) -- walk (carpet)
  130. s14.Volume = 9
  131. s14.SoundId = "rbxassetid://133705377"
  132. s14.Looped = true
  133.  
  134. --// Outfit
  135.  
  136. hum.WalkSpeed = 12
  137.  
  138. for _, a in pairs(char:children()) do
  139. if a:IsA('Pants') or a:IsA('Shirt') or a:IsA('CharacterMesh') or a:IsA('Accessory') then
  140. a:Destroy()
  141. end
  142. end
  143.  
  144. bc = char:FindFirstChild('Body Colors')
  145. bc.HeadColor = BrickColor.new('Light orange')
  146. bc.LeftArmColor = BrickColor.new('Light orange')
  147. bc.RightArmColor = BrickColor.new('Light orange')
  148. bc.LeftLegColor = BrickColor.new('Light orange')
  149. bc.RightLegColor = BrickColor.new('Light orange')
  150. bc.TorsoColor = BrickColor.new('Light orange')
  151.  
  152. local p1 = Instance.new('Part', char)
  153. p1.Anchored = false
  154. p1.CanCollide = false
  155. p1.BrickColor = BrickColor.new('Rust')
  156. local w = Instance.new('Weld', p1)
  157. w.Part0 = p1
  158. w.Part1 = char:FindFirstChild'Head'
  159. w.C0 = CFrame.new(.1,-.2,-.2) * CFrame.Angles(rad(0),rad(0),rad(0))
  160. local m1 = Instance.new('SpecialMesh', p1)
  161. m1.MeshId = "http://www.roblox.com/asset/?id=83490415"
  162. m1.TextureId = "http://www.roblox.com/asset/?id=83491029"
  163. m1.Scale = Vector3.new(1, 1, 1)
  164.  
  165. char.Head:FindFirstChild('face').Texture = "rbxassetid://13038247"
  166.  
  167. local s = Instance.new('Shirt', char)
  168. s.ShirtTemplate = "rbxassetid://956307754"
  169. local p2 = Instance.new('Pants', char)
  170. p2.PantsTemplate = "rbxassetid://91804932"
  171.  
  172. local bluep = Instance.new('Part', char)
  173. bluep.BrickColor = BrickColor.new('Really blue')
  174. bluep.Size = Vector3.new(0.05, .7, .7)
  175. bluep.Anchored = false
  176. bluep.BottomSurface = 0
  177. bluep.TopSurface = 0
  178. bluep.Shape = 'Cylinder'
  179. bluep.Material = 'Neon'
  180. bluep.CanCollide = false
  181. local w = Instance.new('Weld', p1)
  182. w.Part0 = bluep
  183. w.Part1 = char:FindFirstChild'LeftHand'
  184. w.C0 = CFrame.new(.14,0,0) * CFrame.Angles(rad(0),rad(0),rad(-90))
  185. local redp = bluep:Clone()
  186. redp.Parent = char
  187. redp.BrickColor = BrickColor.new('New Yeller')
  188. local w = Instance.new('Weld', p1)
  189. w.Part0 = redp
  190. w.Part1 = char:FindFirstChild'RightHand'
  191. w.C0 = CFrame.new(.14,0,0) * CFrame.Angles(rad(0),rad(0),rad(-90))
  192.  
  193. local HBill = Instance.new("BillboardGui", char.Head)
  194. local HMain, HBarBack, HBar = Instance.new("Frame", HBill), Instance.new("Frame"), Instance.new("Frame")
  195. local HHealth, HName = Instance.new("TextLabel", HBarBack), Instance.new("TextLabel")
  196. HBill.Size = UDim2.new(15,0,2.2,0)
  197. HBill.Name = "Health Display"
  198. HBill.StudsOffset = Vector3.new(0,4,0)
  199. HBill.AlwaysOnTop = true
  200. HBill.Enabled = true
  201. HMain.BackgroundColor3 = Color3.new(0, 0, 0)
  202. HMain.BackgroundTransparency = 0.6
  203. HMain.Size = UDim2.new(1,0,1,0)
  204. HBarBack.Parent = HMain
  205. HBarBack.BackgroundColor3 = Color3.new(0,0,0)
  206. HBarBack.BorderColor3 = Color3.new(0,0,0)
  207. HBarBack.BorderSizePixel = 2
  208. HBarBack.Position = UDim2.new(.025, 0, .55, 0)
  209. HBarBack.Size = UDim2.new(.95, 0, .3, 0)
  210. HHealth.BackgroundTransparency = 1
  211. HHealth.Size = UDim2.new(1,0,1,0)
  212. HHealth.Font = "Code"
  213. HHealth.Text = "1.#INF"
  214. HHealth.TextScaled = true
  215. HHealth.TextColor3 = Color3.new(1,1,1)
  216. HHealth.TextStrokeColor3 = BrickColor.new("Medium stone grey").Color
  217. HHealth.TextStrokeTransparency = 0
  218. HName.Parent = HMain
  219. HName.BackgroundTransparency = 1
  220. HName.Size = UDim2.new(1,0,.5,0)
  221. HName.Font = "Code"
  222. HName.Text = "FITRIII"
  223. HName.TextScaled = true
  224. HName.TextColor3 = BrickColor.new("Medium stone grey").Color
  225. HName.TextStrokeColor3 = Color3.new(0,0,0)
  226. HName.TextStrokeTransparency = 0
  227. HName.TextYAlignment = "Top"
  228.  
  229. hum.MaxHealth = tick()*tick()
  230.  
  231. --// Sfx
  232.  
  233. local s1 = Instance.new('Sound', bluep)
  234. s1.SoundId = "rbxassetid://142774034"
  235. s1.Volume = 4
  236. s1.Looped = false
  237.  
  238. --// Functions
  239.  
  240. function larm()
  241. for i = 0,1,0.1 do
  242. wait()
  243. lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(100), math.rad(-0.63), math.rad(-2.063)), 0.1)
  244. end
  245. s1:Play()
  246. local m1 = Instance.new('Model', pasd)
  247. m1.Name = 'BluePortal'
  248. local bl = Instance.new('Part', m1)
  249. table.insert(Portals,bl)
  250. currentblue = bl
  251. cb.Value = cb.Value + 1
  252. bl.BrickColor = BrickColor.new'Institutional white'
  253. bl.Size = Vector3.new(0.1,10,10)
  254. bl.CanCollide = false
  255. bl.TopSurface = 0
  256. bl.Material = 'Neon'
  257. bl.BottomSurface = 0
  258. bl.Name = "TP"
  259. bl.Anchored = true
  260. bl.Shape = 'Cylinder'
  261. bl.Position = mouse.Hit.p
  262. bl.CFrame = bl.CFrame * CFrame.Angles(rad(0),rad(0),rad(-90))
  263. local outline = bl:Clone()
  264. outline.Name = "outline"
  265. cb2 = outline
  266. outline.Parent = m1
  267. outline.BrickColor = BrickColor.new'Really blue'
  268. outline.Size = bl.Size + Vector3.new(0,.7,.7) - Vector3.new(0.1,0,0)
  269. bl.Touched:connect(function(hit)
  270. if hit and pcd and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' then
  271. local targ = hit.Parent
  272. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  273. pcd = false
  274. if targ:FindFirstChild'UpperTorso' then
  275. targ.HumanoidRootPart.CFrame = Portals[math.random(1,#Portals)].CFrame * CFrame.new(-4,0,0)
  276. elseif targ:FindFirstChild'Torso' then
  277. targ.Torso.CFrame = Portals[math.random(1,#Portals)].CFrame * CFrame.new(-4,0,0)
  278. end
  279. wait(.3)
  280. pcd = true
  281. end
  282. end)
  283. end
  284.  
  285. function clearp()
  286. for i = 1,20 do
  287. wait()
  288. for _, a in pairs(pasd:children()) do
  289. for _, b in pairs(a:children()) do
  290. if a:IsA'Part' then
  291. a.Transparency = a.Transparency + 0.5
  292. end
  293. end
  294. end
  295. end
  296. for _, a in pairs(pasd:children()) do
  297. for _, b in pairs(a:children()) do
  298. if b:IsA'Part' then
  299. b:Destroy()
  300. end
  301. end
  302. end
  303. end
  304.  
  305. function rarm()
  306. for i = 0,1,0.1 do
  307. wait()
  308. rshold.C0 = rshold.C0:lerp(rsho*CFrame.Angles(math.rad(100), math.rad(0.63), math.rad(2.063)), 0.1)
  309. end
  310. s1:Play()
  311. local m1 = Instance.new('Model', pasd)
  312. m1.Name = 'YellowPortal'
  313. local bl = Instance.new('Part', m1)
  314. table.insert(Portals,bl)
  315. cy.Value = cy.Value + 1
  316. currentyellow = bl
  317. bl.BrickColor = BrickColor.new'Institutional white'
  318. bl.Size = Vector3.new(0.1,10,10)
  319. bl.CanCollide = false
  320. bl.TopSurface = 0
  321. bl.Material = 'Neon'
  322. bl.BottomSurface = 0
  323. bl.Name = "TP"
  324. bl.Anchored = true
  325. bl.Shape = 'Cylinder'
  326. bl.Position = mouse.Hit.p
  327. bl.CFrame = bl.CFrame * CFrame.Angles(rad(0),rad(0),rad(-90))
  328. local outline = bl:Clone()
  329. cy2 = outline
  330. outline.Parent = m1
  331. outline.Name = "outline"
  332. outline.BrickColor = BrickColor.new'New Yeller'
  333. outline.Size = bl.Size + Vector3.new(0,.7,.7) - Vector3.new(0.1,0,0)
  334. bl.Touched:connect(function(hit)
  335. if hit and pcd and hit.Parent and hit.Parent:FindFirstChildOfClass'Humanoid' then
  336. local targ = hit.Parent
  337. local humtarg = targ:FindFirstChildOfClass'Humanoid'
  338. local rootp = targ.HumanoidRootPart.CFrame
  339. pcd = false
  340. if targ:FindFirstChild'UpperTorso' then
  341. targ.HumanoidRootPart.CFrame = Portals[math.random(1,#Portals)].CFrame * CFrame.new(-25,0,0)
  342. elseif targ:FindFirstChild'Torso' then
  343. targ.Torso.CFrame = Portals[math.random(1,#Portals)].CFrame * CFrame.new(-25,0,0)
  344. end
  345. wait(.3)
  346. pcd = true
  347. end
  348. end)
  349. end
  350.  
  351. --// Keys
  352.  
  353. mouse.Button1Down:connect(function()
  354. if blue and cooldown then
  355. cooldown = false
  356. fire = true
  357. blue = false
  358. yellow = true
  359. larm()
  360. fire = false
  361. cooldown = true
  362. elseif yellow and cooldown then
  363. cooldown = false
  364. fire = true
  365. blue = true
  366. yellow = false
  367. rarm()
  368. fire = false
  369. cooldown = true
  370. end
  371. end)
  372.  
  373. mouse.KeyDown:connect(function(h)
  374. if h == "q" and cooldown then
  375. clearp()
  376. end
  377. end)
  378.  
  379. --// Walk fx
  380.  
  381. game:GetService('RunService').RenderStepped:connect(function()
  382. sine = change+sine
  383. ang = ang+0.08
  384. ang2 = ang2+0.01
  385. rad = math.rad
  386. sin = math.sin
  387. arm = arm + 0.06
  388.  
  389. if fire == false and Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude > 2 then
  390. lleg.C0 = lleg.C0:lerp(lle * CFrame.Angles(-1, 0, 0), 0.1)
  391. rleg.C0 = rleg.C0:lerp(rle * CFrame.Angles(-1, 0, 0), 0.1)
  392. lshold.C0 = lshold.C0:lerp(CFrame.new(0,0,0) * lsho * CFrame.Angles(0, 0, math.rad(-13.579)), 0.1)
  393. rshold.C0 = rshold.C0:lerp(CFrame.new(0,0,0) * rsho * CFrame.Angles(0, 0, math.rad(15.355)), 0.1)
  394. end
  395.  
  396. if Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude > 2 then
  397. lleg.C0 = lleg.C0:lerp(CFrame.new(-0.53,-0.15+0.1*-math.cos(tick()*4),0.2*math.sin(tick()*4))*CFrame.Angles(math.rad(25*-math.sin(tick()*8)), rad(-1), rad(0)), 1.5) * CFrame.Angles(-0.1, 0, 0)
  398. rleg.C0 = rleg.C0:lerp(CFrame.new(0.53,-0.15+0.1*math.cos(tick()*4),0.2*-math.sin(tick()*4))*CFrame.Angles(math.rad(25*math.sin(tick()*8)), rad(10), rad(0)), 1.5) * CFrame.Angles(-0.1, 0, 0)
  399.  
  400. lleg.C0 = lleg.C0:lerp(lle * CFrame.Angles(-0.4, 0, 0), 0.1)
  401. rleg.C0 = rleg.C0:lerp(rle * CFrame.Angles(0.4, 0, 0), 0.1)
  402.  
  403. elseif Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude < 2 then
  404. lleg.C0 = lleg.C0:lerp(lle,0.1)
  405. rleg.C0 = rleg.C0:lerp(rle,0.1)
  406. end
  407.  
  408. if fire == false and Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude > 2 then
  409. lshold.C0 = lshold.C0:lerp(lsho*CFrame.Angles(math.rad(-25*-math.sin(tick()*8)), rad(-1), rad(0)), 1.5) * CFrame.Angles(0.1, 0, 0)
  410. rshold.C0 = rshold.C0:lerp(rsho*CFrame.Angles(math.rad(25*-math.sin(tick()*8)), rad(-1), rad(0)), 1.5) * CFrame.Angles(0.1, 0, 0)
  411.  
  412. lshold.C0 = lshold.C0:lerp(CFrame.new(0,0,0) * lsho * CFrame.Angles(0, 0, math.rad(-13.579)), 0.1)
  413. rshold.C0 = rshold.C0:lerp(CFrame.new(0,0,0) * rsho * CFrame.Angles(0, 0, math.rad(15.355)), 0.1)
  414. end
  415.  
  416. if fire == false and Vector3.new(root.Velocity.X,0,root.Velocity.Z).magnitude < 2 then
  417. lshold.C0 = lshold.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * lsho * CFrame.Angles(-0.1, 0, 0), 0.1)
  418. rshold.C0 = rshold.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * rsho * CFrame.Angles(-0.1, 0, 0), 0.1)
  419. neck.C0 = neck.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * nec * CFrame.Angles(-0.1, 0, 0), 0.1)
  420. lleg.C0 = lleg.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * lle * CFrame.Angles(-0.1, 0, 0), 0.1)
  421. rleg.C0 = rleg.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * rle * CFrame.Angles(-0.1, 0, 0), 0.1)
  422. waist.C0 = waist.C0:lerp(CFrame.new(0,-0.001+0.03*math.sin(tick()*5),0) * wais * CFrame.Angles(-0.1, 0, 0), 0.1)
  423. end
  424. end)
Add Comment
Please, Sign In to add comment