Advertisement
xtremscriptsxd

Untitled

May 5th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.22 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local mouse = p:GetMouse()
  4. local larm = char["Left Arm"]
  5. local rarm = char["Right Arm"]
  6. local lleg = char["Left Leg"]
  7. local rleg = char["Right Leg"]
  8. local hed = char.Head
  9. local torso = char.Torso
  10. local hum = char.Humanoid
  11. local stance = "idle"
  12. local root = char.HumanoidRootPart
  13. local tool = script.Parent
  14. local attacking = false
  15. LS = torso["Left Shoulder"]
  16. LH = torso["Left Hip"]
  17. RS = torso["Right Shoulder"]
  18. RH = torso["Right Hip"]
  19. Neck = torso.Neck
  20. RootPart = char.HumanoidRootPart
  21. RootJoint = RootPart.RootJoint
  22. r = game:service'RunService'.RenderStepped
  23. v3 = Vector3.new
  24. c3 = Color3.new
  25. cf = CFrame.new
  26. rad = math.rad
  27. ran = math.random
  28. it = Instance.new
  29. angles = CFrame.Angles
  30.  
  31. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  32. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  33. LSC0=cf(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  34. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  35. RSC0=cf(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  36. ROOTC0 = cf(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  37.  
  38. function Lerp(c1,c2,al)
  39. local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
  40. local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
  41. for i,v in pairs(com1) do
  42. com1[i] = v+(com2[i]-v)*al
  43. end
  44. return CFrame.new(com1[1],com1[2],com1[3]) * angles(select(4,unpack(com1)))
  45. end
  46.  
  47. function defpos()
  48. Neck.C0 = necko
  49. LH.C0 = LHC0
  50. LS.C0 = LSC0
  51. RH.C0 = RHC0
  52. RS.C0 = RSC0
  53. RootJoint.C0 = ROOTC0
  54. end
  55.  
  56. function newpos()
  57. Neck.C0 = necko
  58. LH.C0 = LHC0
  59. LS.C0 = LSC0
  60. RH.C0 = RHC0
  61. RS.C0 = RSC0
  62. RootJoint.C0 = ROOTC0
  63.  
  64. RS.C0 = Lerp(RS.C0,RS.C0* angles(rad(0), rad(0), rad(0)), 1)
  65. LS.C0 = Lerp(LS.C0,LS.C0* angles(rad(0), rad(0), rad(0)), 1)
  66. RH.C0 = Lerp(RH.C0,RH.C0* angles(rad(0), rad(0), rad(0)), 1)
  67. LH.C0 = Lerp(LH.C0,LH.C0* angles(rad(0), rad(0), rad(0)), 1)
  68. RootJoint.C0 = Lerp(RootJoint.C0,RootJoint.C0*angles(rad(0), rad(0), rad(0)), 1)
  69. Neck.C0 = Lerp(Neck.C0,Neck.C0*angles(rad(0), rad(0), rad(0)), 1)
  70. end
  71.  
  72. function part(parent,anchored,collide,size,cframe,color3,material,trans,meshtype,meshscale)
  73. local partt = it("Part",parent)
  74. partt.Anchored = anchored
  75. partt.CanCollide = collide
  76. partt.Size = size
  77. partt.CFrame = cframe
  78. partt.Color = color3
  79. partt.Material = material
  80. partt.Transparency = trans
  81. if meshtype then
  82. local mesh = it("SpecialMesh", partt)
  83. mesh.MeshType = meshtype
  84. mesh.Scale = meshscale
  85. end
  86. return partt
  87. end
  88.  
  89. function spmesh(parent,id,scale)
  90. local smesh = it("SpecialMesh", parent)
  91. smesh.MeshId = id
  92. smesh.Scale = scale
  93. return smesh
  94. end
  95.  
  96. function decal(parent,texture,face)
  97. local dec = it("Decal", parent)
  98. dec.Texture = texture
  99. dec.Face = face
  100. return dec
  101. end
  102. function weld(parent,part0,part1)
  103. local we = it("Weld",parent)
  104. we.Part0 = part0
  105. we.Part1 = part1
  106. end
  107. walkanim = function()
  108.  
  109. end
  110. spawn(function()
  111. TEngineAnimationSoftware = function()
  112. while true do
  113. wait()
  114. local torvel = (game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity * Vector3.new(1,0,1)).magnitude
  115. if torvel > 2 and stance == "idle" and attacking == false then
  116. stance = "walking"
  117. print("walking")
  118. walkanim()
  119. elseif torvel < 1 and stance=="walking" and attacking == false then
  120. stance = "idle"
  121. print("idle")
  122. newpos()
  123. end
  124. end
  125. end
  126.  
  127. TEngineAnimationSoftware()
  128. wait()
  129.  
  130. end)
  131.  
  132. function instrail(a)
  133. local trail = Instance.new("Part", a)
  134. trail.Anchored = true
  135. trail.CanCollide = false
  136. trail.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  137. trail.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  138. local rand = math.random(0,10)
  139. if rand >= 5 then
  140. trail.BrickColor = BrickColor.new("Really red")
  141. elseif rand < 5 then
  142. trail.BrickColor = BrickColor.new("Really black")
  143. end
  144. trail.Size = Vector3.new(0,0,0)
  145. local trailm = Instance.new("SpecialMesh", trail)
  146. trailm.MeshType = "Brick"
  147. trailm.Scale = Vector3.new(5,5,5)
  148. trail.CFrame = a.CFrame
  149. trail.CFrame = trail.CFrame*CFrame.Angles((math.random(10)),(math.random(10)),(math.random(10)))*CFrame.new(math.random(7),math.random(7),math.random(7))
  150.  
  151.  
  152. for i = 0,5,.2 do
  153. trail.Transparency = i
  154.  
  155. wait()
  156. end
  157. trail:Destroy()
  158. end
  159.  
  160.  
  161. mouse.KeyDown:connect(function(key)
  162. if key == "x" then
  163. local doing = true
  164.  
  165. local pppp = part(char,true,false,v3(1,1,1),mouse.Hit,c3(1,0,0),"Neon",0)
  166. pppp.Rotation = torso.Rotation
  167. local cyl = it("CylinderMesh", pppp)
  168. cyl.Scale = Vector3.new(.5,.2,.5)
  169.  
  170. local part2 = part(char,true,false,v3(1,1,1),pppp.CFrame,c3(0,0,0),"Neon",0)
  171. local cyl2 = it("CylinderMesh", part2)
  172. cyl2.Scale = Vector3.new(10,.1,10)
  173.  
  174. for i = 1,50 do
  175. wait()
  176. cyl.Scale = cyl.Scale+Vector3.new(.2,0,.2)
  177. end
  178.  
  179. local placeholder = it("Part", char)
  180. placeholder.Size = v3(1,1,1)
  181. placeholder.CFrame = pppp.CFrame*cf(0,100,0)
  182. placeholder.Transparency = 1
  183. placeholder.Anchored = true
  184. pppp:Destroy()
  185. part2:Destroy()
  186.  
  187.  
  188. --[[ local cy = part(char,true,false,v3(1,1,1),placeholder.CFrame,c3(0,0,0),"Neon",0)
  189. local cyl = it("CylinderMesh", cy)
  190. cyl.Scale = Vector3.new(7,300,7)]]
  191.  
  192. local red = part(char,true,false,v3(0,0,0),placeholder.CFrame*cf(0,5,0),c3(1,0,0),"Neon",0)
  193. local rbrick = it("SpecialMesh",red)
  194. rbrick.MeshType = "Brick"
  195. rbrick.Scale = v3(40,40,40)
  196.  
  197. local black = red:Clone()
  198. black.Parent = char
  199. black.Color = c3(0,0,0)
  200. local bbrick = rbrick:Clone()
  201. bbrick.Parent = black
  202. black.CFrame = black.CFrame*angles(ran(10),ran(10),ran(10))
  203. red.CFrame = red.CFrame*angles(ran(10),ran(10),ran(10))
  204.  
  205.  
  206. local function crowns()
  207. local crown = part(placeholder,true,false,v3(0,0,0),placeholder.CFrame,c3(1,0,0),"Neon",0)
  208. local crownm = spmesh(crown,"https://www.roblox.com/asset/?id=20329976",v3(10,1,10))
  209. for i = 1,10 do
  210. crownm.Scale = crownm.Scale+v3(0,5,0)
  211. crownm.Scale = crownm.Scale-v3(1,0,1)
  212. crown.CFrame = crown.CFrame * CFrame.Angles(0,-math.rad(15 + i),0)
  213. black.CFrame = black.CFrame*angles(ran(10),ran(10),ran(10))
  214. red.CFrame = red.CFrame*angles(ran(10),ran(10),ran(10))
  215. black.Position = placeholder.Position
  216. red.Position = placeholder.Position
  217. wait()
  218. end
  219. end --eof
  220.  
  221. local function rings()
  222. local rhr = it("Part", placeholder)
  223. rhr.Size = v3(0,0,0)
  224. rhr.CFrame = placeholder.CFrame*angles(ran(10),ran(10),ran(10))*cf(0,5,0)
  225. rhr.Color = c3(1,0,0)
  226. rhr.Anchored = true
  227. rhr.CanCollide = false
  228. rhr.Material = "Neon"
  229. local bhr = rhr:Clone()
  230. bhr.Parent = char
  231. bhr.Color = c3(0,0,0)
  232.  
  233. local rhrm= it("SpecialMesh",rhr)
  234. rhrm.Scale = v3(1,.2,1)
  235. rhrm.MeshId = "https://www.roblox.com/asset/?id=3270017"
  236. local bhrm = rhrm:Clone()
  237. bhrm.Parent = bhr
  238.  
  239. for i = 0,1,.1 do
  240. r:wait()
  241. bhrm.Scale = bhrm.Scale+v3(2,2,0)
  242. rhrm.Scale = rhrm.Scale+v3(2,2,0)
  243. bhr.Transparency = i
  244. rhr.Transparency =i
  245. end
  246. rhr:Destroy()
  247. bhr:Destroy()
  248. end
  249. spawn(function()
  250. wait(3.2)
  251. doing = false
  252. end)
  253. while doing ==true do
  254. wait()
  255. spawn(function()
  256. crowns()
  257. placeholder.CFrame = placeholder.CFrame*cf(0,-5,0)
  258. end)
  259. spawn(function()
  260. rings()
  261. end)
  262. wait(.1)
  263. end
  264.  
  265. spawn(function()
  266. hbox = it("Part", placeholder)
  267. hboxing = true
  268. hbox.Size = v3(50,50,50)
  269. hbox.Anchored = true
  270. hbox.Transparency = 1
  271. hbox.CanCollide = false
  272. hbox.CFrame = placeholder.CFrame
  273. hbox.Touched:connect(function(hit)
  274. if hit.Parent:FindFirstChild("Humanoid") then
  275. if hit.Parent.Name ~=p.Name then
  276. local hoom = hit.Parent:FindFirstChild("Humanoid")
  277. hoom.Health = hoom.Health-100
  278. end
  279. end
  280. end)
  281. spawn(function()
  282. while hboxing == true do
  283. hbox.CFrame = placeholder.CFrame
  284. wait()
  285. end
  286. end)
  287. for i = 1,10,.1 do
  288. r:wait()
  289. rbrick.Scale = rbrick.Scale+v3(3,3,3)
  290. bbrick.Scale = bbrick.Scale+v3(3,3,3)
  291. red.CFrame = red.CFrame*angles(ran(10),ran(10),ran(10))
  292. black.CFrame = black.CFrame*angles(ran(10),ran(10),ran(10))
  293. end
  294. end)
  295. local rng = it("SpecialMesh", placeholder)
  296. rng.MeshId = "rbxassetid://3270017"
  297. rng.Scale = v3(5,5,5)
  298. placeholder.CFrame = placeholder.CFrame*angles(rad(90),rad(0),rad(0))
  299. placeholder.Transparency = .5
  300. placeholder.Color = c3(1,0,0)
  301. for i = 1,100 do
  302. r:wait()
  303. rng.Scale = rng.Scale+v3(8,8,1)
  304. end
  305. hboxing = false
  306. hbox:Destroy()
  307. rng:Destroy()
  308. placeholder:Destroy()
  309. red:Destroy()
  310. black:Destroy()
  311. end
  312. end)
  313. mouse.KeyDown:connect(function(key)
  314. if key == "q" then
  315.  
  316. end
  317. end)
  318.  
  319. mouse.KeyDown:connect(function(key)
  320. if key == "r" then
  321. doingr = true
  322. local holder = part(char,true,false,v3(1,1,1),torso.CFrame*cf(0,0,-2),c3(1,0,0),"Neon",1)
  323. local whirlho = part(holder,true,false,v3(1,1,1),holder.CFrame,c3(1,0,0),"Neon",0)
  324. local whirl = it("SpecialMesh", whirlho)
  325. whirl.MeshId = "rbxassetid://1051557"
  326. whirl.Scale = v3(12,12,12)
  327. local w2h = part(holder,true,false,v3(1,1,1),holder.CFrame,c3(1,0,0),"Neon",0)
  328. local wh2 = it("SpecialMesh", w2h)
  329. wh2.MeshId = "rbxassetid://168892432"
  330. wh2.Scale = v3(4,4,4)
  331. local function crowns()
  332. local crown = part(char,true,false,v3(0,0,0),holder.CFrame*angles(rad(90),rad(0),rad(0)),c3(1,0,0),"Neon",.5)
  333. local cm = it("SpecialMesh", crown)
  334. cm.MeshId = "rbxassetid://20329976"
  335. cm.Scale = v3(10,30,10)
  336. while doingr == true do
  337. crown.CFrame = crown.CFrame:lerp(crown.CFrame*angles(rad(0),rad(16),rad(0)),1)
  338. crown.Position = holder.Position
  339. r:wait()
  340. end
  341. crown:Destroy()
  342. end
  343. local function dragon()
  344. local drag = part(char,true,false,v3(0,0,0),holder.CFrame*angles(rad(0),rad(0),rad(90))*cf(0,0,-4),c3(1,0,0),"Neon",0)
  345. local dm = it("SpecialMesh", drag)
  346. dm.MeshId = "rbxassetid://58430372"
  347. dm.Scale = v3(10,10,10)
  348. while doingr == true do
  349. drag.CFrame = holder.CFrame*cf(0,0,-4)
  350. r:wait()
  351. end
  352. drag:Destroy()
  353. end
  354.  
  355.  
  356. local function trailonholder()
  357. local red = part(char,true,false,v3(0,0,0),holder.CFrame*angles(ran(10),ran(10),ran(10)),c3(1,0,0),"Neon",0)
  358. local black = part(char,true,false,v3(0,0,0),holder.CFrame*angles(ran(10),ran(10),ran(10)),c3(0,0,0),"Neon",0)
  359. local rm = it("SpecialMesh", red)
  360. rm.MeshType = "Brick"
  361. rm.Scale = v3(50,50,50)
  362. local bm = it("SpecialMesh", black)
  363. bm.MeshType = "Brick"
  364. bm.Scale = v3(50,50,50)
  365.  
  366. for i = 0,1,.1 do
  367. black.Transparency = i
  368. red.Transparency = i
  369. wait()
  370. end
  371. end
  372.  
  373. spawn(function()
  374. dragon()
  375. end)
  376. spawn(function()
  377. crowns()
  378. end)
  379. spawn(function()
  380.  
  381. while doingr == true do
  382. r:wait()
  383. spawn(function()
  384. trailonholder()
  385. end)
  386. r:wait()
  387. end
  388. end)
  389. spawn(function()
  390. while doingr == true do
  391. wait()
  392. spawn(function()
  393. instrail(holder)
  394.  
  395. end)
  396. r:wait()
  397. end
  398. end)
  399. spawn(function()
  400. while doingr == true do
  401. r:wait()
  402. whirlho.CFrame = whirlho.CFrame*angles(rad(0),rad(16),rad(0))
  403. w2h.CFrame = whirlho.CFrame*angles(rad(0),rad(16),rad(0))
  404. whirlho.Position = holder.Position
  405. w2h.Position = holder.Position
  406. end
  407. end)
  408.  
  409. for i = 1,10,.1 do
  410. r:wait()
  411. holder.CFrame = holder.CFrame*cf(0,0,-3)
  412.  
  413. end
  414. doingr = false
  415. holder:Destroy()
  416. w2h:Destroy()
  417. whirlho:Destroy()
  418. end
  419. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement