marioisdabomb

1st pov

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