Advertisement
Animescapetower

Boss Battle Script

Jan 18th, 2018
14,044
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.78 KB | None | 0 0
  1. -- DONT EDIT NOTHING IN THE SCRIPT IF YOU DONT KNOW WHAT YOU DOING!
  2. -- This script is for iiFireGamingOfDoom.
  3. wait(2)
  4. local InputService=game:GetService("UserInputService")
  5. local Camera=game.Workspace.CurrentCamera
  6. local Player=game.Players.LocalPlayer
  7. local Character=Player.Character
  8. local Head=Character.Head
  9. local Torso=Character.Torso
  10. local RootPart=Character.HumanoidRootPart
  11. local RootJoint=RootPart.RootJoint
  12. local Neck=Torso.Neck
  13. Camera.FieldOfView=90
  14. Camera.CameraType="Scriptable"
  15. InputService.MouseBehavior = Enum.MouseBehavior.LockCenter
  16.  
  17.  
  18.  
  19. local v3=Vector3.new
  20. local cf=CFrame.new
  21. local components=cf().components
  22. local inverse=cf().inverse
  23. local fromAxisAngle=CFrame.fromAxisAngle
  24. local atan,atan2=math.atan,math.atan2
  25. local acos=math.acos
  26.  
  27. local function toAxisAngleFromVector(v)
  28. local z=v.z
  29. return z*z<0.99999 and v3(v.y,-v.x,0).unit*acos(-z) or v3()
  30. end
  31.  
  32. local function AxisAngleLookOrientation(c,v,t)--CFrame,Vector,Tween
  33. local c=c-c.p
  34. local rv=(inverse(c)*v).unit
  35. local rz=rv.z
  36. return rz*rz<0.99999 and c*fromAxisAngle(v3(rv.y,-rv.x,0),acos(-rz)*(t or 1)) or c
  37. end
  38.  
  39. local function AxisAngleLookNew(v,t)--CFrame,Vector,Tween
  40. local rv=v.unit
  41. local rz=rv.z
  42. return rz*rz<0.99999 and fromAxisAngle(v3(rv.y,-rv.x,0),acos(-rz)*(t or 1)) or cf()
  43. end
  44.  
  45. local function AxisAngleLook(c,v,t)--CFrame,Vector,Tween
  46. local rv=(inverse(c)*v).unit
  47. local rz=rv.z
  48. return rz*rz<0.99999 and c*fromAxisAngle(v3(rv.y,-rv.x,0),acos(-rz)*(t or 1)) or c
  49. end
  50.  
  51.  
  52.  
  53.  
  54. local Sensitivity=0.005
  55.  
  56.  
  57. local CameraDirection=Vector3.new(0,0,1)
  58.  
  59. local function EulerAnglesYX(l)
  60. local x,z=l.x,l.z
  61. return atan(l.y/(x*x+z*z)^0.5),-atan2(x,-z)
  62. end
  63.  
  64. local function AnglesXY(l)
  65. local z=l.z
  66. return atan2(l.y,-z),-atan2(l.x,-z)
  67. end
  68.  
  69. local function MouseMoved(Input)
  70. if Input.UserInputType==Enum.UserInputType.MouseMovement then
  71. local dx,dy=Input.Delta.x*Sensitivity,Input.Delta.y*Sensitivity
  72. local m2=dx*dx+dy*dy
  73. if m2>0 then
  74. CameraDirection=(AxisAngleLookOrientation(RootPart.CFrame,CameraDirection)*fromAxisAngle(v3(-dy,-dx,0),m2^0.5)).lookVector
  75. end
  76. local RootOrientation=RootPart.CFrame-RootPart.Position
  77. local RelativeDirection=RootOrientation:inverse()*CameraDirection
  78. local AngX,AngY=AnglesXY(RelativeDirection)--RootOrientation:inverse()*
  79. if AngX<-1.57*11/12 then
  80. local y,z,c,s=RelativeDirection.y,RelativeDirection.z,math.cos(-1.57*11/12-AngX),-math.sin(-1.57*11/12-AngX)
  81. z,y=z*c-y*s,z*s+y*c
  82. CameraDirection=RootOrientation*v3(RelativeDirection.x<0 and -(1-y*y-z*z)^0.5 or (1-y*y-z*z)^0.5,y,z)
  83. elseif AngX>1.57*11/12 then
  84. local y,z,c,s=RelativeDirection.y,RelativeDirection.z,math.cos(1.57*11/12-AngX),-math.sin(1.57*11/12-AngX)
  85. z,y=z*c-y*s,z*s+y*c
  86. CameraDirection=RootOrientation*v3(RelativeDirection.x<0 and -(1-y*y-z*z)^0.5 or (1-y*y-z*z)^0.5,y,z)
  87. end
  88. end
  89. end
  90.  
  91. local Mouse=Player:GetMouse()
  92.  
  93. local Zoom=- 3
  94.  
  95. Mouse.KeyDown:connect(function(k)
  96. if k=="e" then
  97. Zoom=- -3
  98. elseif k=="q" then
  99. Zoom=- 1
  100. elseif k=="t" then
  101. Zoom=- 3.11
  102. elseif k=="m" then
  103. local s = Instance.new("Sound")
  104. s.Name = "BGMusic"
  105. s.SoundId = "http://www.roblox.com/asset/?id=857499889"
  106. s.Pitch = 1
  107. s.Volume = 1
  108. s.Looped = true
  109. s.archivable = false
  110. s.Parent = game.Workspace
  111. wait(0.1)
  112. s:play()
  113. elseif k=="l" then
  114. --time blast Gifted by invaderzimfan1233, Local Script!
  115.  
  116. math.randomseed(tick())
  117. local pwn = game:service('Players').LocalPlayer
  118. local char = pwn.Character
  119. local pk = pwn.Backpack
  120. local Human = char.Humanoid
  121. local Torso = char.Torso
  122. local Head = char.Head
  123. local LeftArm = char["Left Arm"]
  124. local RightArm = char["Right Arm"]
  125. local LeftLeg = char["Left Leg"]
  126. local RightLeg = char["Right Leg"]
  127. local Neck = char.Torso["Neck"]
  128. local RightShoulder = char.Torso["Right Shoulder"]
  129. local LeftShoulder = char.Torso["Left Shoulder"]
  130. local RightHip = char.Torso["Right Hip"]
  131. local LeftHip = char.Torso["Left Hip"]
  132. local NeckC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  133. local NeckC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  134. local LeftShoulderC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  135. local LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  136. local RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  137. local RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  138. local LeftHipC0 = CFrame.new(-1, -1, 0, 0, 0, -1,0,1, 0, 1, 0, 0)
  139. local LeftHipC1 = CFrame.new(-0.5,1,0,0,0,-1,0,1,0,1, 0, 0)
  140. local RightHipC0 = CFrame.new(1,-1,0,0,0,1,0,1,0,-1,0,0)
  141. local RightHipC1 = CFrame.new(0.5,1,0,0,0,1,0,1,0,-1,0,0)
  142. local Tewl = Instance.new("HopperBin",pk)
  143. local Nim = "Time Blast"
  144. local disabled = false
  145. function ChargeWelds()
  146. if Torso.Anchored then
  147. Torso.CFrame = Torso.CFrame * CFrame.new(0,5,0)
  148. else
  149. Torso.Anchored = true
  150. Torso.CFrame = Torso.CFrame * CFrame.new(0,5,0)
  151. end
  152. coroutine.resume(meshInsertion)
  153. TiltX = 2
  154. TiltY = 0
  155. TiltZ = 2
  156. RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
  157. LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
  158. TiltX = 2
  159. TiltY = 0
  160. TiltZ = 2
  161. MoveX = 0
  162. MoveY = 0
  163. MoveZ = 0
  164. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  165. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX,MoveY,MoveZ)
  166. TiltX = 0.3
  167. TiltY = 0
  168. TiltZ = 0.3
  169. MoveX = 0
  170. MoveY = 0
  171. MoveZ = 0
  172. RightHip.C0 = RightHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  173. LeftHip.C0 = LeftHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  174. end
  175. function RefreshWelds()
  176. Neck.C0 = NeckC0
  177. Neck.C1 = NeckC1
  178. RightShoulder.C0 = RightShoulderC0
  179. RightShoulder.C1 = RightShoulderC1
  180. LeftShoulder.C0 = LeftShoulderC0
  181. LeftShoulder.C1 = LeftShoulderC1
  182. RightHip.C0 = RightHipC0
  183. RightHip.C1 = RightHipC1
  184. LeftHip.C0 = LeftHipC0
  185. LeftHip.C1 = LeftHipC1
  186. end
  187. function Welds1()
  188. TiltX = 0
  189. TiltY = 0
  190. TiltZ = 1.57
  191. RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
  192. LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(TiltX, TiltY, -TiltZ)
  193. TiltX = 0.6
  194. TiltY = 0
  195. TiltZ = 0
  196. MoveX = 0
  197. MoveY = 0
  198. MoveZ = -0.3
  199. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  200. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  201. TiltX = -0.05
  202. TiltY = 0
  203. TiltZ = 0
  204. MoveX = 0
  205. MoveY = 0.1
  206. MoveZ = 0
  207. RightHip.C0 = RightHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  208. LeftHip.C0 = LeftHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  209. end
  210. function Welds2()
  211. TiltX = 100
  212. TiltY = 20
  213. TiltZ = -20
  214. RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
  215. LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(TiltX, TiltY, TiltZ)
  216. TiltX = 0.6
  217. TiltY = 0
  218. TiltZ = 0
  219. MoveX = 0
  220. MoveY = 0
  221. MoveZ = -0.3
  222. RightShoulder.C0 = RightShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  223. LeftShoulder.C0 = LeftShoulder.C0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  224. TiltX = 0
  225. TiltY = 0
  226. TiltZ = 0
  227. MoveX = 0
  228. MoveY = 0
  229. MoveZ = 0
  230. RightHip.C0 = RightHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  231. LeftHip.C0 = LeftHipC0 * CFrame.Angles(TiltX, TiltY, TiltZ) * CFrame.new(MoveX, MoveY, MoveZ)
  232. end
  233. function onButton1Down(mouse)
  234. if disabled == true then
  235. return
  236. end
  237. Torso.Anchored = true
  238. Human.PlatformStand = true
  239. Human.WalkSpeed = 0
  240. disabled = true
  241. narb = Instance.new("ForceField",char)
  242. noob = narb:clone()
  243. noobz = narb:clone()
  244. nubz = narb:clone()
  245. coroutine.resume(coroutine.create(function()
  246. for x = 1,150 do
  247. Torso.CFrame = Torso.CFrame * CFrame.fromEulerAnglesXYZ(0,math.random(-100,100),0)
  248. wait()
  249. end
  250. end))
  251. chargeup()
  252. local wow = Instance.new("Part",workspace)
  253. wow.Anchored = true
  254. wow.CanCollide = false
  255. wow.Reflectance = 0.32
  256. wow.formFactor = "Custom"
  257. wow.Size = Vector3.new(0.2,0.2,0.2)
  258. wow.TopSurface = "Smooth"
  259. wow.Transparency = 0
  260. wow.BottomSurface = "Smooth"
  261. wow.CFrame = Torso.CFrame
  262. wow.BrickColor = BrickColor.new("Institutional white")
  263. local Mesh2 = Instance.new("SpecialMesh",wow)
  264. Mesh2.MeshType = "FileMesh"
  265. Mesh2.Scale = Vector3.new(4.5,0.5,4.5)
  266. Mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  267. Mesh2.TextureId = ""
  268. for i = 1,30 do
  269. wow.CFrame = Torso.CFrame * CFrame.new(0,-7.5,0)
  270. wait()
  271. wow.CFrame = wow.CFrame * CFrame.fromEulerAnglesXYZ(0,-6,0)
  272. wow.Transparency = wow.Transparency + 0.1
  273. end
  274. local p = Instance.new("Part",char)
  275. p.Anchored = true
  276. p.CanCollide = false
  277. p.Transparency = 0
  278. p.Reflectance = 0.3
  279. p.formFactor = "Symmetric"
  280. p.Size = Vector3.new(12, 12, 12)
  281. p.TopSurface = "Smooth"
  282. p.BottomSurface = "Smooth"
  283. p.Name = "Sharingan"
  284. p.Shape = "Ball"
  285. p.CFrame = Torso.CFrame
  286. p.BrickColor = BrickColor.new("Cyan")
  287. local lol = Instance.new("Explosion",workspace)
  288. lol.Position = Torso.Position
  289. lol.BlastRadius = 450
  290. lol.BlastPressure = 0
  291. for i = 1,10 do
  292. wait()
  293. p.Size = p.Size + Vector3.new(3,3,3)
  294. p.CFrame = Torso.CFrame
  295. p.Transparency = p.Transparency + 0.1
  296. end
  297. game.Lighting.TimeOfDay = 6
  298. p:remove()
  299. wow:remove()
  300. Welds2()
  301. wait(0.5)
  302. Welds1()
  303. wait(0.5)
  304. RightShoulder.C0 = RightShoulderC0 * CFrame.Angles(0.1, 0, 2)
  305. LeftShoulder.C0 = LeftShoulderC0 * CFrame.Angles(0.1, 0, -2)
  306. wait(1)
  307. for i = 1,20 do
  308. game.Lighting.Ambient = Color3.new(math.random(),math.random(),math.random())
  309. wait()
  310. end
  311. game.Lighting.Ambient = Color3.new(1,1,1)
  312. local model = Instance.new("Model",char)
  313. local fer = Instance.new("Fire",Torso)
  314. fer.Size = 30
  315. fer.Heat = 18
  316. fer.Color = BrickColor.new("Institutional white").Color
  317. fer.SecondaryColor = BrickColor.new("Really black").Color
  318. local smk = Instance.new("Smoke",Torso)
  319. smk.Opacity = 1
  320. smk.RiseVelocity = 25
  321. smk.Size = 12
  322. smk.Color = BrickColor.new("Cyan").Color
  323. local O = Instance.new("Part",model)
  324. O.Anchored = true
  325. O.CanCollide = false
  326. O.Transparency = 0
  327. O.Reflectance = 0.3
  328. O.formFactor = "Symmetric"
  329. O.Size = Vector3.new(0, 0, 0)
  330. O.TopSurface = "Smooth"
  331. O.BottomSurface = "Smooth"
  332. O.Name = "Sharingan"
  333. O.Shape = "Ball"
  334. O.CFrame = Torso.CFrame*CFrame.fromEulerAnglesXYZ(1.5, 0, 0)
  335. O.BrickColor = BrickColor.new("Really red")
  336. local Mesh = Instance.new("SpecialMesh")
  337. Mesh.Parent = O
  338. Mesh.MeshType = "FileMesh"
  339. Mesh.Scale = Vector3.new(1.3, 1.3, 1.3)
  340. Mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  341. Mesh.TextureId = ""
  342. local O2 = Instance.new("Part",model)
  343. O2.Anchored = true
  344. O2.CanCollide = false
  345. O2.Transparency = 0
  346. O2.Reflectance = 0.3
  347. O2.formFactor = "Symmetric"
  348. O2.Size = Vector3.new(0, 0, 0)
  349. O2.TopSurface = "Smooth"
  350. O2.BottomSurface = "Smooth"
  351. O2.Name = "Sharingan"
  352. O2.Shape = "Ball"
  353. O2.CFrame = Torso.CFrame
  354. O2.BrickColor = BrickColor.new("Institutional white")
  355. local Mesh3 = Instance.new("SpecialMesh")
  356. Mesh3.Parent = O2
  357. Mesh3.MeshType = "FileMesh"
  358. Mesh3.Scale = Vector3.new(1, 1, 1)
  359. Mesh3.MeshId = "http://www.roblox.com/asset/?id=3270017"
  360. Mesh3.TextureId = ""
  361. local O3 = Instance.new("Part",model)
  362. O3.Anchored = true
  363. O3.CanCollide = false
  364. O3.Transparency = 0
  365. O3.Reflectance = 0.3
  366. O3.formFactor = "Symmetric"
  367. O3.Size = Vector3.new(0, 0, 0)
  368. O3.TopSurface = "Smooth"
  369. O3.BottomSurface = "Smooth"
  370. O3.Name = "Sharingan"
  371. O3.Shape = "Ball"
  372. O3.CFrame = Torso.CFrame*CFrame.fromEulerAnglesXYZ(1.5, 0, 0)
  373. O3.BrickColor = BrickColor.new("Cyan")
  374. local Mesh4 = Instance.new("SpecialMesh")
  375. Mesh4.Parent = O3
  376. Mesh4.MeshType = "FileMesh"
  377. Mesh4.Scale = Vector3.new(1.3, 1.3, 1.3)
  378. Mesh4.MeshId = "http://www.roblox.com/asset/?id=3270017"
  379. Mesh4.TextureId = ""
  380. local O4 = Instance.new("Part",model)
  381. O4.Anchored = true
  382. O4.CanCollide = false
  383. O4.Transparency = 0
  384. O4.Reflectance = 0.3
  385. O4.formFactor = "Symmetric"
  386. O4.Size = Vector3.new(0, 0, 0)
  387. O4.TopSurface = "Smooth"
  388. O4.BottomSurface = "Smooth"
  389. O4.Name = "Sharingan"
  390. O4.Shape = "Ball"
  391. O4.CFrame = Torso.CFrame
  392. O4.BrickColor = BrickColor.new("Institutional white")
  393. local Mesh5 = Instance.new("SpecialMesh")
  394. Mesh5.Parent = O4
  395. Mesh5.MeshType = "FileMesh"
  396. Mesh5.Scale = Vector3.new(1, 1, 1)
  397. Mesh5.MeshId = "http://www.roblox.com/asset/?id=3270017"
  398. Mesh5.TextureId = ""
  399. local pro = Instance.new("Part",char)
  400. pro.Anchored = true
  401. pro.CanCollide = true
  402. pro.Transparency = 0.2
  403. pro.Reflectance = 0.3
  404. pro.formFactor = "Symmetric"
  405. pro.Size = Vector3.new(1, 1, 1)
  406. pro.TopSurface = "Smooth"
  407. pro.BottomSurface = "Smooth"
  408. pro.Name = "Sharingan"
  409. pro.Shape = "Ball"
  410. pro.BrickColor = BrickColor.new("Cyan")
  411. pro.CFrame = Torso.CFrame
  412. pro.Touched:connect(onTouched)
  413. local lol = Instance.new("Explosion",workspace)
  414. lol.Position = Torso.Position
  415. lol.BlastRadius = 65
  416. lol.BlastPressure = 900000
  417. lol.Hit:connect(explhit)
  418. local Effect = Instance.new("Part",pro)
  419. Effect.Anchored = true
  420. Effect.CanCollide = false
  421. Effect.Size = Vector3.new(1, 1, 1)
  422. Effect.formFactor = "Symmetric"
  423. Effect.Transparency = 0.6
  424. Effect.BrickColor = BrickColor.new("Institutional white")
  425. Effect.CFrame = Torso.CFrame
  426. Effect.Reflectance = 0.6
  427. Effect.TopSurface = "Smooth"
  428. Effect.BottomSurface = "Smooth"
  429. local EffectMesh = Instance.new("CylinderMesh",Effect)
  430. EffectMesh.Scale = Vector3.new(3, 90000, 3)
  431. local effect = Effect:Clone()
  432. local effectmesh = EffectMesh:Clone()
  433. effect.Parent = pro
  434. effectmesh.Parent = effect
  435. for i = 1,75 do
  436. effect.Reflectance = math.random()
  437. Effect.Reflectance = math.random()
  438. effectmesh.Scale = effectmesh.Scale + Vector3.new(1,0,1)
  439. EffectMesh.Scale = EffectMesh.Scale + Vector3.new(2,0,2)
  440. Mesh.Scale = Mesh.Scale + Vector3.new(3, 3, 3)
  441. Mesh3.Scale = Mesh.Scale
  442. Mesh4.Scale = Mesh.Scale
  443. Mesh5.Scale = Mesh.Scale
  444. O.CFrame = O.CFrame * CFrame.fromEulerAnglesXYZ(6,0,0)
  445. O2.CFrame = O2.CFrame * CFrame.fromEulerAnglesXYZ(0,6,0)
  446. O3.CFrame = O3.CFrame * CFrame.fromEulerAnglesXYZ(0,6,6)
  447. O4.CFrame = O4.CFrame * CFrame.fromEulerAnglesXYZ(6,0,6)
  448. pro.Size = pro.Size + Vector3.new(3,3,3)
  449. pro.CFrame = Torso.CFrame
  450. O.BrickColor = BrickColor.new("Really red")
  451. O2.BrickColor = BrickColor.new("Cyan")
  452. O3.BrickColor = BrickColor.new("Institutional white")
  453. O4.BrickColor = BrickColor.new("Really black")
  454. pro.BrickColor = BrickColor.new("Hot pink")
  455. wait()
  456. end
  457. coroutine.resume(core)
  458. for i = 1,10 do
  459. Effect.Reflectance = 0 + 0.1
  460. effect.Reflectance = 0 + 0.1
  461. EffectMesh.Scale = EffectMesh.Scale - Vector3.new(12,30,12)
  462. effectmesh.Scale = effectmesh.Scale - Vector3.new(11,29,11)
  463. O.Transparency = O.Transparency + 0.1
  464. O2.Transparency = O2.Transparency + 0.1
  465. O3.Transparency = O3.Transparency + 0.1
  466. O4.Transparency = O4.Transparency + 0.1
  467. pro.Transparency = p.Transparency + 0.01
  468. wait()
  469. end
  470. Effect:remove()
  471. pro:remove()
  472. fer:remove()
  473. smk:remove()
  474. noob:remove()
  475. noobz:remove()
  476. nubz:remove()
  477. narb:remove()
  478. RefreshWelds()
  479. game.Lighting.TimeOfDay = 14
  480. game.Lighting.Brightness = 0
  481. model:remove()
  482. Human.PlatformStand = false
  483. Torso.Anchored = false
  484. Human.WalkSpeed = 16
  485. wait(10)
  486. disabled = false
  487. end
  488. function lul(mouse)
  489. mouse.Icon = "http://www.roblox.com/asset/?id=41672909"
  490. mouse.Button1Down:connect(onButton1Down)
  491. end
  492. function explhit(drumstep)
  493. for d,s in pairs (drumstep:children()) do
  494. if s.className == "Humanoid" then
  495. s:takeDamage(80)
  496. end
  497. end
  498. end
  499. function chargeup()
  500. Welds1()
  501. wait(0.4)
  502. ChargeWelds()
  503. wait(0.3)
  504. StartCharge()
  505. wait()
  506. MidCharge()
  507. wait(0.5)
  508. EndCharge()
  509. wait(0.4)
  510. end
  511. function EndCharge()
  512. local p = Instance.new("Part",char)
  513. p.Anchored = true
  514. p.CanCollide = false
  515. p.Transparency = 0
  516. p.Reflectance = 0.3
  517. p.formFactor = "Symmetric"
  518. p.Size = Vector3.new(12, 12, 12)
  519. p.TopSurface = "Smooth"
  520. p.BottomSurface = "Smooth"
  521. p.Name = "Sharingan"
  522. p.Shape = "Ball"
  523. p.CFrame = Torso.CFrame
  524. p.BrickColor = BrickColor.new("Institutional white")
  525. for i = 1,10 do
  526. p.Size = p.Size - Vector3.new(3,3,3)
  527. p.CFrame = Torso.CFrame
  528. wait()
  529. end
  530. p:remove()
  531. end
  532. function MidCharge()
  533. local wow = Instance.new("Part",workspace)
  534. wow.Anchored = true
  535. wow.CanCollide = false
  536. wow.Reflectance = 0.32
  537. wow.formFactor = "Custom"
  538. wow.Size = Vector3.new(12,12,12)
  539. wow.TopSurface = "Smooth"
  540. wow.Transparency = 0.5
  541. wow.BottomSurface = "Smooth"
  542. wow.CFrame = Torso.CFrame * CFrame.new(0,0,0)
  543. wow.BrickColor = BrickColor.new("Cyan")
  544. local wow2 = Instance.new("Part",workspace)
  545. wow2.Anchored = true
  546. wow2.CanCollide = false
  547. wow2.Reflectance = 0.32
  548. wow2.formFactor = "Custom"
  549. wow2.Size = Vector3.new(12,12,12)
  550. wow2.TopSurface = "Smooth"
  551. wow2.Transparency = 0.5
  552. wow2.BottomSurface = "Smooth"
  553. wow2.CFrame = Torso.CFrame * CFrame.new(0,0,0)
  554. wow2.BrickColor = BrickColor.new("Royal Purple")
  555. local wow11 = Instance.new("Part",workspace)
  556. wow11.Anchored = true
  557. wow11.CanCollide = false
  558. wow11.Reflectance = 0.32
  559. wow11.formFactor = "Custom"
  560. wow11.Size = Vector3.new(12,12,12)
  561. wow11.TopSurface = "Smooth"
  562. wow11.Transparency = 0.5
  563. wow11.BottomSurface = "Smooth"
  564. wow11.CFrame = Torso.CFrame * CFrame.new(0,0,0)
  565. wow11.BrickColor = BrickColor.new("Hot pink")
  566. local wow4 = Instance.new("Part",workspace)
  567. wow4.Anchored = true
  568. wow4.CanCollide = false
  569. wow4.Reflectance = 0.32
  570. wow4.formFactor = "Custom"
  571. wow4.Size = Vector3.new(12,12,12)
  572. wow4.TopSurface = "Smooth"
  573. wow4.Transparency = 0.5
  574. wow4.BottomSurface = "Smooth"
  575. wow4.CFrame = Torso.CFrame * CFrame.new(0,0,0)
  576. wow4.BrickColor = BrickColor.new("Really black")
  577. local Taco = Instance.new("SelectionBox",wow)
  578. Taco.Visible = true
  579. Taco.Color = BrickColor.new("Really red")
  580. Taco.Adornee = Taco.Parent
  581. local Tacoz = Taco:clone()
  582. Tacoz.Parent = wow2
  583. Tacoz.Color = BrickColor.new("Really black")
  584. Tacoz.Adornee = Tacoz.Parent
  585. local Taco5 = Tacoz:clone()
  586. Taco5.Parent = wow4
  587. Taco5.Adornee = Taco5.Parent
  588. Taco5.Color = BrickColor.new("Really red")
  589. local Tacosh = Tacoz:clone()
  590. Tacosh.Parent = wow11
  591. Tacosh.Adornee = Tacosh.Parent
  592. Tacosh.Color = BrickColor.new("Really black")
  593. for i = 1,20 do
  594. wait()
  595. wow11.CFrame = wow11.CFrame * CFrame.fromEulerAnglesXYZ(6,6,6)
  596. wow4.CFrame = wow4.CFrame * CFrame.fromEulerAnglesXYZ(-6,-6,-6)
  597. wow2.CFrame = wow2.CFrame * CFrame.fromEulerAnglesXYZ(-3,2,6)
  598. wow.CFrame = wow.CFrame * CFrame.fromEulerAnglesXYZ(5,1,-6)
  599. end
  600. wow:remove()
  601. wow2:remove()
  602. wow4:remove()
  603. wow11:remove()
  604. end
  605. function StartCharge()
  606. local p = Instance.new("Part",char)
  607. p.Anchored = true
  608. p.CanCollide = false
  609. p.Transparency = 0.6
  610. p.Reflectance = 0.3
  611. p.formFactor = "Symmetric"
  612. p.Size = Vector3.new(3,3,3)
  613. p.TopSurface = "Smooth"
  614. p.BottomSurface = "Smooth"
  615. p.Name = "Sharingan"
  616. p.Shape = "Ball"
  617. p.CFrame = Torso.CFrame
  618. p.BrickColor = BrickColor.new("Institutional white")
  619. local O = Instance.new("Part",model)
  620. O.Anchored = true
  621. O.CanCollide = false
  622. O.Transparency = 0
  623. O.Reflectance = 0.3
  624. O.formFactor = "Symmetric"
  625. O.Size = Vector3.new(0, 0, 0)
  626. O.TopSurface = "Smooth"
  627. O.BottomSurface = "Smooth"
  628. O.Name = "Sharingan"
  629. O.Shape = "Ball"
  630. O.CFrame = Torso.CFrame
  631. O.BrickColor = BrickColor.new("Cyan")
  632. local Mesh = Instance.new("SpecialMesh")
  633. Mesh.Parent = O
  634. Mesh.MeshType = "FileMesh"
  635. Mesh.Scale = Vector3.new(1.3, 1.3, 1.3)
  636. Mesh.MeshId = "http://www.roblox.com/asset/?id=3270017"
  637. Mesh.TextureId = ""
  638. for i = 1,10 do
  639. p.Size = p.Size + Vector3.new(3,3,3)
  640. p.CFrame = Torso.CFrame
  641. p.Transparency = p.Transparency + 0.1
  642. O.Transparency = O.Transparency + 0.1
  643. Mesh.Scale = Mesh.Scale + Vector3.new(4, 4, 4)
  644. wait()
  645. end
  646. p:remove()
  647. O:remove()
  648. end
  649. function onTouched(Taco)
  650. if Taco.Parent.Name ~= pwn.Name and Taco.Parent.Parent.Name ~= pwn.Name then
  651. if Taco.Parent.className == "Model" or Taco.Parent.Parent.className == "Model" then
  652. for k,f in pairs(Taco.Parent:children()) do
  653. if f.className == "Part" then
  654. f.Anchored = false
  655. coroutine.resume(coroutine.create(function()
  656. f.Velocity = (Head.Position - f.Position).unit * -150
  657. wait(0.4)
  658. f.Veclovity = Vector3.new(0,0,0)
  659. end))
  660. elseif f.className == "ForceField" then
  661. f:remove()
  662. elseif f.className == "Hat" then
  663. f:remove()
  664. end
  665. end
  666. end
  667. end
  668. end
  669. function shock()
  670. local wowz = Instance.new("Part",workspace)
  671. wowz.Anchored = true
  672. wowz.CanCollide = false
  673. wowz.Reflectance = 0.32
  674. wowz.formFactor = "Custom"
  675. wowz.Size = Vector3.new(0.2,0.2,0.2)
  676. wowz.TopSurface = "Smooth"
  677. wowz.Transparency = 0
  678. wowz.BottomSurface = "Smooth"
  679. wowz.CFrame = Torso.CFrame * CFrame.new(0,0,0)
  680. wowz.BrickColor = BrickColor.new("Really black")
  681. local Mesh2 = Instance.new("SpecialMesh",wow)
  682. Mesh2.MeshType = "FileMesh"
  683. Mesh2.Scale = Vector3.new(6,0.5,6)
  684. Mesh2.MeshId = "http://www.roblox.com/asset/?id=20329976"
  685. Mesh2.TextureId = ""
  686. for i = 1,30 do
  687. wowz.CFrame = Torso.CFrame * CFrame.new(0,-2.5,0)
  688. wait()
  689. wowz.CFrame = wow.CFrame * CFrame.fromEulerAnglesXYZ(0,6,0)
  690. wowz.BrickColor = BrickColor.Random()
  691. end
  692. wowz:remove()
  693. end
  694. function spinmesh()
  695. local wowz = Instance.new("Part",char)
  696. wowz.Anchored = true
  697. wowz.CanCollide = false
  698. wowz.Reflectance = 0.32
  699. wowz.Shape = "Ball"
  700. wowz.Transparency = 0
  701. wowz.formFactor = "Custom"
  702. wowz.Size = Vector3.new(9,9,9)
  703. wowz.TopSurface = "Smooth"
  704. wowz.BottomSurface = "Smooth"
  705. wowz.CFrame = Torso.CFrame
  706. wowz.BrickColor = BrickColor.new("Really black")
  707. wait(3)
  708. wowz:remove()
  709. end
  710. meshInsertion = coroutine.create(spinmesh)
  711. core = coroutine.create(shock)
  712. Tewl.Name = Nim
  713. Tewl.Selected:connect(lul)
  714. elseif k=="o" then
  715. InputService.MouseBehavior = Enum.MouseBehavior.Default
  716. elseif k=="p" then
  717. InputService.MouseBehavior = Enum.MouseBehavior.LockCenter
  718. elseif k=="n" then
  719. ----------------------------------------
  720. -- Originally made by Alfederate :D --
  721. ----------------------------------------
  722.  
  723. -- there's no time to explain! --
  724.  
  725. local new=Instance.new
  726. local rad=math.rad
  727. local cf=CFrame.new
  728. local v3=Vector3.new
  729. local ang=function(x,y,z)
  730. return CFrame.Angles(rad(x),rad(y),rad(z))
  731. end
  732. local player=game:service'Players'.LocalPlayer
  733. local char=player.Character
  734. local cam=workspace.Camera
  735. local mouse=player:GetMouse()
  736. local weld=function(a,b,c0,c1)
  737. m=Instance.new('Motor',a)
  738. m.Part0=a
  739. m.Part1=b
  740. m.C0=c0
  741. m.C1=c1
  742. return m
  743. end
  744.  
  745. start='rbxassetid://592555095'
  746. snd='rbxassetid://594472043'
  747. beamm=Instance.new('Model',workspace)
  748. beamm.Name='beam'
  749.  
  750. laser=false
  751.  
  752. rs=Instance.new('Part',char)
  753. rs.Transparency=1
  754. rs.CanCollide=false
  755. rs.TopSurface,rs.BottomSurface=0,0
  756. rs.FormFactor=3
  757. rs.Size=Vector3.new(.5,.5,.5)
  758.  
  759. ls=rs:Clone()
  760. ls.Parent=char
  761.  
  762. rsw=weld(rs,char.Torso,cf(-1,-.5,0),cf())
  763. lsw=weld(ls,char.Torso,cf(1,-.5,0),cf())
  764. raw=weld(char['Right Arm'],rs,cf(-.5,.6,-.14),ang(90,0,-8))
  765. law=weld(char['Left Arm'],ls,cf(-.3,1.5,-.14),ang(90,0,43))
  766.  
  767. vol=1
  768.  
  769. s1=Instance.new('Sound',char)
  770. s1.Volume=vol
  771. s1.Pitch=1
  772. s1.Looped=true
  773. s1.SoundId=snd
  774.  
  775. s2=Instance.new('Sound',char)
  776. s2.Volume=vol
  777. s2.Pitch=1
  778. s2.Looped=true
  779. s2.SoundId=start
  780.  
  781. s2:play()
  782.  
  783. particles={}
  784.  
  785. local wep=new('Part',char)
  786. wep.FormFactor=3
  787. wep.CanCollide=false
  788. wep.Size=v3(1,3,1)
  789. wep.TopSurface,wep.BottomSurface=0,0
  790. local wepw=weld(wep,char['Right Arm'],cf(.26,.4,.7),ang(0,0,8))
  791.  
  792. local beam=wep:Clone()
  793. beam:ClearAllChildren()
  794. beam.Material='Neon'
  795. beam.BrickColor=BrickColor.new('Electric blue')
  796. beam.Size=Vector3.new(3,3,1)
  797. beam.Transparency=.5
  798. beam.Anchored=true
  799. local ms=Instance.new('BlockMesh',beam)
  800. local inner=beam:Clone()
  801. inner.Transparency=0
  802. inner.Material='SmoothPlastic'
  803. inner.BrickColor=BrickColor.new('Green')
  804. local ms2=inner.Mesh
  805.  
  806. local expl=inner:Clone()
  807. expl.Mesh:Destroy()
  808. expl.Material='Neon'
  809. expl.BrickColor=BrickColor.new('Really red')
  810. expl.Size=Vector3.new(11,11,11)
  811. expl.Transparency=.55
  812. pl=Instance.new('PointLight',expl)
  813. pl.Color=expl.BrickColor.Color
  814. pl.Range=pl.Range*2
  815. pl.Name='light'
  816. local br=pl.Range
  817.  
  818. local exa=expl:Clone()
  819. exa.Size=Vector3.new(4,4,4)
  820. pl2=exa.light
  821.  
  822. local part=exa:Clone()
  823. part.Size=Vector3.new(1.5,1.5,1.5)
  824. pl3=part.light
  825. pms=Instance.new('BlockMesh',part)
  826.  
  827. char.Humanoid.Died:connect(function()
  828. laser=false
  829. beam.Parent=nil
  830. inner.Parent=nil
  831. expl.Parent=nil
  832. exa.Parent=nil
  833. s2:stop()
  834. s1:stop()
  835. end)
  836.  
  837. mouse.Button1Down:connect(function() if char.Humanoid.Health~=0 then
  838. laser=true
  839. s1:play()
  840. s2:stop()
  841. end end)
  842. mouse.Button1Up:connect(function()
  843. laser=false
  844. beam.Parent=nil
  845. inner.Parent=nil
  846. expl.Parent=nil
  847. exa.Parent=nil
  848. s1:stop()
  849. s2:play()
  850. end)
  851.  
  852. parti=0
  853. game:service'RunService'.Stepped:connect(function()
  854. parti=parti+1
  855. for i,v in pairs(particles) do
  856. v.CFrame=v.CFrame*CFrame.new(0,0,-.3)
  857. v.Transparency=v.Transparency+.08
  858. if v.Transparency >= 1 then
  859. v:Destroy()
  860. table.remove(particles,i)
  861. else
  862. v.Parent=beamm
  863. end
  864. end
  865. a=cam.CoordinateFrame.p
  866. b=mouse.Hit.p
  867. mhitr=Ray.new(a,(b-a).unit*999)
  868. mhit,ps=workspace:FindPartOnRayWithIgnoreList(mhitr,{char,beamm})
  869. raw.C1=ang(90+(mouse.Hit.lookVector.y*90),0,-8)
  870. law.C1=ang(90+(mouse.Hit.lookVector.y*90),0,43)
  871. if not char.Humanoid.Sit and not char.Humanoid.PlatformStand then
  872. char.Torso.CFrame=CFrame.new(char.Torso.CFrame.p,Vector3.new(ps.x,char.Torso.CFrame.p.y,ps.z))
  873. end
  874. if laser then
  875. beamm.Parent=workspace
  876. beam.Parent=beamm
  877. inner.Parent=beamm
  878. expl.Parent=beamm
  879. exa.Parent=beamm
  880. s1.Volume=s1.Volume-.0
  881.  
  882. ray=Ray.new((wep.CFrame*cf(0,-1.5,0)).p,((wep.CFrame*cf(0,-10,0)).p-(wep.CFrame*cf(0,-1.5,0)).p).unit*999)
  883. hit,pos=workspace:FindPartOnRayWithIgnoreList(ray,{char,beamm})
  884.  
  885. if hit and hit.Parent:findFirstChild('Humanoid') and s1.Volume > .3 and parti/8==math.floor(parti/8) then
  886. Instance.new('Explosion',workspace).Position=pos
  887. end
  888. if hit and hit.Parent==workspace.Terrain or hit==workspace.Terrain and parti/8==math.floor(parti/8) then
  889. e=Instance.new('Explosion',workspace)
  890. e.Position=pos
  891. e.BlastRadius=14
  892. e.BlastPressure=1e4
  893. end
  894. if hit and not hit.Anchored and not (hit:GetMass()>1e4) then
  895. hit.Velocity=hit.Velocity+beam.CFrame.lookVector*(1*s1.Volume*hit:GetMass())
  896. end
  897.  
  898. if parti==math.floor(parti) then
  899. par=part:Clone()
  900. table.insert(particles,par)
  901. par.Parent=beamm
  902. par.Transparency=1-s1.Volume
  903. par.light.Range=br*s1.Volume
  904. par.CFrame=cf(pos)*ang(math.random(-180,180),math.random(-180,180),math.random(-180,180))*cf(0,0,-10)
  905. end
  906.  
  907. mag=((wep.CFrame*cf(0,-1.5,0)).p-pos).magnitude
  908. ms.Scale=v3(s1.Volume,s1.Volume,mag)
  909. ms2.Scale=v3(ms.Scale.x/2,ms.Scale.y/2,mag-(.1/mag))
  910. beam.CFrame=cf((wep.CFrame*cf(0,-1.5,0)).p,pos)*cf(0,0,-mag/2)*ang(0,0,math.random(0,180))
  911. inner.CFrame=beam.CFrame
  912. pl.Range=br*s1.Volume
  913. pl2.Range=br*s1.Volume
  914. expl.Size=v3(math.random(9,13),math.random(9,13),math.random(9,13))*s1.Volume
  915. expl.Transparency=math.random(40,60)/100
  916. expl.CFrame=cf(pos)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
  917. exa.Size=v3(4,4,4)*s1.Volume
  918. exa.CFrame=wep.CFrame*cf(0,-1.5,0)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
  919. char.Torso.Velocity=char.Torso.Velocity-beam.CFrame.lookVector*(7*s1.Volume)
  920. end
  921. end)
  922. end
  923. end)
  924.  
  925. InputService.InputChanged:connect(MouseMoved)
  926.  
  927. Neck.C1=cf()
  928.  
  929. local _
  930. local DirectionBound=3.14159/3
  931. local CurrentAngY=0
  932.  
  933. local function CameraUpdate()
  934. Camera.CameraType="Scriptable"
  935. local cx,cz=CameraDirection.x,CameraDirection.z
  936. local rvx,rvz=RootPart.Velocity.x,RootPart.Velocity.z
  937. if rvx*rvx+rvz*rvz>4 and cx*rvx+cz*rvz<-0.5*(cx*cx+cz*cz)^0.5*(rvx*rvx+rvz*rvz)^0.5 then
  938. DirectionBound=math.min(DirectionBound*0.9,math.abs(CurrentAngY*0.9))
  939. else
  940. DirectionBound=DirectionBound*0.1+3.14159/3*0.9
  941. end
  942. local AngX,AngY=EulerAnglesYX((RootPart.CFrame-RootPart.Position):inverse()*CameraDirection)
  943. if AngY>DirectionBound then
  944. RootPart.CFrame=RootPart.CFrame*CFrame.Angles(0,AngY-DirectionBound,0)
  945. elseif AngY<-DirectionBound then
  946. RootPart.CFrame=RootPart.CFrame*CFrame.Angles(0,AngY+DirectionBound,0)
  947. end
  948. _,CurrentAngY=EulerAnglesYX((RootPart.CFrame-RootPart.Position):inverse()*CameraDirection)
  949. local CameraOrientation=AxisAngleLookNew((RootPart.CFrame-RootPart.Position):inverse()*CameraDirection,1)
  950. Neck.C0=CFrame.new(0,1,0)*CameraOrientation*CFrame.new(0,0.5,0)
  951. local PreCam=AxisAngleLook(RootPart.CFrame*cf(0,1,0),RootPart.CFrame*v3(0,1,0)+CameraDirection)*CFrame.new(0,0.825,0)
  952. if Zoom== 3 then
  953. local Part,Position=Workspace:findPartOnRay(Ray.new(PreCam.p,PreCam.lookVector*-8),Character)
  954. Camera.CoordinateFrame=PreCam*CFrame.new(0,0,(Position-PreCam.p).magnitude)
  955. else
  956. Camera.CoordinateFrame=PreCam*CFrame.new(0,0,Zoom)
  957. end
  958. end
  959.  
  960. game:GetService("RunService").RenderStepped:connect(CameraUpdate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement