Advertisement
Guest User

Untitled

a guest
Jan 7th, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.46 KB | None | 0 0
  1. --[[
  2. BUTTONNAMEHERE!.MouseButton1Down:connect(function()
  3. Script Here
  4. end)
  5.  
  6. tbh this is dumb ;/
  7.  
  8. USER:Test
  9. PASS:Test
  10. --]]
  11.  
  12.  
  13.  
  14.  
  15.  
  16. local Tutorial = Instance.new("ScreenGui")
  17. local LoginFrame = Instance.new("Frame")
  18. local bar1 = Instance.new("Frame")
  19. local bar2 = Instance.new("Frame")
  20. local title = Instance.new("TextLabel")
  21. local userbox = Instance.new("TextBox")
  22. local passbox = Instance.new("TextBox")
  23. local submit = Instance.new("TextButton")
  24. local MainFrame = Instance.new("Frame")
  25. local mbar1 = Instance.new("Frame")
  26. local mbar2 = Instance.new("Frame")
  27. local mtitle = Instance.new("TextLabel")
  28. local exitbutton = Instance.new("TextButton")
  29. local exebut = Instance.new("TextButton")
  30. local exebut_2 = Instance.new("TextButton")
  31. local credits = Instance.new("TextLabel")
  32. local ScriptFrame = Instance.new("Frame")
  33. local sbar1 = Instance.new("Frame")
  34. local sbar2 = Instance.new("Frame")
  35. local allahouakbar = Instance.new("TextButton")
  36. local sexitbut = Instance.new("TextButton")
  37.  
  38. -- Properties
  39.  
  40. Tutorial.Name = "Tutorial"
  41. Tutorial.Parent = game.CoreGui
  42.  
  43. LoginFrame.Name = "LoginFrame"
  44. LoginFrame.Parent = Tutorial
  45. LoginFrame.Active = true
  46. LoginFrame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  47. LoginFrame.BorderSizePixel = 0
  48. LoginFrame.Draggable = true
  49. LoginFrame.Position = UDim2.new(0.0207259879, 0, 0.23341608, 0)
  50. LoginFrame.Selectable = true
  51. LoginFrame.Size = UDim2.new(0, 372, 0, 410)
  52.  
  53. bar1.Name = "bar1"
  54. bar1.Parent = LoginFrame
  55. bar1.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  56. bar1.BorderSizePixel = 0
  57. bar1.Position = UDim2.new(0.00134416856, 0, -0.000411840156, 0)
  58. bar1.Size = UDim2.new(0, 371, 0, 44)
  59.  
  60. bar2.Name = "bar2"
  61. bar2.Parent = LoginFrame
  62. bar2.BackgroundColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  63. bar2.BorderSizePixel = 0
  64. bar2.Position = UDim2.new(0.0013441667, 0, 0.106905237, 0)
  65. bar2.Size = UDim2.new(0, 371, 0, 6)
  66.  
  67. title.Name = "title"
  68. title.Parent = LoginFrame
  69. title.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  70. title.BorderSizePixel = 0
  71. title.Position = UDim2.new(0.267473161, 0, 0.151219517, 0)
  72. title.Size = UDim2.new(0, 173, 0, 45)
  73. title.Font = Enum.Font.SourceSansBold
  74. title.Text = "6ix9ine GUI"
  75. title.TextColor3 = Color3.new(1, 1, 1)
  76. title.TextScaled = true
  77. title.TextSize = 14
  78. title.TextWrapped = true
  79.  
  80. userbox.Name = "userbox"
  81. userbox.Parent = LoginFrame
  82. userbox.Active = false
  83. userbox.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  84. userbox.BorderColor3 = Color3.new(0.0156863, 0.027451, 0.0352941)
  85. userbox.BorderSizePixel = 2
  86. userbox.Position = UDim2.new(0.165322587, 0, 0.392353028, 0)
  87. userbox.Size = UDim2.new(0, 249, 0, 30)
  88. userbox.Font = Enum.Font.SourceSansBold
  89. userbox.Text = "Username"
  90. userbox.TextColor3 = Color3.new(1, 1, 1)
  91. userbox.TextScaled = true
  92. userbox.TextSize = 14
  93. userbox.TextWrapped = true
  94. userbox.TextXAlignment = Enum.TextXAlignment.Left
  95.  
  96. passbox.Name = "passbox"
  97. passbox.Parent = LoginFrame
  98. passbox.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  99. passbox.BorderColor3 = Color3.new(0.0156863, 0.027451, 0.0352941)
  100. passbox.BorderSizePixel = 2
  101. passbox.Position = UDim2.new(0.165322587, 0, 0.550889611, 0)
  102. passbox.Size = UDim2.new(0, 249, 0, 30)
  103. passbox.Font = Enum.Font.SourceSansBold
  104. passbox.Text = "Password"
  105. passbox.TextColor3 = Color3.new(1, 1, 1)
  106. passbox.TextScaled = true
  107. passbox.TextSize = 14
  108. passbox.TextWrapped = true
  109. passbox.TextXAlignment = Enum.TextXAlignment.Left
  110.  
  111. submit.Name = "submit"
  112. submit.Parent = LoginFrame
  113. submit.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  114. submit.BorderColor3 = Color3.new(0.0156863, 0.027451, 0.0352941)
  115. submit.BorderSizePixel = 2
  116. submit.Position = UDim2.new(0.267473161, 0, 0.721951246, 0)
  117. submit.Size = UDim2.new(0, 173, 0, 42)
  118. submit.Font = Enum.Font.SourceSansBold
  119. submit.Text = "Login"
  120. submit.TextColor3 = Color3.new(1, 1, 1)
  121. submit.TextSize = 30
  122. submit.TextWrapped = true
  123.  
  124. if userbox.Text == “Test” and passbook.Text == “Test” then
  125. MainFrame.Visible = true
  126. LoginFrame.Visible = false
  127. end)
  128.  
  129.  
  130.  
  131.  
  132. MainFrame.Name = "MainFrame"
  133. MainFrame.Parent = Tutorial
  134. MainFrame.Active = true
  135. MainFrame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  136. MainFrame.BorderSizePixel = 0
  137. MainFrame.Draggable = true
  138. MainFrame.Position = UDim2.new(0.304365218, 0, 0.248837173, 0)
  139. MainFrame.Selectable = true
  140. MainFrame.Size = UDim2.new(0, 450, 0, 344)
  141. MainFrame.Visible = false
  142.  
  143. mbar1.Name = "mbar1"
  144. mbar1.Parent = MainFrame
  145. mbar1.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  146. mbar1.BorderSizePixel = 0
  147. mbar1.Size = UDim2.new(0, 450, 0, 28)
  148.  
  149. mbar2.Name = "mbar2"
  150. mbar2.Parent = MainFrame
  151. mbar2.BackgroundColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  152. mbar2.BorderSizePixel = 0
  153. mbar2.Position = UDim2.new(0, 0, 0.0813953504, 0)
  154. mbar2.Size = UDim2.new(0, 450, 0, 5)
  155.  
  156. mtitle.Name = "mtitle"
  157. mtitle.Parent = MainFrame
  158. mtitle.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  159. mtitle.BorderSizePixel = 0
  160. mtitle.Position = UDim2.new(0.0266666673, 0, 0, 0)
  161. mtitle.Size = UDim2.new(0, 235, 0, 28)
  162. mtitle.Font = Enum.Font.SciFi
  163. mtitle.Text = "6ix9ine GUI"
  164. mtitle.TextColor3 = Color3.new(1, 1, 1)
  165. mtitle.TextSize = 23
  166. mtitle.TextWrapped = true
  167. mtitle.TextXAlignment = Enum.TextXAlignment.Left
  168.  
  169. exitbutton.Name = "exitbutton"
  170. exitbutton.Parent = MainFrame
  171. exitbutton.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  172. exitbutton.BackgroundTransparency = 1
  173. exitbutton.BorderSizePixel = 0
  174. exitbutton.Position = UDim2.new(0.935555637, 0, -0.00290697627, 0)
  175. exitbutton.Size = UDim2.new(0, 29, 0, 34)
  176. exitbutton.Font = Enum.Font.SourceSansBold
  177. exitbutton.Text = "X"
  178. exitbutton.TextColor3 = Color3.new(1, 1, 1)
  179. exitbutton.TextSize = 24
  180. exitbutton.TextWrapped = true
  181. exitbutton.MouseButton1Down:connect(function()
  182. Tutorial:Destroy()
  183. end)
  184. exebut.Name = "exebut"
  185. exebut.Parent = MainFrame
  186. exebut.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  187. exebut.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  188. exebut.BorderSizePixel = 4
  189. exebut.Position = UDim2.new(0.135555565, 0, 0.598837256, 0)
  190. exebut.Size = UDim2.new(0, 137, 0, 46)
  191. exebut.Font = Enum.Font.SourceSansBold
  192. exebut.Text = "Executor"
  193. exebut.TextColor3 = Color3.new(1, 1, 1)
  194. exebut.TextSize = 25
  195.  
  196. exebut_2.Name = "exebut"
  197. exebut_2.Parent = MainFrame
  198. exebut_2.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  199. exebut_2.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  200. exebut_2.BorderSizePixel = 4
  201. exebut_2.Position = UDim2.new(0.548888922, 0, 0.598837256, 0)
  202. exebut_2.Size = UDim2.new(0, 137, 0, 46)
  203. exebut_2.Font = Enum.Font.SourceSansBold
  204. exebut_2.Text = "Scripts"
  205. exebut_2.TextColor3 = Color3.new(1, 1, 1)
  206. exebut_2.TextSize = 25
  207. exebut_2.MouseButton1Down:connect(function()
  208. MainFrame.Visible = false
  209. ScriptFrame.Visible = true
  210. end)
  211. credits.Name = "credits"
  212. credits.Parent = MainFrame
  213. credits.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  214. credits.BorderSizePixel = 0
  215. credits.Position = UDim2.new(0.0133333337, 0, 0.933532834, 0)
  216. credits.Size = UDim2.new(0, 124, 0, 19)
  217. credits.Font = Enum.Font.SourceSansBold
  218. credits.Text = "Made By Crytonicx"
  219. credits.TextColor3 = Color3.new(1, 1, 1)
  220. credits.TextSize = 15
  221. credits.TextWrapped = true
  222. credits.TextXAlignment = Enum.TextXAlignment.Left
  223.  
  224. ScriptFrame.Name = "ScriptFrame"
  225. ScriptFrame.Parent = Tutorial
  226. ScriptFrame.Active = true
  227. ScriptFrame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  228. ScriptFrame.BorderSizePixel = 0
  229. ScriptFrame.Draggable = true
  230. ScriptFrame.Position = UDim2.new(0.660592198, 0, 0.285610557, 0)
  231. ScriptFrame.Selectable = true
  232. ScriptFrame.Size = UDim2.new(0, 302, 0, 319)
  233. ScriptFrame.Visible = false
  234.  
  235. sbar1.Name = "sbar1"
  236. sbar1.Parent = ScriptFrame
  237. sbar1.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  238. sbar1.BorderSizePixel = 0
  239. sbar1.Size = UDim2.new(0, 302, 0, 36)
  240.  
  241. sbar2.Name = "sbar2"
  242. sbar2.Parent = ScriptFrame
  243. sbar2.BackgroundColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  244. sbar2.BorderSizePixel = 0
  245. sbar2.Position = UDim2.new(0, 0, 0.112852663, 0)
  246. sbar2.Size = UDim2.new(0, 302, 0, 5)
  247.  
  248. allahouakbar.Name = "allahouakbar"
  249. allahouakbar.Parent = ScriptFrame
  250. allahouakbar.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  251. allahouakbar.BorderColor3 = Color3.new(0.0392157, 0.0392157, 0.0392157)
  252. allahouakbar.BorderSizePixel = 4
  253. allahouakbar.Position = UDim2.new(0.235099345, 0, 0.413793117, 0)
  254. allahouakbar.Size = UDim2.new(0, 160, 0, 55)
  255. allahouakbar.Font = Enum.Font.SourceSansBold
  256. allahouakbar.Text = "allahouakbar"
  257. allahouakbar.TextColor3 = Color3.new(1, 1, 1)
  258. allahouakbar.TextSize = 25
  259. allahouakbar.TextWrapped = true
  260. allahouakbar.MouseButton1Down:connect(function()
  261.  
  262.  
  263.  
  264. Player=game:GetService("Players").LocalPlayer
  265. Character=Player.Character
  266. PlayerGui=Player.PlayerGui
  267. Backpack=Player.Backpack
  268. Torso=Character.Torso
  269. Head=Character.Head
  270. Humanoid=Character.Humanoid
  271. m=Instance.new('Model',Character)
  272. LeftArm=Character["Left Arm"]
  273. LeftLeg=Character["Left Leg"]
  274. RightArm=Character["Right Arm"]
  275. RightLeg=Character["Right Leg"]
  276. LS=Torso["Left Shoulder"]
  277. LH=Torso["Left Hip"]
  278. RS=Torso["Right Shoulder"]
  279. RH=Torso["Right Hip"]
  280. Face = Head.face
  281. Neck=Torso.Neck
  282. it=Instance.new
  283. attacktype=1
  284. vt=Vector3.new
  285. cf=CFrame.new
  286. euler=CFrame.fromEulerAnglesXYZ
  287. angles=CFrame.Angles
  288. cloaked=false
  289. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  290. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  291. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  292. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  293. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  294. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  295. RootPart=Character.HumanoidRootPart
  296. RootJoint=RootPart.RootJoint
  297. RootCF=euler(-1.57,0,3.14)
  298. attack = false
  299. attackdebounce = false
  300. deb=false
  301. equipped=true
  302. hand=false
  303. MMouse=nil
  304. combo=0
  305. mana=0
  306. trispeed=.2
  307. attackmode='none'
  308. local idle=0
  309. local Anim="Idle"
  310. local Effects={}
  311. local gun=false
  312. local shoot=false
  313. player=nil
  314. mana=0
  315.  
  316. mouse=Player:GetMouse()
  317. --save shoulders
  318. RSH, LSH=nil, nil
  319. --welds
  320. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  321. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  322. LH=Torso["Left Hip"]
  323. RH=Torso["Right Hip"]
  324. TorsoColor=Torso.BrickColor
  325. function NoOutline(Part)
  326. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  327. end
  328. player=Player
  329. ch=Character
  330. RSH=ch.Torso["Right Shoulder"]
  331. LSH=ch.Torso["Left Shoulder"]
  332. --
  333. RSH.Parent=nil
  334. LSH.Parent=nil
  335. --
  336. RW.Name="Right Shoulder"
  337. RW.Part0=ch.Torso
  338. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  339. RW.C1=cf(0, 0.5, 0)
  340. RW.Part1=ch["Right Arm"]
  341. RW.Parent=ch.Torso
  342. --
  343. LW.Name="Left Shoulder"
  344. LW.Part0=ch.Torso
  345. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  346. LW.C1=cf(0, 0.5, 0)
  347. LW.Part1=ch["Left Arm"]
  348. LW.Parent=ch.Torso
  349.  
  350. Player=game:GetService('Players').LocalPlayer
  351. Character=Player.Character
  352. Mouse=Player:GetMouse()
  353. m=Instance.new('Model',Character)
  354.  
  355.  
  356. local function weldBetween(a, b)
  357. local weldd = Instance.new("ManualWeld")
  358. weldd.Part0 = a
  359. weldd.Part1 = b
  360. weldd.C0 = CFrame.new()
  361. weldd.C1 = b.CFrame:inverse() * a.CFrame
  362. weldd.Parent = a
  363. return weldd
  364. end
  365.  
  366. function swait(num)
  367. if num==0 or num==nil then
  368. game:service'RunService'.Stepped:wait(0)
  369. else
  370. for i=0,num do
  371. game:service'RunService'.Stepped:wait(0)
  372. end
  373. end
  374. end
  375.  
  376. function nooutline(part)
  377. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  378. end
  379.  
  380. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  381. local fp=it("Part")
  382. fp.formFactor=formfactor
  383. fp.Parent=parent
  384. fp.Reflectance=reflectance
  385. fp.Transparency=transparency
  386. fp.CanCollide=false
  387. fp.Locked=true
  388. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  389. fp.Name=name
  390. fp.Size=size
  391. fp.Position=Character.Torso.Position
  392. nooutline(fp)
  393. fp.Material=material
  394. fp:BreakJoints()
  395. return fp
  396. end
  397.  
  398. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  399. local mesh=it(Mesh)
  400. mesh.Parent=part
  401. if Mesh=="SpecialMesh" then
  402. mesh.MeshType=meshtype
  403. mesh.MeshId=meshid
  404. end
  405. mesh.Offset=offset
  406. mesh.Scale=scale
  407. return mesh
  408. end
  409.  
  410. function weld(parent,part0,part1,c0,c1)
  411. local weld=it("Weld")
  412. weld.Parent=parent
  413. weld.Part0=part0
  414. weld.Part1=part1
  415. weld.C0=c0
  416. weld.C1=c1
  417. return weld
  418. end
  419.  
  420.  
  421. local function CFrameFromTopBack(at, top, back)
  422. local right = top:Cross(back)
  423. return CFrame.new(at.x, at.y, at.z,
  424. right.x, top.x, back.x,
  425. right.y, top.y, back.y,
  426. right.z, top.z, back.z)
  427. end
  428.  
  429. function Triangle(a, b, c)
  430. local edg1 = (c-a):Dot((b-a).unit)
  431. local edg2 = (a-b):Dot((c-b).unit)
  432. local edg3 = (b-c):Dot((a-c).unit)
  433. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  434. a, b, c = a, b, c
  435. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  436. a, b, c = b, c, a
  437. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  438. a, b, c = c, a, b
  439. else
  440. assert(false, "unreachable")
  441. end
  442.  
  443. local len1 = (c-a):Dot((b-a).unit)
  444. local len2 = (b-a).magnitude - len1
  445. local width = (a + (b-a).unit*len1 - c).magnitude
  446.  
  447. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  448.  
  449. local list = {}
  450.  
  451. local TrailColor = ("Dark grey")
  452.  
  453. if len1 > 0.01 then
  454. local w1 = Instance.new('WedgePart', m)
  455. game:GetService("Debris"):AddItem(w1,5)
  456. w1.Material = "SmoothPlastic"
  457. w1.FormFactor = 'Custom'
  458. w1.BrickColor = BrickColor.new(TrailColor)
  459. w1.Transparency = 0
  460. w1.Reflectance = 0
  461. w1.Material = "SmoothPlastic"
  462. w1.CanCollide = false
  463. NoOutline(w1)
  464. local sz = Vector3.new(0.2, width, len1)
  465. w1.Size = sz
  466. local sp = Instance.new("SpecialMesh",w1)
  467. sp.MeshType = "Wedge"
  468. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  469. w1:BreakJoints()
  470. w1.Anchored = true
  471. w1.Parent = workspace
  472. w1.Transparency = 0.7
  473. table.insert(Effects,{w1,"Disappear",.01})
  474. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  475. table.insert(list,w1)
  476. end
  477.  
  478. if len2 > 0.01 then
  479. local w2 = Instance.new('WedgePart', m)
  480. game:GetService("Debris"):AddItem(w2,5)
  481. w2.Material = "SmoothPlastic"
  482. w2.FormFactor = 'Custom'
  483. w2.BrickColor = BrickColor.new(TrailColor)
  484. w2.Transparency = 0
  485. w2.Reflectance = 0
  486. w2.Material = "SmoothPlastic"
  487. w2.CanCollide = false
  488. NoOutline(w2)
  489. local sz = Vector3.new(0.2, width, len2)
  490. w2.Size = sz
  491. local sp = Instance.new("SpecialMesh",w2)
  492. sp.MeshType = "Wedge"
  493. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  494. w2:BreakJoints()
  495. w2.Anchored = true
  496. w2.Parent = workspace
  497. w2.Transparency = 0.7
  498. table.insert(Effects,{w2,"Disappear",.01})
  499. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  500. table.insert(list,w2)
  501. end
  502. return unpack(list)
  503. end
  504.  
  505.  
  506. so = function(id,par,vol,pit)
  507. coroutine.resume(coroutine.create(function()
  508. local sou = Instance.new("Sound",par or workspace)
  509. sou.Volume=vol
  510. sou.Pitch=pit or 1
  511. sou.SoundId=id
  512. swait()
  513. sou:play()
  514. game:GetService("Debris"):AddItem(sou,6)
  515. end))
  516. end
  517.  
  518. function clerp(a,b,t)
  519. local qa = {QuaternionFromCFrame(a)}
  520. local qb = {QuaternionFromCFrame(b)}
  521. local ax, ay, az = a.x, a.y, a.z
  522. local bx, by, bz = b.x, b.y, b.z
  523. local _t = 1-t
  524. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  525. end
  526.  
  527. function QuaternionFromCFrame(cf)
  528. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  529. local trace = m00 + m11 + m22
  530. if trace > 0 then
  531. local s = math.sqrt(1 + trace)
  532. local recip = 0.5/s
  533. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  534. else
  535. local i = 0
  536. if m11 > m00 then
  537. i = 1
  538. end
  539. if m22 > (i == 0 and m00 or m11) then
  540. i = 2
  541. end
  542. if i == 0 then
  543. local s = math.sqrt(m00-m11-m22+1)
  544. local recip = 0.5/s
  545. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  546. elseif i == 1 then
  547. local s = math.sqrt(m11-m22-m00+1)
  548. local recip = 0.5/s
  549. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  550. elseif i == 2 then
  551. local s = math.sqrt(m22-m00-m11+1)
  552. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  553. end
  554. end
  555. end
  556.  
  557. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  558. local xs, ys, zs = x + x, y + y, z + z
  559. local wx, wy, wz = w*xs, w*ys, w*zs
  560. local xx = x*xs
  561. local xy = x*ys
  562. local xz = x*zs
  563. local yy = y*ys
  564. local yz = y*zs
  565. local zz = z*zs
  566. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  567. end
  568.  
  569. function QuaternionSlerp(a, b, t)
  570. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  571. local startInterp, finishInterp;
  572. if cosTheta >= 0.0001 then
  573. if (1 - cosTheta) > 0.0001 then
  574. local theta = math.acos(cosTheta)
  575. local invSinTheta = 1/math.sin(theta)
  576. startInterp = math.sin((1-t)*theta)*invSinTheta
  577. finishInterp = math.sin(t*theta)*invSinTheta
  578. else
  579. startInterp = 1-t
  580. finishInterp = t
  581. end
  582. else
  583. if (1+cosTheta) > 0.0001 then
  584. local theta = math.acos(-cosTheta)
  585. local invSinTheta = 1/math.sin(theta)
  586. startInterp = math.sin((t-1)*theta)*invSinTheta
  587. finishInterp = math.sin(t*theta)*invSinTheta
  588. else
  589. startInterp = t-1
  590. finishInterp = t
  591. end
  592. end
  593. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  594. end
  595.  
  596. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  597.  
  598.  
  599. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  600. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  601. end
  602.  
  603. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  604. if hit.Parent==nil then
  605. return
  606. end
  607. h=hit.Parent:FindFirstChild("Humanoid")
  608. for _,v in pairs(hit.Parent:children()) do
  609. if v:IsA("Humanoid") then
  610. h=v
  611. end
  612. end
  613. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  614. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  615. end
  616. if hit.Parent.className=="Hat" then
  617. hit=hit.Parent.Parent:findFirstChild("Head")
  618. end
  619. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  620. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  621. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  622. return
  623. end]]
  624. -- hs(hit,1.2)
  625. c=Instance.new("ObjectValue")
  626. c.Name="creator"
  627. c.Value=game:service("Players").LocalPlayer
  628. c.Parent=h
  629. game:GetService("Debris"):AddItem(c,.5)
  630. Damage=math.random(minim,maxim)
  631. -- h:TakeDamage(Damage)
  632. blocked=false
  633. block=hit.Parent:findFirstChild("Block")
  634. if block~=nil then
  635. print(block.className)
  636. if block.className=="NumberValue" then
  637. if block.Value>0 then
  638. blocked=true
  639. if decreaseblock==nil then
  640. block.Value=block.Value-1
  641. end
  642. end
  643. end
  644. if block.className=="IntValue" then
  645. if block.Value>0 then
  646. blocked=true
  647. if decreaseblock~=nil then
  648. block.Value=block.Value-1
  649. end
  650. end
  651. end
  652. end
  653. if blocked==false then
  654. -- h:TakeDamage(Damage)
  655. h.Health=h.Health-Damage
  656. showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
  657. else
  658. h.Health=h.Health-(Damage/2)
  659. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  660. end
  661. if Type=="Knockdown" then
  662. hum=hit.Parent.Humanoid
  663. hum.PlatformStand=true
  664. coroutine.resume(coroutine.create(function(HHumanoid)
  665. swait(1)
  666. HHumanoid.PlatformStand=false
  667. end),hum)
  668. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  669. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  670. local bodvol=Instance.new("BodyVelocity")
  671. bodvol.velocity=angle*knockback
  672. bodvol.P=5000
  673. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  674. bodvol.Parent=hit
  675. rl=Instance.new("BodyAngularVelocity")
  676. rl.P=3000
  677. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  678. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  679. rl.Parent=hit
  680. game:GetService("Debris"):AddItem(bodvol,.5)
  681. game:GetService("Debris"):AddItem(rl,.5)
  682. elseif Type=="Normal" then
  683. vp=Instance.new("BodyVelocity")
  684. vp.P=500
  685. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  686. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  687. if KnockbackType==1 then
  688. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  689. elseif KnockbackType==2 then
  690. vp.velocity=Property.CFrame.lookVector*knockback
  691. end
  692. if knockback>0 then
  693. vp.Parent=hit.Parent.Torso
  694. end
  695. game:GetService("Debris"):AddItem(vp,.5)
  696. elseif Type=="Up" then
  697. local bodyVelocity=Instance.new("BodyVelocity")
  698. bodyVelocity.velocity=vt(0,60,0)
  699. bodyVelocity.P=5000
  700. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  701. bodyVelocity.Parent=hit
  702. game:GetService("Debris"):AddItem(bodyVelocity,1)
  703. rl=Instance.new("BodyAngularVelocity")
  704. rl.P=3000
  705. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  706. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  707. rl.Parent=hit
  708. game:GetService("Debris"):AddItem(rl,.5)
  709. elseif Type=="Snare" then
  710. bp=Instance.new("BodyPosition")
  711. bp.P=2000
  712. bp.D=100
  713. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  714. bp.position=hit.Parent.Torso.Position
  715. bp.Parent=hit.Parent.Torso
  716. game:GetService("Debris"):AddItem(bp,1)
  717. elseif Type=="Target" then
  718. if Targetting==false then
  719. ZTarget=hit.Parent.Torso
  720. coroutine.resume(coroutine.create(function(Part)
  721. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  722. swait(5)
  723. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  724. end),ZTarget)
  725. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  726. targetgui=Instance.new("BillboardGui")
  727. targetgui.Parent=ZTarget
  728. targetgui.Size=UDim2.new(10,100,10,100)
  729. targ=Instance.new("ImageLabel")
  730. targ.Parent=targetgui
  731. targ.BackgroundTransparency=1
  732. targ.Image="rbxassetid://4834067"
  733. targ.Size=UDim2.new(1,0,1,0)
  734. cam.CameraType="Scriptable"
  735. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  736. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  737. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  738. Targetting=true
  739. RocketTarget=ZTarget
  740. for i=1,Property do
  741. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  742. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  743. swait()
  744. end
  745. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  746. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  747. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  748. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  749. end
  750. Targetting=false
  751. RocketTarget=nil
  752. targetgui.Parent=nil
  753. cam.CameraType="Custom"
  754. end
  755. end
  756. debounce=Instance.new("BoolValue")
  757. debounce.Name="DebounceHit"
  758. debounce.Parent=hit.Parent
  759. debounce.Value=true
  760. game:GetService("Debris"):AddItem(debounce,Delay)
  761. c=Instance.new("ObjectValue")
  762. c.Name="creator"
  763. c.Value=Player
  764. c.Parent=h
  765. game:GetService("Debris"):AddItem(c,.5)
  766. CRIT=false
  767. hitDeb=true
  768. AttackPos=6
  769. end
  770. end
  771.  
  772. showDamage=function(Char,Dealt,du,Color)
  773. m=Instance.new("Model")
  774. m.Name=tostring(Dealt)
  775. h=Instance.new("Humanoid")
  776. h.Health=0
  777. h.MaxHealth=0
  778. h.Parent=m
  779. c=Instance.new("Part")
  780. c.Transparency=0
  781. c.BrickColor=Color
  782. c.Name="Head"
  783. c.TopSurface=0
  784. c.BottomSurface=0
  785. c.formFactor="Plate"
  786. c.Size=Vector3.new(1,.4,1)
  787. ms=Instance.new("CylinderMesh")
  788. ms.Scale=Vector3.new(.8,.8,.8)
  789. if CRIT==true then
  790. ms.Scale=Vector3.new(1,1.25,1)
  791. end
  792. ms.Parent=c
  793. c.Reflectance=0
  794. Instance.new("BodyGyro").Parent=c
  795. c.Parent=m
  796. if Char:findFirstChild("Head")~=nil then
  797. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  798. elseif Char.Parent:findFirstChild("Head")~=nil then
  799. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  800. end
  801. f=Instance.new("BodyPosition")
  802. f.P=2000
  803. f.D=100
  804. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  805. f.position=c.Position+Vector3.new(0,3,0)
  806. f.Parent=c
  807. game:GetService("Debris"):AddItem(m,.5+du)
  808. c.CanCollide=false
  809. m.Parent=workspace
  810. c.CanCollide=false
  811. end
  812.  
  813. VestHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(2.01999998, 1.39999998, 1.01999998))
  814. handleweld=weld(m,Character["Torso"],VestHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52587891e-005, 0.300115585, 3.05175781e-005, 0.999999642, 0, 0, 0, 1, 0, 0, 0, 0.999999642))
  815. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1, 0.76000005, 0.600000024))
  816. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.509597778, -0.490081787, 0.200000286, -0.999999642, 0, 0, 0, 0, 0.999999642, 0, 1, 0))
  817. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=104516854",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  818. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.600000024, 0.800000012))
  819. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000152587891, -0.999994516, -0.200134277, -4.47035475e-008, 0, 0.999999642, 0, 1, 0, -0.999999642, 0, -4.4703544e-008))
  820. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  821. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.620000005, 1.01999998))
  822. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700012207, -1.00999117, 1.52587891e-005, 0.999999046, 0, 0, 0, 1, 0, 0, 0, 0.999999046))
  823. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.620000005, 1.01999998))
  824. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699127197, -1.00999379, 0.000549316406, 0.999997914, 6.38506317e-005, -2.78951497e-015, -6.38804122e-005, 1.00000012, 2.10474918e-015, 2.78942159e-015, 1.39239913e-015, 0.999997854))
  825. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  826. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609390259, 0.811340332, -0.0999908447, 3.08029073e-018, -2.69585922e-014, -0.999999642, -0.999999642, -6.39334685e-005, -1.35697087e-018, -6.39334467e-005, 1, -2.6958582e-014))
  827. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  828. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  829. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609359741, -0.788131714, -0.0999910831, 3.06354694e-018, -2.34616979e-014, -0.999999642, -0.999999642, -6.39629943e-005, -1.56279636e-018, -6.39629725e-005, 1, -2.34616895e-014))
  830. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  831. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  832. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609375, 0.0116882324, -0.0999908447, 3.06355067e-018, -2.34617301e-014, -0.999999642, -0.999999642, -6.39631544e-005, -1.56279822e-018, -6.39631326e-005, 1, -2.34617217e-014))
  833. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  834. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  835. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609313965, -0.388046265, -0.0999908447, 3.0635486e-018, -2.34617301e-014, -0.999998927, -0.999998927, -6.39631544e-005, -1.56279719e-018, -6.39630889e-005, 1, -2.34617047e-014))
  836. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  837. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  838. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.609329224, 0.411483765, -0.0999908447, 3.08028867e-018, -2.69585922e-014, -0.999998927, -0.999998927, -6.39334685e-005, -1.35696984e-018, -6.3933403e-005, 1, -2.69585617e-014))
  839. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  840. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  841. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000305175781, -0.800010204, 0.89906311, -4.47035724e-008, 6.26018334e-015, 0.999997854, -8.34552054e-008, 1.00000012, -5.15634779e-015, -0.999997914, -5.35364961e-008, -4.47035653e-008))
  842. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  843. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.600000024, 0.800000012))
  844. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000228881836, -0.99998498, -0.199783325, -4.47038211e-008, -2.85946115e-012, -0.999997854, -6.3955762e-005, 1.00000012, 1.77753083e-015, 0.999997914, 6.39259815e-005, -4.47038175e-008))
  845. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  846. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 3.79999971, 0.200000003))
  847. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356018066, -0.311279297, -0.609542847, 0.865768671, 0.500441432, 0, -0.5004403, 0.865770638, 3.55271241e-015, 3.55271241e-015, 3.02253882e-015, 0.999997854))
  848. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  849. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.01999998, 0.200000003, 0.200000003))
  850. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000122070313, -0.799995899, 0.900177002, 1.49011559e-008, 0, -0.999995232, 0, 1, 0, 0.999995232, 0, 1.49011559e-008))
  851. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  852. FlagLogo=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","FlagLogo",Vector3.new(3, 1.99999988, 0.200000003))
  853. FlagLogoweld=weld(m,VestHandle,FlagLogo,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.14234924, -3.41108704, -0.610244751, 0.865850091, 0.500302911, -3.55240239e-015, -0.500302792, 0.865850449, 9.79956736e-019, 3.07633938e-015, 1.77642947e-015, 0.999999642))
  854. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  855. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356628418, -2.31108093, -0.620269775, 0.865850091, 0.500302911, 7.10581953e-015, -0.500302792, 0.865850449, 9.79956736e-019, 6.15238443e-015, 3.55382075e-015, 0.999999642))
  856. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  857. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000036, 0.200000003, 0.400000036))
  858. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.354736328, -4.51108551, -0.620117188, 0.865849495, 0.500302911, 1.77640292e-014, -0.500302434, 0.865850449, 9.79956115e-019, 9.22842142e-015, 5.33121097e-015, 0.999998927))
  859. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  860. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 1.99999964, 0.200000003))
  861. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356216431, -3.41107178, -0.610137939, 0.865848899, 0.500302911, 1.77639292e-014, -0.500302076, 0.865850449, 9.79955495e-019, 1.53807173e-014, 8.88612016e-015, 0.999998212))
  862. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  863. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
  864. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.356292725, 1.6887207, -0.619628906, 0.865768075, 0.500441432, 0, -0.500439942, 0.865770638, 3.55270987e-015, 3.55270987e-015, 3.02253882e-015, 0.999997139))
  865. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  866. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Part",Vector3.new(0.200000003, 0.400000036, 1.19999993))
  867. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.589828491, 0.808547974, -0.0999956131, -3.90798369e-014, 8.06646416e-017, -0.999997854, -0.999997914, -6.36497934e-005, 3.90798369e-014, -6.36795739e-005, 1.00000012, 3.58011901e-015))
  868. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=12891705",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 0.200000003, 0.200000003))
  869. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"White","Part",Vector3.new(1, 0.76000005, 0.600000024))
  870. Partweld=weld(m,VestHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.509597778, -0.490081787, -0.399998188, -0.999999642, 0, 0, 0, 0, 0.999999642, 0, 1, 0))
  871. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=104516854",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  872. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.200000003, 0.200000003, 1.4000001))
  873. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.05175781e-005, -1.10011411, -1.52587891e-005, 0.999999404, -4.47034765e-008, 0, -4.47034836e-008, -0.999999285, 0, 0, 0, -1))
  874. mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=74322546",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.5, 1.5))
  875. local Decal1 = Instance.new("Decal",FlagLogo)
  876. Decal1.Texture = "http://www.roblox.com/asset/?id=147337085"
  877. Decal1.Face = "Front"
  878. local Decal2 = Instance.new("Decal",FlagLogo)
  879. Decal2.Texture = "http://www.roblox.com/asset/?id=147337085"
  880. Decal2.Face = "Back"
  881. Humanoid.WalkSpeed = 50
  882.  
  883. function ALLAHUAKBAR()
  884. attack = true
  885. local speak = {"ALLAHUAKBAR!!!!!!!!!!!!!!!"}
  886. local colors = {"Red","Red","Red"} -- The only 3 colors, adding more will error.
  887. local chat = game:GetService("Chat")
  888. chat:Chat(Head,speak[math.random(1,#speak)], colors[math.random(1,3)] )
  889. for i = 0,1,0.05 do
  890. swait()
  891. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  892. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  893. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  894. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  895. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  896. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  897. end
  898. so("rbxassetid://138081500",Torso,1,1)
  899. for i = 0,1,0.05 do
  900. swait()
  901. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  902. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  903. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(0), math.rad(50)), 0.3)
  904. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  905. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  906. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  907. end
  908. for i = 1,20 do
  909. so("http://roblox.com/asset/?id=247893371",workspace,1,1)
  910. so("rbxassetid://134854740",Torso,1,1.3)
  911. so("rbxassetid://137994058",Torso,1,1)
  912. so("rbxassetid://165969964",Torso,1,1)
  913. local S = Instance.new("Explosion",workspace)
  914. S.Position = Torso.Position
  915. S.BlastPressure = 5
  916. S.BlastRadius = 50
  917. S.ExplosionType = 2
  918. end
  919. attack = false
  920. end
  921.  
  922. mouse.Button1Down:connect(function()
  923. ALLAHUAKBAR()
  924. end)
  925.  
  926. mouse.KeyDown:connect(function(k)
  927. k=k:lower()
  928.  
  929. end)
  930.  
  931.  
  932. local sine = 0
  933. local change = 1
  934. local val = 0
  935.  
  936. while true do
  937. swait()
  938. sine = sine + change
  939. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  940. local velderp=RootPart.Velocity.y
  941. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  942. if equipped==true or equipped==false then
  943. if attack==false then
  944. idle=idle+1
  945. else
  946. idle=0
  947. end
  948. if idle>=500 then
  949. if attack==false then
  950. --Sheath()
  951. end
  952. end
  953. if RootPart.Velocity.y > 1 and hitfloor==nil then
  954. Anim="Jump"
  955. if attack==false then
  956. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  957. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  958. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
  959. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
  960. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  961. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
  962. end
  963. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  964. Anim="Fall"
  965. if attack==false then
  966. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  967. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  968. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.3)
  969. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)), 0.3)
  970. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  971. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  972. end
  973. elseif torvel<1 and hitfloor~=nil then
  974. Anim="Idle"
  975. if attack==false then
  976. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(10)),.3)
  977. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  978. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(20)), 0.3)
  979. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)
  980. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  981. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  982. end
  983. elseif torvel>2 and hitfloor~=nil then
  984. Anim="Walk"
  985. if attack==false then
  986. change=3
  987. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  988. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.3)
  989. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50*math.cos(sine/20)), math.rad(0), math.rad(10)), 0.3)
  990. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-50*math.cos(sine/20)), math.rad(0), math.rad(-10)), 0.3)
  991. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  992. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  993. end
  994. end
  995. end
  996. if #Effects>0 then
  997. --table.insert(Effects,{prt,"Block1",delay})
  998. for e=1,#Effects do
  999. if Effects[e]~=nil then
  1000. --for j=1,#Effects[e] do
  1001. local Thing=Effects[e]
  1002. if Thing~=nil then
  1003. local Part=Thing[1]
  1004. local Mode=Thing[2]
  1005. local Delay=Thing[3]
  1006. local IncX=Thing[4]
  1007. local IncY=Thing[5]
  1008. local IncZ=Thing[6]
  1009. if Thing[1].Transparency<=1 then
  1010. if Thing[2]=="Block1" then
  1011. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1012. Mesh=Thing[1].Mesh
  1013. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1014. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1015. elseif Thing[2]=="Cylinder" then
  1016. Mesh=Thing[1].Mesh
  1017. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1018. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1019. elseif Thing[2]=="Blood" then
  1020. Mesh=Thing[7]
  1021. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1022. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1023. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1024. elseif Thing[2]=="Elec" then
  1025. Mesh=Thing[1].Mesh
  1026. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1027. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1028. elseif Thing[2]=="Disappear" then
  1029. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1030. end
  1031. else
  1032. Part.Parent=nil
  1033. table.remove(Effects,e)
  1034. end
  1035. end
  1036. --end
  1037. end
  1038. end
  1039. end
  1040. end
  1041.  
  1042.  
  1043.  
  1044.  
  1045. end)
  1046. sexitbut.Name = "sexitbut"
  1047. sexitbut.Parent = ScriptFrame
  1048. sexitbut.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  1049. sexitbut.BackgroundTransparency = 1
  1050. sexitbut.BorderSizePixel = 0
  1051. sexitbut.Position = UDim2.new(0.88410598, 0, 0.00313479616, 0)
  1052. sexitbut.Size = UDim2.new(0, 35, 0, 40)
  1053. sexitbut.Font = Enum.Font.SourceSansBold
  1054. sexitbut.Text = "X"
  1055. sexitbut.TextColor3 = Color3.new(1, 1, 1)
  1056. sexitbut.TextSize = 24
  1057. sexitbut.TextWrapped = true
  1058. sexitbut.MouseButton1Down:connect(function()
  1059. ScriptFrame.Visible = false
  1060. MainFrame.Visible = true
  1061. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement