Advertisement
TheStarGlitcher007

Joke hammer

Jun 10th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.89 KB | None | 0 0
  1. wait(0.2)
  2.  
  3. Humanoid = game.Players.LocalPlayer.Character.Humanoid
  4. HP2 = game.Players.LocalPlayer.Character.Humanoid.Health
  5.  
  6. Player = game:GetService("Players").LocalPlayer
  7. PlayerGui = Player.PlayerGui
  8. Cam = workspace.CurrentCamera
  9. Backpack = Player.Backpack
  10. Character = Player.Character
  11. Humanoid = Character.Humanoid
  12. Mouse = Player:GetMouse()
  13. RootPart = Character["HumanoidRootPart"]
  14. Torso = Character["Torso"]
  15. Head = Character["Head"]
  16. RightArm = Character["Right Arm"]
  17. LeftArm = Character["Left Arm"]
  18. RightLeg = Character["Right Leg"]
  19. LeftLeg = Character["Left Leg"]
  20. RootJoint = RootPart["RootJoint"]
  21. Neck = Torso["Neck"]
  22. RightShoulder = Torso["Right Shoulder"]
  23. LeftShoulder = Torso["Left Shoulder"]
  24. RightHip = Torso["Right Hip"]
  25. LeftHip = Torso["Left Hip"]
  26. local sick = Instance.new("Sound",Character)
  27. sick.SoundId = "rbxassetid://1539245059"
  28. sick.Looped = true
  29. sick.Pitch = 1
  30. sick.Volume = 5
  31. sick:Play()
  32.  
  33. IT = Instance.new
  34. CF = CFrame.new
  35. VT = Vector3.new
  36. RAD = math.rad
  37. C3 = Color3.new
  38. UD2 = UDim2.new
  39. BRICKC = BrickColor.new
  40. ANGLES = CFrame.Angles
  41. EULER = CFrame.fromEulerAnglesXYZ
  42. COS = math.cos
  43. ACOS = math.acos
  44. SIN = math.sin
  45. ASIN = math.asin
  46. ABS = math.abs
  47. MRANDOM = math.random
  48. FLOOR = math.floor
  49. local txt = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
  50. txt.Adornee = Die
  51. txt.Name = "nigga"
  52. txt.Size = UDim2.new(2, 0, 1.2, 0)
  53. txt.StudsOffset = Vector3.new(-5, 3, 0)
  54. local text = Instance.new("TextLabel", txt)
  55. text.Size = UDim2.new(6, 0, 1, 0)
  56. text.FontSize = "Size8"
  57. text.TextScaled = true
  58. text.TextTransparency = 0
  59. text.BackgroundTransparency = 1
  60. text.TextTransparency = 0
  61. text.TextStrokeTransparency = 0
  62. text.Font = "Cartoon"
  63. text.TextStrokeColor3 = Color3.new(0, 1, 0)
  64. v = Instance.new("Part")
  65. v.Name = "ColorBrick"
  66. v.Parent = part
  67. v.FormFactor = "Symmetric"
  68. v.Anchored = true
  69. v.CanCollide = false
  70. v.BottomSurface = "Smooth"
  71. v.TopSurface = "Smooth"
  72. v.Size = Vector3.new(10, 5, 3)
  73. v.Transparency = 0.7
  74. v.BrickColor = game.Players.LocalPlayer.Character.Torso.BrickColor
  75. v.Transparency = 1
  76. text.TextColor3 = v.BrickColor.Color
  77. text.TextStrokeColor3 = Color3.new(0, 0, 0)
  78. v.Shape = "Block"
  79. text.Text = "You have some nerve coming to me Abuser."
  80. wait(2)
  81. text.Text = "You know...."
  82. wait(3)
  83. text.Text = "You have been causing trouble...."
  84. wait(3)
  85. text.Text = "And i wont accept that."
  86. wait(3)
  87. text.Text = game.Players.LocalPlayer.Character.Name.." the Abuser,s Bane of Existance"
  88.  
  89.  
  90. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  91.     local NEWMESH = IT(MESH)
  92.     if MESH == "SpecialMesh" then
  93.         NEWMESH.MeshType = MESHTYPE
  94.         if MESHID ~= "nil" and MESHID ~= "" then
  95.             NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  96.         end
  97.         if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  98.             NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  99.         end
  100.     end
  101.     NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  102.     NEWMESH.Scale = Vector3.new(50, 50, 50)
  103.     NEWMESH.Parent = PARENT
  104.     return NEWMESH
  105. end
  106.  
  107. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  108.     local NEWPART = IT("Part")
  109.     NEWPART.formFactor = FORMFACTOR
  110.     NEWPART.Reflectance = REFLECTANCE
  111.     NEWPART.Transparency = TRANSPARENCY
  112.     NEWPART.CanCollide = false
  113.     NEWPART.Locked = true
  114.     NEWPART.Anchored = true
  115.     if ANCHOR == false then
  116.         NEWPART.Anchored = false
  117.     end
  118.     NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  119.     NEWPART.Name = NAME
  120.     NEWPART.Size = Vector3.new(1, 1, 1)
  121.     NEWPART.Position = Torso.Position
  122.     NEWPART.Material = MATERIAL
  123.     NEWPART:BreakJoints()
  124.     NEWPART.Parent = PARENT
  125.     return NEWPART
  126. end
  127.  
  128. --//=================================\\
  129. --||          CUSTOMIZATION
  130. --\\=================================//
  131.  
  132. Player_Size = 1 --Size of the player.
  133. Animation_Speed = 3
  134. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  135.  
  136. local Speed = 32
  137. local Effects2 = {}
  138.  
  139. --//=================================\\
  140. --||      END OF CUSTOMIZATION
  141. --\\=================================//
  142.  
  143.     local function weldBetween(a, b)
  144.         local weldd = Instance.new("ManualWeld")
  145.         weldd.Part0 = a
  146.         weldd.Part1 = b
  147.         weldd.C0 = CFrame.new()
  148.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  149.         weldd.Parent = a
  150.         return weldd
  151.     end
  152.  
  153. function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
  154. local acs = Instance.new("Part")
  155. acs.CanCollide = false
  156. acs.Anchored = false
  157. acs.Size = Vector3.new(0,0,0)
  158. acs.CFrame = attachmentpart.CFrame
  159. acs.Parent = Character
  160. acs.BrickColor = color
  161.     local meshs = Instance.new("SpecialMesh")
  162.     meshs.MeshId = mesh
  163.     meshs.TextureId = texture
  164.     meshs.Parent = acs
  165.     meshs.Scale = scale
  166.     meshs.Offset = offset
  167. weldBetween(attachmentpart,acs)
  168. end
  169.  
  170. function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
  171. if TYPE == "Gem" then
  172.     local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  173.     acs.Anchored = false
  174.     acs.CanCollide = false
  175.     acs.CFrame = PART.CFrame
  176.     local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
  177. weldBetween(PART,acs)
  178. elseif TYPE == "Skull" then
  179.     local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
  180.     acs.Anchored = false
  181.     acs.CanCollide = false
  182.     acs.CFrame = PART.CFrame
  183.     local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
  184. weldBetween(PART,acs)
  185. elseif TYPE == "Eye" then
  186.     local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0))
  187.     acs.Anchored = false
  188.     acs.CanCollide = false
  189.     acs.CFrame = PART.CFrame
  190.     local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
  191. weldBetween(PART,acs)
  192. end
  193. end
  194.  
  195. --//=================================\\
  196. --||          USEFUL VALUES
  197. --\\=================================//
  198.  
  199. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  200. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  201. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  202. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  203. local CHANGEDEFENSE = 0
  204. local CHANGEDAMAGE = 0
  205. local CHANGEMOVEMENT = 0
  206. local ANIM = "Idle"
  207. local ATTACK = false
  208. local EQUIPPED = false
  209. local HOLD = false
  210. local COMBO = 1
  211. local Rooted = false
  212. local SINE = 0
  213. local KEYHOLD = false
  214. local CHANGE = 2 / Animation_Speed
  215. local WALKINGANIM = false
  216. local WALK = 0
  217. local VALUE1 = false
  218. local HITFLOOR = nil
  219. local VALUE2 = false
  220. local ROBLOXIDLEANIMATION = IT("Animation")
  221. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  222. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  223. --ROBLOXIDLEANIMATION.Parent = Humanoid
  224. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  225. WEAPONGUI.Name = "Weapon GUI"
  226. local Weapon = IT("Model")
  227. Weapon.Name = "Adds"
  228. local Delete = IT("Model",Character)
  229. Delete.Name = "Banlist"
  230. local Effects = IT("Folder", Weapon)
  231. Effects.Name = "Effects"
  232. local ANIMATOR = Humanoid.Animator
  233. local ANIMATE = Character.Animate
  234. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  235. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  236. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  237. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  238. local UNANCHOR = true
  239.  
  240. local SKILLTEXTCOLOR = C3(0,0,0)
  241.  
  242. --//=================================\\
  243. --\\=================================//
  244.  
  245.  
  246. --//=================================\\
  247. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  248. --\\=================================//
  249.  
  250. ArtificialHB = Instance.new("BindableEvent", script)
  251. ArtificialHB.Name = "ArtificialHB"
  252.  
  253. script:WaitForChild("ArtificialHB")
  254.  
  255. frame = Frame_Speed
  256. tf = 0
  257. allowframeloss = false
  258. tossremainder = false
  259. lastframe = tick()
  260. script.ArtificialHB:Fire()
  261.  
  262. game:GetService("RunService").Heartbeat:connect(function(s, p)
  263.     tf = tf + s
  264.     if tf >= frame then
  265.         if allowframeloss then
  266.             script.ArtificialHB:Fire()
  267.             lastframe = tick()
  268.         else
  269.             for i = 1, math.floor(tf / frame) do
  270.                 script.ArtificialHB:Fire()
  271.             end
  272.         lastframe = tick()
  273.         end
  274.         if tossremainder then
  275.             tf = 0
  276.         else
  277.             tf = tf - frame * math.floor(tf / frame)
  278.         end
  279.     end
  280. end)
  281.  
  282. --//=================================\\
  283. --\\=================================//
  284.  
  285.  
  286.  
  287.  
  288.  
  289. --//=================================\\
  290. --||          SOME FUNCTIONS
  291. --\\=================================//
  292.  
  293. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  294.     return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  295. end
  296.  
  297. function PositiveAngle(NUMBER)
  298.     if NUMBER >= 0 then
  299.         NUMBER = 0
  300.     end
  301.     return NUMBER
  302. end
  303.  
  304. function NegativeAngle(NUMBER)
  305.     if NUMBER <= 0 then
  306.         NUMBER = 0
  307.     end
  308.     return NUMBER
  309. end
  310.  
  311. function Swait(NUMBER)
  312.     if NUMBER == 0 or NUMBER == nil then
  313.         ArtificialHB.Event:wait()
  314.     else
  315.         for i = 1, NUMBER do
  316.             ArtificialHB.Event:wait()
  317.         end
  318.     end
  319. end
  320.  
  321. function QuaternionFromCFrame(cf)
  322.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  323.     local trace = m00 + m11 + m22
  324.     if trace > 0 then
  325.         local s = math.sqrt(1 + trace)
  326.         local recip = 0.5 / s
  327.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  328.     else
  329.         local i = 0
  330.         if m11 > m00 then
  331.             i = 1
  332.         end
  333.         if m22 > (i == 0 and m00 or m11) then
  334.             i = 2
  335.         end
  336.         if i == 0 then
  337.             local s = math.sqrt(m00 - m11 - m22 + 1)
  338.             local recip = 0.5 / s
  339.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  340.         elseif i == 1 then
  341.             local s = math.sqrt(m11 - m22 - m00 + 1)
  342.             local recip = 0.5 / s
  343.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  344.         elseif i == 2 then
  345.             local s = math.sqrt(m22 - m00 - m11 + 1)
  346.             local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  347.         end
  348.     end
  349. end
  350.  
  351. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  352.     local xs, ys, zs = x + x, y + y, z + z
  353.     local wx, wy, wz = w * xs, w * ys, w * zs
  354.     local xx = x * xs
  355.     local xy = x * ys
  356.     local xz = x * zs
  357.     local yy = y * ys
  358.     local yz = y * zs
  359.     local zz = z * zs
  360.     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))
  361. end
  362.  
  363. function QuaternionSlerp(a, b, t)
  364.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  365.     local startInterp, finishInterp;
  366.     if cosTheta >= 0.0001 then
  367.         if (1 - cosTheta) > 0.0001 then
  368.             local theta = ACOS(cosTheta)
  369.             local invSinTheta = 1 / SIN(theta)
  370.             startInterp = SIN((1 - t) * theta) * invSinTheta
  371.             finishInterp = SIN(t * theta) * invSinTheta
  372.         else
  373.             startInterp = 1 - t
  374.             finishInterp = t
  375.         end
  376.     else
  377.         if (1 + cosTheta) > 0.0001 then
  378.             local theta = ACOS(-cosTheta)
  379.             local invSinTheta = 1 / SIN(theta)
  380.             startInterp = SIN((t - 1) * theta) * invSinTheta
  381.             finishInterp = SIN(t * theta) * invSinTheta
  382.         else
  383.             startInterp = t - 1
  384.             finishInterp = t
  385.         end
  386.     end
  387.     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
  388. end
  389.  
  390. function Clerp(a, b, t)
  391.     local qa = {QuaternionFromCFrame(a)}
  392.     local qb = {QuaternionFromCFrame(b)}
  393.     local ax, ay, az = a.x, a.y, a.z
  394.     local bx, by, bz = b.x, b.y, b.z
  395.     local _t = 1 - t
  396.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  397. end
  398.  
  399. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  400.     local frame = IT("Frame")
  401.     frame.BackgroundTransparency = TRANSPARENCY
  402.     frame.BorderSizePixel = BORDERSIZEPIXEL
  403.     frame.Position = POSITION
  404.     frame.Size = SIZE
  405.     frame.BackgroundColor3 = COLOR
  406.     frame.BorderColor3 = BORDERCOLOR
  407.     frame.Name = NAME
  408.     frame.Parent = PARENT
  409.     return frame
  410. end
  411.  
  412. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  413.     local label = IT("TextLabel")
  414.     label.BackgroundTransparency = 1
  415.     label.Size = UD2(1, 0, 1, 0)
  416.     label.Position = UD2(0, 0, 0, 0)
  417.     label.TextColor3 = TEXTCOLOR
  418.     label.TextStrokeTransparency = STROKETRANSPARENCY
  419.     label.TextTransparency = TRANSPARENCY
  420.     label.FontSize = TEXTFONTSIZE
  421.     label.Font = TEXTFONT
  422.     label.BorderSizePixel = BORDERSIZEPIXEL
  423.     label.TextScaled = false
  424.     label.Text = TEXT
  425.     label.Name = NAME
  426.     label.Parent = PARENT
  427.     return label
  428. end
  429.  
  430. function NoOutlines(PART)
  431.     PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  432. end
  433.  
  434.  
  435. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  436.     local NEWWELD = IT(TYPE)
  437.     NEWWELD.Part0 = PART0
  438.     NEWWELD.Part1 = PART1
  439.     NEWWELD.C0 = C0
  440.     NEWWELD.C1 = C1
  441.     NEWWELD.Parent = PARENT
  442.     return NEWWELD
  443. end
  444.  
  445. local SOUND = IT("Sound",nil)
  446.  
  447. function CreateSound(ID, PARENT, VOLUME, PITCH)
  448.     local NEWSOUND = nil
  449.     coroutine.resume(coroutine.create(function()
  450.         NEWSOUND = SOUND:Clone()
  451.         NEWSOUND.Parent = PARENT
  452.         NEWSOUND.Volume = VOLUME
  453.         NEWSOUND.Pitch = PITCH
  454.         NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  455.         Swait()
  456.         NEWSOUND:play()
  457.         game:GetService("Debris"):AddItem(NEWSOUND, 10)
  458.     end))
  459.     return NEWSOUND
  460. end
  461.  
  462. function CFrameFromTopBack(at, top, back)
  463.     local right = top:Cross(back)
  464.     return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  465. end
  466.  
  467. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  468.     local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  469.     local mesh = IT("SpecialMesh",wave)
  470.     mesh.MeshType = "FileMesh"
  471.     mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  472.     mesh.Scale = Vector3.new(100, 100, 100)
  473.     mesh.Offset = VT(0,0,-SIZE.X/8)
  474.     wave.CFrame = CFRAME
  475.     coroutine.resume(coroutine.create(function(PART)
  476.         for i = 1, WAIT do
  477.             Swait()
  478.             mesh.Scale = mesh.Scale + GROW
  479.             mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  480.             if DOESROT == true then
  481.                 wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  482.             end
  483.             wave.Transparency = wave.Transparency + (0.5/WAIT)
  484.             if wave.Transparency > 0.99 then
  485.                 wave:remove()
  486.             end
  487.         end
  488.     end))
  489. end
  490.  
  491. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  492.     local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  493.     local mesh = IT("SpecialMesh",wave)
  494.     mesh.MeshType = "Sphere"
  495.     mesh.Scale = Vector3.new(100, 100, 100)
  496.     mesh.Offset = VT(0,0,0)
  497.     wave.CFrame = CFRAME
  498.     coroutine.resume(coroutine.create(function(PART)
  499.         for i = 1, WAIT do
  500.             Swait()
  501.             mesh.Scale = mesh.Scale + GROW
  502.             wave.Transparency = wave.Transparency + (1/WAIT)
  503.             if wave.Transparency > 0.99 then
  504.                 wave:remove()
  505.             end
  506.         end
  507.     end))
  508. end
  509.  
  510. function MakeForm(PART,TYPE)
  511.     if TYPE == "Cyl" then
  512.         local MSH = IT("CylinderMesh",PART)
  513.     elseif TYPE == "Ball" then
  514.         local MSH = IT("SpecialMesh",PART)
  515.         MSH.MeshType = "Sphere"
  516.     elseif TYPE == "Wedge" then
  517.         local MSH = IT("SpecialMesh",PART)
  518.         MSH.MeshType = "Wedge"
  519.     end
  520. end
  521.  
  522. function CheckTableForString(Table, String)
  523.     for i, v in pairs(Table) do
  524.         if string.find(string.lower(String), string.lower(v)) then
  525.             return true
  526.         end
  527.     end
  528.     return false
  529. end
  530.  
  531. function CheckIntangible(Hit)
  532.     local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  533.     if Hit and Hit.Parent then
  534.         if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  535.             return true
  536.         end
  537.     end
  538.     return false
  539. end
  540.  
  541. Debris = game:GetService("Debris")
  542.  
  543. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  544.     local Direction = CFrame.new(StartPos, Vec).lookVector
  545.     local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  546.     local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  547.     if RayHit and CheckIntangible(RayHit) then
  548.         if DelayIfHit then
  549.             wait()
  550.         end
  551.         RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  552.     end
  553.     return RayHit, RayPos, RayNormal
  554. end
  555.  
  556. function turnto(position)
  557.     RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  558. end
  559.  
  560. --//=================================\\
  561. --||         WEAPON CREATION
  562. --\\=================================//
  563.  
  564. local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0, 0, 0),false)
  565. local HandleMesh = CreateMesh("SpecialMesh", HandlePart, "FileMesh", "10604848", "10605252", VT(1,1,1), VT(0, 2.7, 0))
  566. local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0,-0.8,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), CF(0, 0, 0))
  567.  
  568. for _, c in pairs(Weapon:GetChildren()) do
  569.     if c.ClassName == "Part" then
  570.         c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  571.     end
  572. end
  573.  
  574. Weapon.Parent = Character
  575.  
  576. Humanoid.Died:connect(function()
  577.     ATTACK = true
  578. end)
  579.  
  580. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  581. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  582.  
  583. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[CLICK+HOLD] Demonic Banish", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 1")
  584. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Suprise", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 2")
  585. text.Text = "..."
  586. wait(2)
  587. text.Text = "ITS TOO HEAVY!"
  588. wait(2)
  589. text.Text = "Help!"
  590. wait(2)
  591. text.Text = "GAAAHHHHH!!!!!!!!!"
  592. sick.SoundId = "rbxassetid://1843033650"
  593. sick:Play()
  594. wait(26)
  595. text.Text = "im....seeing stars....."
  596. wait(10)
  597. text.Text = "Help....please....."
  598. wait(10)
  599. game.Players.LocalPlayer.Character.Humanoid.Health = 0
  600. warn "Seems you died."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement