Advertisement
vibrantsinger423

staffxd

Jun 22nd, 2019
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.79 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  5. wait(0.5)
  6. local bin = script.Parent
  7. player = game:GetService("Players").LocalPlayer.Character
  8. rarm = player["Right Arm"]
  9. larm = player["Left Arm"]
  10. player.Humanoid.MaxHealth = 200
  11. local visible = true
  12. mouse=game:GetService("Players").LocalPlayer:GetMouse()
  13. parts = {}
  14.  
  15. mouse.KeyDown:connect(function(k)
  16. k=k:lower()
  17. if k=='z' then
  18. prison()
  19. end
  20. if k=='r' then
  21. idk()
  22. end
  23. if k=='f' then
  24. duplicate()
  25. end
  26. if k=='e' then
  27. wall()
  28. end
  29. if k=='q' then
  30. laser()
  31. end
  32.  
  33. end)
  34.  
  35. function Check(pos)
  36. local hurt = false
  37. local players = game.Players:GetChildren()
  38. for i = 1, #players do
  39. if players[i].Character and hurt == false then
  40. local parts = players[i].Character:GetChildren()
  41. for q = 1, #parts do
  42. if parts[q].className == "Part" and hurt == false then
  43. local range = math.sqrt(math.pow(parts[q].Size.Z, 2) + math.sqrt(math.pow(parts[q].Size.X, 2) + math.pow(parts[q].Size.Y, 2)))
  44. if (found - parts[q].Position).magnitude <= range then
  45. hurt = true
  46. character=player.Character
  47. humanoid=character.Humanoid
  48. character.Torso.CFrame = character.Torso.CFrame*CFrame.Angles(2,2,2)
  49. humanoid:TakeDamage(50)
  50. humanoid.Sit = true
  51. end
  52. end
  53. end
  54. end
  55. end
  56. end
  57.  
  58. function clean(min,thing2)
  59. while min.Humanoid.Health ~= 0 do
  60. local a = game.Players:GetChildren()
  61. for i = 1, #a do
  62. wait()
  63. if (a[i].Character.Torso.Position - thing2.Position).magnitude < 5 then
  64. a[i].Character.Humanoid:TakeDamage(5)
  65. end
  66. end
  67. wait()
  68. end
  69. min:remove()
  70. end
  71.  
  72. function fire(v)
  73. local spawnPos = (tip2.CFrame * CFrame.new(0, 1, 0)).p
  74. local HitSpot = RayCast(spawnPos, v)
  75. local distance = (HitSpot - spawnPos).magnitude
  76. start = nil
  77. finish = nil
  78. local num = math.random(3, 10)
  79. for i = distance / num, distance, distance / num do
  80. if start == nil then
  81. start = tip2.CFrame.p
  82. elseif start ~= nil then
  83. start = finish
  84. end
  85. finish = CFrame.new(spawnPos, HitSpot)
  86. if i ~= distance then
  87. finish = (finish * CFrame.new(math.random(-5, 5), math.random(-1, 1), -i)).p
  88. else
  89. finish = HitSpot
  90. end
  91. local P = Instance.new("Part")
  92. P.Name = "Magic"
  93. P.formFactor = 0
  94. P.Size = Vector3.new(1, 1, (start - finish).magnitude)
  95. P.Parent = game.workspace
  96. P.BrickColor = BrickColor.new(1006)
  97. P.Anchored = true
  98. P.CanCollide = false
  99. P.TopSurface = "Smooth"
  100. P.BottomSurface = "Smooth"
  101. P.Transparency = 0
  102. m = Instance.new("BlockMesh")
  103. m.Scale = Vector3.new(.25, .25, 1)
  104. m.Offset = Vector3.new(0, -1000, 0)
  105. m.VertexColor = Vector3.new(math.huge, math.huge, math.huge)
  106. m.Parent = P
  107. P.CFrame = CFrame.new(start, finish)
  108. P.CFrame = P.CFrame * CFrame.new(0, 1000, P.Size.Z / -2)
  109. table.insert(parts, P)
  110. game:GetService("Debris"):AddItem(P, 2.5)
  111. end
  112. end
  113.  
  114. function RayCast(start, v)
  115.  
  116. local ray = Instance.new("Part")
  117. ray.Parent = game.workspace
  118. ray.Anchored = true
  119. ray.CFrame = CFrame.new(start)
  120. ray.Size = Vector3.new(1,1,1)
  121. ray.Shape = 0
  122. ray.BottomSurface = 0
  123. ray.TopSurface = 0
  124. ray.Name = "Magic"
  125. ray.Elasticity = 0
  126. ray.Reflectance = 0
  127. ray.Friction = 0
  128. ray.Transparency = 0
  129.  
  130. local finding = true
  131. far = 1000
  132.  
  133. while finding do
  134. far = far - 1
  135. if far > 0 then
  136. local see = ray.Position + v
  137. ray.Position = ray.Position + v
  138. if ray.Position ~= see then
  139. finding = false
  140. found = see
  141. end
  142. else
  143. finding = false
  144. found = ray.Position
  145. end
  146. end
  147.  
  148. ray:remove()
  149. Check(found)
  150. return found
  151. end
  152.  
  153. function kill(tar)
  154. while tar.Parent.Humanoid.Health ~= 0 do
  155. tar.Parent.Humanoid.Health = tar.Parent.Humanoid.Health -1
  156. wait()
  157. end
  158. end
  159. if player.Torso:findFirstChild("Right Shoulder") ~= nil then
  160. rs = player.Torso["Right Shoulder"]
  161. rs.Part1 = nil
  162. end
  163. if player.Torso:findFirstChild("Left Shoulder") ~= nil then
  164. ls = player.Torso["Left Shoulder"]
  165. ls.Part1 = nil
  166. end
  167. if player:FindFirstChild("check") == nil then
  168. rns = Instance.new("Weld")
  169. rns.Parent = player.Torso
  170. rns.Part0 = rns.Parent
  171. rns.Part1 = player["Right Arm"]
  172. rns.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  173. lns = Instance.new("Weld")
  174. lns.Parent = player.Torso
  175. lns.Part0 = lns.Parent
  176. lns.Part1 = player["Left Arm"]
  177. lns.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
  178. rblade = Instance.new("Part")
  179. rblade.BrickColor = BrickColor.new(1003)
  180. rblade.Name ="check"
  181. rblade.Parent = player
  182. rblade.CanCollide = false
  183. rblade.Size = Vector3.new(1,8,1)
  184. rblade.formFactor = "Symmetric"
  185. rblade.TopSurface = 0
  186. rblade.BottomSurface = 0
  187. rbm = Instance.new("BlockMesh")
  188. rbm.Parent = rblade
  189. rbm.Scale = Vector3.new(.4,1,.4)
  190. rbw = Instance.new("Weld")
  191. rbw.Parent = rblade
  192. rbw.Part0 = rarm
  193. rbw.Part1 = rblade
  194. rbw.C1 = CFrame.new(0,0,1) *CFrame.Angles((math.pi*.5),(math.pi*0),(math.pi*0))
  195. tip = Instance.new("Part")
  196. tip.CanCollide = false
  197. tip.TopSurface = 0
  198. tip.BottomSurface = 0
  199. tip.Parent = rblade
  200. tip.Size = Vector3.new(1,1,1)
  201. tip.formFactor = "Symmetric"
  202. tip.BrickColor = BrickColor.new(1004)
  203. tipm = Instance.new("BlockMesh")
  204. tipm.Scale = Vector3.new(.41,.2,.41)
  205. tipm.Parent = tip
  206. tipw = Instance.new("Weld")
  207. tipw.Parent = rblade
  208. tipw.Part0 = rblade
  209. tipw.Part1 = tip
  210. tipw.C1 = CFrame.new(0,3.5,0)
  211. tip2 = Instance.new("Part")
  212. tip2.CanCollide = false
  213. tip2.TopSurface = 0
  214. tip2.BottomSurface = 0
  215. tip2.Parent = rblade
  216. tip2.Size = Vector3.new(1,1,1)
  217. tip2.formFactor = "Symmetric"
  218. tip2.BrickColor = BrickColor.new(1004)
  219. tip2m = Instance.new("BlockMesh")
  220. tip2m.Scale = Vector3.new(.41,.2,.41)
  221. tip2m.Parent = tip2
  222. tip2w = Instance.new("Weld")
  223. tip2w.Parent = rblade
  224. tip2w.Part0 = rblade
  225. tip2w.Part1 = tip2
  226. tip2w.C1 = CFrame.new(0,-3.5,0)
  227. tip3 = Instance.new("Part")
  228. tip3.CanCollide = false
  229. tip3.TopSurface = 0
  230. tip3.BottomSurface = 0
  231. tip3.Parent = rblade
  232. tip3.Size = Vector3.new(1,1,1)
  233. tip3.formFactor = "Symmetric"
  234. tip3.BrickColor = BrickColor.new(1004)
  235. tip3m = Instance.new("BlockMesh")
  236. tip3m.Scale = Vector3.new(.41,.2,.41)
  237. tip3m.Parent = tip3
  238. tip3w = Instance.new("Weld")
  239. tip3w.Parent = rblade
  240. tip3w.Part0 = rblade
  241. tip3w.Part1 = tip3
  242. tip3w.C1 = CFrame.new(0,-.5,0)
  243. tip4 = Instance.new("Part")
  244. tip4.CanCollide = false
  245. tip4.TopSurface = 0
  246. tip4.BottomSurface = 0
  247. tip4.Parent = rblade
  248. tip4.Size = Vector3.new(1,1,1)
  249. tip4.formFactor = "Symmetric"
  250. tip4.BrickColor = BrickColor.new(1004)
  251. tip4m = Instance.new("BlockMesh")
  252. tip4m.Scale = Vector3.new(.41,.2,.41)
  253. tip4m.Parent = tip4
  254. tip4w = Instance.new("Weld")
  255. tip4w.Parent = rblade
  256. tip4w.Part0 = rblade
  257. tip4w.Part1 = tip4
  258. tip4w.C1 = CFrame.new(0,.5,0)
  259. tip5 = Instance.new("Part")
  260. tip5.CanCollide = false
  261. tip5.TopSurface = 0
  262. tip5.BottomSurface = 0
  263. tip5.Parent = rblade
  264. tip5.Size = Vector3.new(1,1,1)
  265. tip5.formFactor = "Symmetric"
  266. tip5.BrickColor = BrickColor.new(1004)
  267. tip5m = Instance.new("BlockMesh")
  268. tip5m.Scale = Vector3.new(.41,.2,.41)
  269. tip5m.Parent = tip5
  270. tip5w = Instance.new("Weld")
  271. tip5w.Parent = rblade
  272. tip5w.Part0 = rblade
  273. tip5w.Part1 = tip5
  274. tip5w.C1 = CFrame.new(0,0,0)
  275. tip6 = Instance.new("Part")
  276. tip6.CanCollide = false
  277. tip6.TopSurface = 0
  278. tip6.BottomSurface = 0
  279. tip6.Parent = rblade
  280. tip6.Size = Vector3.new(1,1,1)
  281. tip6.formFactor = "Symmetric"
  282. tip6.BrickColor = BrickColor.new(1004)
  283. tip6m = Instance.new("BlockMesh")
  284. tip6m.Scale = Vector3.new(.05,.6,.41)
  285. tip6m.Parent = tip6
  286. tip6w = Instance.new("Weld")
  287. tip6w.Parent = rblade
  288. tip6w.Part0 = rblade
  289. tip6w.Part1 = tip6
  290. tip6w.C1 = CFrame.new(0,-3,0)
  291. tip7 = Instance.new("Part")
  292. tip7.CanCollide = false
  293. tip7.TopSurface = 0
  294. tip7.BottomSurface = 0
  295. tip7.Parent = rblade
  296. tip7.Size = Vector3.new(1,1,1)
  297. tip7.formFactor = "Symmetric"
  298. tip7.BrickColor = BrickColor.new(1004)
  299. tip7m = Instance.new("BlockMesh")
  300. tip7m.Scale = Vector3.new(.41,.6,.05)
  301. tip7m.Parent = tip7
  302. tip7w = Instance.new("Weld")
  303. tip7w.Parent = rblade
  304. tip7w.Part0 = rblade
  305. tip7w.Part1 = tip7
  306. tip7w.C1 = CFrame.new(0,-3,0)
  307. tip6a = Instance.new("Part")
  308. tip6a.CanCollide = false
  309. tip6a.TopSurface = 0
  310. tip6a.BottomSurface = 0
  311. tip6a.Parent = rblade
  312. tip6a.Size = Vector3.new(1,1,1)
  313. tip6a.formFactor = "Symmetric"
  314. tip6a.BrickColor = BrickColor.new(1004)
  315. tip6am = Instance.new("BlockMesh")
  316. tip6am.Scale = Vector3.new(.15,.6,.41)
  317. tip6am.Parent = tip6a
  318. tip6aw = Instance.new("Weld")
  319. tip6aw.Parent = rblade
  320. tip6aw.Part0 = rblade
  321. tip6aw.Part1 = tip6a
  322. tip6aw.C1 = CFrame.new(0,-2.5,0)
  323. tip7a = Instance.new("Part")
  324. tip7a.CanCollide = false
  325. tip7a.TopSurface = 0
  326. tip7a.BottomSurface = 0
  327. tip7a.Parent = rblade
  328. tip7a.Size = Vector3.new(1,1,1)
  329. tip7a.formFactor = "Symmetric"
  330. tip7a.BrickColor = BrickColor.new(1004)
  331. tip7am = Instance.new("BlockMesh")
  332. tip7am.Scale = Vector3.new(.41,.6,.15)
  333. tip7am.Parent = tip7a
  334. tip7aw = Instance.new("Weld")
  335. tip7aw.Parent = rblade
  336. tip7aw.Part0 = rblade
  337. tip7aw.Part1 = tip7a
  338. tip7aw.C1 = CFrame.new(0,-2.5,0)
  339. tip6b = Instance.new("Part")
  340. tip6b.CanCollide = false
  341. tip6b.TopSurface = 0
  342. tip6b.BottomSurface = 0
  343. tip6b.Parent = rblade
  344. tip6b.Size = Vector3.new(1,1,1)
  345. tip6b.formFactor = "Symmetric"
  346. tip6b.BrickColor = BrickColor.new(1004)
  347. tip6bm = Instance.new("BlockMesh")
  348. tip6bm.Scale = Vector3.new(.05,.6,.41)
  349. tip6bm.Parent = tip6b
  350. tip6bw = Instance.new("Weld")
  351. tip6bw.Parent = rblade
  352. tip6bw.Part0 = rblade
  353. tip6bw.Part1 = tip6b
  354. tip6bw.C1 = CFrame.new(0,-2,0)
  355. tip7b = Instance.new("Part")
  356. tip7b.CanCollide = false
  357. tip7b.TopSurface = 0
  358. tip7b.BottomSurface = 0
  359. tip7b.Parent = rblade
  360. tip7b.Size = Vector3.new(1,1,1)
  361. tip7b.formFactor = "Symmetric"
  362. tip7b.BrickColor = BrickColor.new(1004)
  363. tip7bm = Instance.new("BlockMesh")
  364. tip7bm.Scale = Vector3.new(.41,.6,.05)
  365. tip7bm.Parent = tip7b
  366. tip7bw = Instance.new("Weld")
  367. tip7bw.Parent = rblade
  368. tip7bw.Part0 = rblade
  369. tip7bw.Part1 = tip7b
  370. tip7bw.C1 = CFrame.new(0,-2,0)
  371.  
  372. --[[
  373. rblade.Touched:connect(function(hit)
  374. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  375. if hit.Parent.Name ~= player.Name then
  376. if hit.Parent.Humanoid.MaxHealth > 100 then
  377. hit.Parent.Humanoid.MaxHealth = 100
  378. end
  379. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - math.random(5,15)
  380. hit.Parent.Humanoid.Sit = true
  381. for i = 1, (math.random(1,3)) do
  382. wait()
  383. local bleed = Instance.new("Part")
  384. bleed.formFactor = "Symmetric"
  385. bleed.Size = Vector3.new(1,1,1)
  386. bleed.BrickColor = BrickColor.new(1004)
  387. bleed.TopSurface = 0
  388. bleed.BottomSurface = 0
  389. bleed.Reflectance = .1
  390. bleed.Transparency = 0
  391. bleed.Parent = workspace
  392. bleed.Position = rblade.Position
  393. local bleedm = Instance.new("SpecialMesh")
  394. bleedm.MeshType = "Sphere"
  395. bleedm.Scale = Vector3.new(.5,.5,.5)
  396. bleedm.Parent = bleed
  397. game:GetService("Debris"):AddItem(bleed, 5)
  398. end
  399. end
  400. end
  401. end)
  402. ]]--
  403. end
  404. -- animations--
  405. right = rns
  406. staff = rblade
  407. left = lns
  408. up = "right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))wait()right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))wait()right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))wait()right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))wait()right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))wait()right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))"
  409. down = "right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))wait()right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))wait()right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))wait()right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))wait()right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))"
  410. -- end of staff
  411. --mouse.KeyDown:connect(function(key)
  412. -- moves
  413. --[[
  414. if key == "z" then
  415. if rbw.Part0 == rarm then
  416. rbw.Part0 = larm
  417. end
  418. end
  419. if key == "x" then
  420. if rbw.Part0 == larm then
  421. rbw.Part0 = rarm
  422. end
  423. end
  424. ]]--
  425. --[[
  426. if key == "e" then
  427. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  428. wait()
  429. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
  430. wait()
  431. right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
  432. wait()
  433. right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
  434. wait()
  435. right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
  436. wait()
  437. right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))
  438. wait(.5)
  439. right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
  440. wait()
  441. right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
  442. wait()
  443. right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
  444. wait()
  445. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
  446. wait()
  447. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  448. elseif key == "q" then
  449. left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
  450. wait()
  451. left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*.05))
  452. wait()
  453. left.C1 = CFrame.new(1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*.1))
  454. wait()
  455. left.C1 = CFrame.new(1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*.15))
  456. wait()
  457. left.C1 = CFrame.new(1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*.2))
  458. wait()
  459. left.C1 = CFrame.new(1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*.25))
  460. wait(.5)
  461. left.C1 = CFrame.new(1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*.2))
  462. wait()
  463. left.C1 = CFrame.new(1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*.15))
  464. wait()
  465. left.C1 = CFrame.new(1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*.1))
  466. wait()
  467. left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*.05))
  468. wait()
  469. left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
  470. elseif key == "r" then
  471. left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
  472. wait()
  473. left.C1 = CFrame.new(1.42,0.62,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.3))
  474. wait()
  475. left.C1 = CFrame.new(1.29,0.84,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.35))
  476. wait()
  477. left.C1 = CFrame.new(1.16,1.06,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.4))
  478. wait()
  479. left.C1 = CFrame.new(1.03,1.28,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.45))
  480. wait()
  481. left.C1 = CFrame.new(0.9,1.5,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*.5))
  482. wait(.2)
  483. left.C1 = CFrame.new(0.9,1.5,-0.15)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*.5))
  484. wait()
  485. left.C1 = CFrame.new(0.9,1.5,-0.30)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*.5))
  486. wait()
  487. left.C1 = CFrame.new(0.9,1.5,-0.45)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*.5))
  488. wait()
  489. left.C1 = CFrame.new(0.9,1.5,-0.60)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*.5))
  490. wait()
  491. left.C1 = CFrame.new(0.9,1.5,-0.75)*CFrame.Angles((math.pi*-.75),(math.pi*0),(math.pi*.5))
  492. wait(.1)
  493. left.C1 = CFrame.new(1.03,1.28,0)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*.45))
  494. wait()
  495. left.C1 = CFrame.new(1.16,1.06,0)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*.4))
  496. wait()
  497. left.C1 = CFrame.new(1.29,0.84,0)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*.35))
  498. wait()
  499. left.C1 = CFrame.new(1.42,0.62,0)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*.3))
  500. wait()
  501. left.C1 = CFrame.new(1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*.05))
  502. elseif key == "t" then
  503. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  504. wait()
  505. right.C1 = CFrame.new(-1.42,0.62,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.3))
  506. wait()
  507. right.C1 = CFrame.new(-1.29,0.84,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.35))
  508. wait()
  509. right.C1 = CFrame.new(-1.16,1.06,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.4))
  510. wait()
  511. right.C1 = CFrame.new(-1.03,1.28,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.45))
  512. wait()
  513. right.C1 = CFrame.new(-0.9,1.5,0)*CFrame.Angles((math.pi*0),(math.pi*0),(math.pi*-.5))
  514. wait(.2)
  515. right.C1 = CFrame.new(-0.9,1.5,-0.15)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*-.5))
  516. wait()
  517. right.C1 = CFrame.new(-0.9,1.5,-0.30)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*-.5))
  518. wait()
  519. right.C1 = CFrame.new(-0.9,1.5,-0.45)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*-.5))
  520. wait()
  521. right.C1 = CFrame.new(-0.9,1.5,-0.60)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*-.5))
  522. wait()
  523. right.C1 = CFrame.new(-0.9,1.5,-0.75)*CFrame.Angles((math.pi*-.75),(math.pi*0),(math.pi*-.5))
  524. wait(.1)
  525. right.C1 = CFrame.new(-1.03,1.28,0)*CFrame.Angles((math.pi*-.60),(math.pi*0),(math.pi*-.45))
  526. wait()
  527. right.C1 = CFrame.new(-1.16,1.06,0)*CFrame.Angles((math.pi*-.45),(math.pi*0),(math.pi*-.4))
  528. wait()
  529. right.C1 = CFrame.new(-1.29,0.84,0)*CFrame.Angles((math.pi*-.30),(math.pi*0),(math.pi*-.35))
  530. wait()
  531. right.C1 = CFrame.new(-1.42,0.62,0)*CFrame.Angles((math.pi*-.15),(math.pi*0),(math.pi*-.3))
  532. wait()
  533. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  534. end
  535. ]]--
  536. -- spells-------------------------------------------------------------------------------------
  537. function explosionlol()
  538. if mouse.Target then
  539. if mouse.Target.Parent:findFirstChild("Humanoid") ~= nil then
  540. local tar = mouse.Target
  541. local spark = Instance.new("Explosion")
  542. spark.BlastRadius = 4
  543. spark.BlastPressure = 0
  544. spark.Parent = workspace
  545. spark.Position = tip2.Position
  546. local ptar = tar.Parent
  547. local mis = Instance.new("Part")
  548. mis.formFactor = "Symmetric"
  549. mis.Shape = "Ball"
  550. mis.BrickColor = BrickColor.new(1006)
  551. mis.Transparency = .5
  552. mis.Size = Vector3.new(1,1,1)
  553. mis.Parent = workspace
  554. mis.CFrame = staff.CFrame * CFrame.new(0,0,-15)
  555. local misv = Instance.new("BodyVelocity")
  556. misv.Parent = mis
  557. misv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  558. misv.velocity = mis.CFrame.lookVector * 50
  559. local misg = Instance.new("BodyGyro")
  560. misg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  561. misg.Parent = mis
  562. misg.cframe = CFrame.new(tar.Position, mis.Position)
  563. mis.Touched:connect(function(hit)
  564. if hit.Name == tar.Name then
  565. local ex = Instance.new("Explosion")
  566. ex.Parent = workspace
  567. ex.Position = mis.Position
  568. mis:remove()
  569. end
  570. end)
  571. wait(.5)
  572. while mis.Parent == workspace and tar:IsDescendantOf(workspace) do
  573. wait()
  574. misg.cframe = CFrame.new(tar.Position, mis.Position)
  575. local fire = Instance.new("Explosion")
  576. fire.Parent = workspace
  577. fire.Position = mis.Position
  578. fire.BlastRadius = 2
  579. misv.velocity = mis.CFrame.lookVector * -18
  580. end
  581. mis:remove()
  582. end
  583. end
  584. end
  585. function rock() -- key q
  586. for i = 1,100 do
  587. wait()
  588. local p = Instance.new("Part")
  589. p.BrickColor = BrickColor.new(1006)
  590. p.Name ="check"
  591. p.Parent = workspace
  592. p.CanCollide = false
  593. p.Size = Vector3.new(1,3,1)
  594. p.CFrame = player.Torso.CFrame + Vector3.new(math.random(-5,5),math.random(-2,4),math.random(-5,5))
  595. p.formFactor = "Symmetric"
  596. p.TopSurface = 0
  597. p.BottomSurface = 0
  598. p.Transparency = .5
  599. local pm = Instance.new("SpecialMesh")
  600. pm.Parent = p
  601. pm.MeshType = "Sphere"
  602. pm.Scale = Vector3.new((.2+(.05*i)),(.2+(.05*i)),(.2+(.05*i)))
  603. local pbv = Instance.new("BodyVelocity")
  604. pbv.Parent = p
  605. pbv.velocity = Vector3.new(0,10,0)
  606. game:GetService("Debris"):AddItem(p, .2)
  607. player.Humanoid.Health = player.Humanoid.Health +2
  608. end
  609. player.Torso.CFrame = mouse.Hit + Vector3.new(0,4,0)
  610. wait(.5)
  611. end
  612. vt=Vector3.new
  613. cf=CFrame.new
  614. euler=CFrame.fromEulerAnglesXYZ
  615. angles=CFrame.Angles
  616. function swait(num)
  617. if num==0 or num==nil then
  618. game:service'RunService'.Heartbeat:wait(0)
  619. else
  620. for i=0,num do
  621. game:service'RunService'.Heartbeat:wait(0)
  622. end
  623. end
  624. end
  625. function nooutline(part)
  626. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  627. end
  628.  
  629. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  630. local fp=Instance.new("Part")
  631. fp.formFactor=formfactor
  632. fp.Parent=parent
  633. fp.Reflectance=reflectance
  634. fp.Transparency=transparency
  635. fp.CanCollide=false
  636. fp.Locked=true
  637. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  638. fp.Name=name
  639. fp.Size=size
  640. fp.Position=tip6a.Position
  641. nooutline(fp)
  642. fp.Material=material
  643. fp:BreakJoints()
  644. return fp
  645. end
  646. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  647. local mesh=Instance.new(Mesh)
  648. mesh.Parent=part
  649. if Mesh=="SpecialMesh" then
  650. mesh.MeshType=meshtype
  651. mesh.MeshId=meshid
  652. end
  653. mesh.Offset=offset
  654. mesh.Scale=scale
  655. return mesh
  656. end
  657. function rayCast(Pos, Dir, Max, Ignore)
  658. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  659. end
  660. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  661. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  662. prt.Anchored=true
  663. prt.CFrame=cframe
  664. prt.CanCollide = false
  665. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  666. game:GetService("Debris"):AddItem(prt,2)
  667. coroutine.resume(coroutine.create(function(Part,Mesh)
  668. for i=0,1,delay do
  669. swait()
  670. Part.CFrame=Part.CFrame
  671. Part.Transparency=i
  672. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  673. end
  674. Part.Parent=nil
  675. end),prt,msh)
  676. end
  677. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  678. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  679. prt.Anchored=true
  680. prt.CFrame=cframe
  681. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  682. game:GetService("Debris"):AddItem(prt,2)
  683. coroutine.resume(coroutine.create(function(Part,Mesh)
  684. for i=0,1,delay do
  685. swait()
  686. Part.CFrame=Part.CFrame
  687. Part.Transparency=i
  688. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  689. end
  690. Part.Parent=nil
  691. end),prt,msh)
  692. end
  693.  
  694. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  695. local prt=part(3,workspace,"Neon",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  696. prt.Anchored=true
  697. prt.CFrame=cframe
  698. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  699. game:GetService("Debris"):AddItem(prt,2)
  700. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  701. for i=0,1,delay do
  702. swait()
  703. Part.Transparency=i
  704. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  705. end
  706. Part.Parent=nil
  707. end),prt,msh,(math.random(0,1)+math.random())/5)
  708. end
  709.  
  710. function Machinegun(Prt,Parent)
  711. --attack=true
  712. local efprt=part(3,Parent,"Neon",0,0.5,BrickColor.new("Bright green"),"Effect",vt(0.2,0.2,0.2))
  713. efprt.Anchored=true
  714. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  715. local spread=vt((math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7,(math.random(-1,0)+math.random())*7)*(Prt.Position-mouse.Hit.p).magnitude/40
  716. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  717. game:GetService("Debris"):AddItem(Part,6)
  718. local TheHit=mouse.Hit.p
  719. local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded/170)
  720. local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
  721. --local pos=rayCast(P.Parent.Position,Player:GetMouse().Hit.p).lookVector
  722. local tefprt=part(3,workspace,"Neon",0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.5))
  723. tefprt.CFrame=cf(pos)
  724. MagicCircle(BrickColor.new("Light blue"),cf(pos),0,0.5,0.5,0.5,0.5,0.5,0.02)
  725. game:GetService("Debris"):AddItem(tefprt,3)
  726. Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
  727. if(hit.Parent:FindFirstChild("Humanoid")~= nil)then
  728. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= player.Name then
  729. hit:BreakJoints()
  730. end
  731. end
  732. local mag=(Prt.Position-pos).magnitude
  733.  
  734. for i=1,3 do
  735. MagicRing(BrickColor.new("Dark blue"),cf(pos)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)),3,3,3,1,1,1,0.02)
  736. end
  737. for i=1,8 do
  738. local tehcf=CFrame.new((Part.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
  739. MagicRing(BrickColor.new("Really black"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.02)
  740. end
  741. --[[
  742. for i=0,5 do
  743. local tehcf=CFrame.new((Part.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
  744. MagicRing(BrickColor.new("Neon orange"),tehcf*euler(1.57,0,0),1,1,1,0.5,0.5,0.5,0.01)
  745. end
  746. ]]-- --
  747. MagicCylinder(BrickColor.new("Light blue"),Part.CFrame,1,mag*5,0.5,2.15,0,0.5,0.02)
  748. local particleemitter = Instance.new("ParticleEmitter", hit)
  749. particleemitter.Texture = "http://www.roblox.com/asset/?id=321556991"
  750. --particleemitter.ZOffset = Vector3.new(1,1,10)
  751. --particleemitter.EmissionDirection = "Front"
  752. particleemitter.VelocitySpread = 360
  753. particleemitter.LockedToPart = true
  754. particleemitter.Lifetime = NumberRange.new(0.65)
  755. particleemitter.Speed = NumberRange.new(40)
  756. particleemitter.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 5.563)})
  757. particleemitter.RotSpeed = NumberRange.new(-180, 180)
  758. particleemitter.Rate = 1000
  759. particleemitter.Rotation = NumberRange.new(-45, 45)
  760. particleemitter.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  761. particleemitter.LightEmission = 0
  762. particleemitter.Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0, 0, 0))
  763. wait(0.1)
  764. particleemitter.Rate = 0
  765. Part.Parent=nil
  766. end),efprt,efmsh,spread)
  767. end
  768. function laser()-- key r pls
  769. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  770. wait()
  771. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
  772. wait()
  773. right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
  774. wait()
  775. right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
  776. wait()
  777. right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
  778. wait()
  779. right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))
  780. Machinegun(tip6a)--fire1
  781. local moosick2 = Instance.new("Sound",tip6a)
  782. moosick2.SoundId = "rbxassetid://1624609598"
  783. --142653441, 175067863, 177058852
  784. moosick2.Looped = false
  785. moosick2.Pitch = 1
  786. moosick2.Volume = 5
  787. moosick2:Play()
  788. wait()
  789. right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
  790. wait()
  791. right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
  792. wait()
  793. right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
  794. wait()
  795. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
  796. wait()
  797. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  798. end
  799. function duplicate() -- key f pls
  800. local tar = mouse.Target
  801. if tar ~= nil then
  802. if (tip6a.Position - tar.Position).magnitude < 100 then
  803. right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))
  804. local shot = Instance.new("Part")
  805. shot.Parent = workspace
  806. shot.BrickColor = BrickColor.new("Royal purple")
  807. shot.formFactor = "Symmetric"
  808. shot.Size = Vector3.new(1,1,1)
  809. shot.Anchored = true
  810. local shotm = Instance.new("BlockMesh")
  811. shotm.Scale = Vector3.new(.2,.2,(tip6a.Position - mouse.Hit.p).magnitude)
  812. shot.CFrame = CFrame.new(((tip6a.Position + mouse.Hit.p)/2),mouse.Hit.p)
  813. shotm.Parent = shot
  814. if tar.className == "Part" then
  815. local ice = Instance.new("Part")
  816. ice.CFrame = tar.CFrame
  817. ice.Size = tar.Size + Vector3.new(1,1,1)
  818. ice.Anchored = true
  819. tar.Anchored = true
  820. ice.BrickColor = BrickColor.new("Cyan")
  821. ice.Reflectance = .2
  822. ice.TopSurface = 0
  823. ice.BottomSurface = 0
  824. ice.Transparency = .5
  825. ice.Parent = tar
  826. ice.Friction = 0
  827. game:GetService("Debris"):AddItem(ice, 10)
  828. wait(.1)
  829. shot:remove()
  830. wait(.5)
  831. end
  832. end
  833. end
  834. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  835. end
  836. function wall()
  837. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  838. wait()
  839. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
  840. wait()
  841. right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
  842. wait()
  843. right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
  844. wait()
  845. right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
  846. wait()
  847. right.C1 = CFrame.new(-1.35,.5,-.25)*CFrame.Angles((math.pi*-.5),(math.pi*0),(math.pi*-.25))
  848. for i = 2,101 do
  849. wait()
  850. local boulder = Instance.new("Part")
  851. boulder.TopSurface = 0
  852. boulder.BottomSurface = 0
  853. boulder.Anchored = true
  854. boulder.BrickColor = BrickColor.new("Dark stone grey")
  855. boulder.Size = Vector3.new((i+math.random(-1,1)),(i+math.random(-1,1)),2)
  856. boulder.CFrame = tip.CFrame * CFrame.new(0,0,-2*i)
  857. boulder.Velocity = boulder.CFrame.lookVector * 500
  858. boulder.Material = "Slate"
  859. boulder.Parent = workspace
  860. boulder.Touched:connect(function(hit)
  861. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  862. hit.Parent.humanoid.Sit = true
  863. end
  864. end)
  865. game:GetService("Debris"):AddItem(boulder, .8)
  866. end
  867. right.C1 = CFrame.new(-1.39,.4,-.2)*CFrame.Angles((math.pi*-.4),(math.pi*0),(math.pi*-.2))
  868. wait()
  869. right.C1 = CFrame.new(-1.43,.3,-.15)*CFrame.Angles((math.pi*-.3),(math.pi*0),(math.pi*-.15))
  870. wait()
  871. right.C1 = CFrame.new(-1.47,.2,-.1)*CFrame.Angles((math.pi*-.2),(math.pi*0),(math.pi*-.1))
  872. wait()
  873. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.1),(math.pi*0),(math.pi*-.05))
  874. wait()
  875. right.C1 = CFrame.new(-1.51,.1,-.05)*CFrame.Angles((math.pi*-.0),(math.pi*0),(math.pi*-.05))
  876. end
  877. function idk() --key n pls
  878. local tar = mouse.Target
  879. if tar~= nil then
  880. if tar.Parent:findFirstChild("Humanoid") ~= nil then
  881. if tar.Parent:findFirstChild("Torso") ~= nil then
  882. for i = 1,100 do
  883. wait()
  884. local p = Instance.new("Part")
  885. p.BrickColor = BrickColor.new(1006)
  886. p.Name ="check"
  887. p.Parent = workspace
  888. p.CanCollide = false
  889. p.Size = Vector3.new(1,3,1)
  890. p.CFrame = tar.Parent.Torso.CFrame + Vector3.new(math.random(-5,5),math.random(-2,4),math.random(-5,5))
  891. p.formFactor = "Symmetric"
  892. p.TopSurface = 0
  893. p.BottomSurface = 0
  894. p.Transparency = .5
  895. local pm = Instance.new("SpecialMesh")
  896. pm.Parent = p
  897. pm.MeshType = "Sphere"
  898. pm.Scale = Vector3.new((.2+(.05*i)),(.2+(.05*i)),(.2+(.05*i)))
  899. local pbv = Instance.new("BodyVelocity")
  900. pbv.Parent = p
  901. pbv.velocity = Vector3.new(0,10,0)
  902. game:GetService("Debris"):AddItem(p, .2)
  903. tar.Parent.Humanoid.Health = tar.Parent.Humanoid.Health +2
  904. end
  905. tar.Parent.Torso.CFrame = mouse.Hit + Vector3.new(0,4,0)
  906. wait(.5)
  907. end
  908. end
  909. end
  910. end
  911. function prison() --key z pls
  912. local start = Instance.new("Part")
  913. start.Parent = workspace
  914. start.Position = mouse.Hit.p + Vector3.new(0,18,0)
  915. start.Anchored = true
  916. start.Size = Vector3.new(1,1,1)
  917. start.Transparency = 1
  918. for i = 1,36 do
  919. start.CFrame = start.CFrame * CFrame.Angles(math.rad(0),math.rad(5),math.rad(0))
  920. local wall1 = Instance.new("Part")
  921. wall1.Parent = workspace
  922. wall1.BrickColor = BrickColor.new("Really black")
  923. wall1.Size = Vector3.new(1,10,1)
  924. wall1.Anchored = true
  925. wall1.TopSurface = 0
  926. wall1.CFrame = start.CFrame * CFrame.new(10,-15,0)
  927. local wall2 = Instance.new("Part")
  928. wall2.Parent = workspace
  929. wall2.BrickColor = BrickColor.new("Really black")
  930. wall2.Size = Vector3.new(1,10,1)
  931. wall2.Anchored = true
  932. wall2.TopSurface = 0
  933. wall2.CFrame = start.CFrame * CFrame.new(10,-15,0)
  934. local wall1a = Instance.new("Part")
  935. wall1a.Parent = workspace
  936. wall1a.BrickColor = BrickColor.new("Really black")
  937. wall1a.Size = Vector3.new(1,10,1)
  938. wall1a.Anchored = true
  939. wall1a.TopSurface = 0
  940. wall1a.CFrame = start.CFrame * CFrame.new(-10,-15,0)
  941. local wall2a = Instance.new("Part")
  942. wall2a.Parent = workspace
  943. wall2a.BrickColor = BrickColor.new("Really black")
  944. wall2a.Size = Vector3.new(1,0,1)
  945. wall2a.Anchored = true
  946. wall2a.TopSurface = 0
  947. wall2a.CFrame = start.CFrame * CFrame.new(-10,-15,0)
  948. local roof = Instance.new("Part")
  949. roof.Parent = workspace
  950. roof.Size = Vector3.new(0,1,1)
  951. roof.BrickColor = BrickColor.new("Really black")
  952. roof.Anchored = true
  953. roof.CFrame = start.CFrame * CFrame.new(0,-10,0)
  954. roof.TopSurface = 0
  955. local roof2 = Instance.new("Part")
  956. roof2.Parent = workspace
  957. roof2.Size = Vector3.new(1,1,20)
  958. roof2.BrickColor = BrickColor.new("Really black")
  959. roof2.Anchored = true
  960. roof2.CFrame = start.CFrame * CFrame.new(0,-10,0)
  961. roof2.TopSurface = 0
  962. local roofa = Instance.new("Part")
  963. roofa.Parent = workspace
  964. roofa.Size = Vector3.new(20,1,1)
  965. roofa.BrickColor = BrickColor.new("Really black")
  966. roofa.Anchored = true
  967. roofa.CFrame = start.CFrame * CFrame.new(0,-20,0)
  968. roofa.TopSurface = 0
  969. local roof2a = Instance.new("Part")
  970. roof2a.Parent = workspace
  971. roof2a.Size = Vector3.new(1,1,20)
  972. roof2a.BrickColor = BrickColor.new("Really black")
  973. roof2a.Anchored = true
  974. roof2a.CFrame = start.CFrame * CFrame.new(0,-20,0)
  975. roof2a.TopSurface = 0
  976. game:GetService("Debris"):AddItem(roof, 15)
  977. game:GetService("Debris"):AddItem(wall1, 15)
  978. game:GetService("Debris"):AddItem(wall2, 15)
  979. game:GetService("Debris"):AddItem(roof2, 15)
  980. game:GetService("Debris"):AddItem(wall1a, 15)
  981. game:GetService("Debris"):AddItem(wall2a, 15)
  982. game:GetService("Debris"):AddItem(roofa, 15)
  983. game:GetService("Debris"):AddItem(roof2a, 15)
  984. wait()
  985. end
  986. start:remove()
  987. wait(.5)
  988. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement