Advertisement
tomonaoboys

useless idks

Dec 29th, 2017
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.87 KB | None | 0 0
  1. --WARNING : This script doesn't allow to attack and become godmode. this string makes you creating / editing scripts easily bit.
  2.  
  3. if 1 then --Engine ? anyway by tomonaoboys maybe
  4. PierceForceField = false E_MainColor=Color3.fromRGB(127,127,127)
  5. local AutomaticRegen=false local HealthRValue=.02
  6. local Players=game:GetService("Players")
  7. local ply=Players.LocalPlayer
  8. local chr=ply.Character
  9. local humanoid=chr:FindFirstChildOfClass("Humanoid")
  10. local DVal=Instance.new("NumberValue",humanoid)DVal.Name="Defense"
  11. local Defense=1
  12. local Mouse=ply:GetMouse()
  13. local rs=game:GetService("RunService").RenderStepped
  14. local DCoolDowns={}local Debri=function(itm,t)game:GetService("Debris"):AddItem(itm,t)end
  15. function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
  16. function tDamage(CF,Range,Dam,DRand,DC,K,KH,Guide)--CFrame or Part , Range , Damage , DCoolDown , Knockback , Knockback Hold ,Knockback Guide
  17.     if typeof(CF)=="Instance"then CF=CF.CFrame end
  18.     local FinalD=math.random(Dam-DRand,Dam+DRand)
  19.     for i,m in pairs(workspace:GetChildren())do
  20.         if m:IsA("Model")and m~=chr then
  21.             local DCFlg=false
  22.             for i=1,#DCoolDowns do
  23.                 if DCoolDowns[i].Model==m then DCFlg=true end
  24.             end
  25.             if m:FindFirstChild("HumanoidRootPart")and not DCFlg then
  26.                 local hp=m.HumanoidRootPart
  27.                 if m:FindFirstChildOfClass("Humanoid")and(CF.p-hp.CFrame.p).magnitude<=Range then
  28.                     local hum=m:FindFirstChildOfClass("Humanoid")local Guard=false
  29.                     if hum:FindFirstChild("Defense")then if hum.Defense:IsA("NumberValue")then
  30.                         FinalD=math.ceil(FinalD/(hum.Defense.Value/5+.8))
  31.                     end end FinalD=FinalD+math.random(0,1)
  32.                     if m:FindFirstChildOfClass("ForceField")and not PierceForceField then
  33.                         Guard=true
  34.                     end
  35.                     if not Guard then hum.Health=hum.Health-FinalD end
  36.                     if DC~=nil then table.insert(DCoolDowns,{Model=m,Time=DC})end
  37.                     if hum.Health~=0 then if K then
  38.                         if KH==nil then KH=1/2 end
  39.                         if Guide then
  40.                             local j=Instance.new("BodyVelocity",hp)j.MaxForce=Vector3.new(100,100,100)*10000
  41.                             j.Velocity=CFrame.new(hp.CFrame.p,CF.p).lookVector*K
  42.                             Debri(j,KH)
  43.                         else
  44.                             local j=Instance.new("BodyVelocity",hp)j.MaxForce=Vector3.new(100,100,100)*10000
  45.                             j.Velocity=K
  46.                             Debri(j,KH)
  47.                         end
  48.                     end end
  49.                     local dp=Instance.new("Part",workspace)dp.Transparency=1 dp.CanCollide=false dp.Anchored=true dp.Size=Vector3.new()dp.CFrame=hp.CFrame
  50.                     local b=Instance.new("BillboardGui",dp)b.Size=UDim2.new(100,0,2,0)b.AlwaysOnTop=true b.MaxDistance=100
  51.                     local d=Instance.new("TextLabel",b)d.Size=UDim2.new(1,0,1,0)d.TextScaled=true d.BackgroundTransparency=1 d.TextStrokeTransparency=0
  52.                     if not Guard then d.TextColor3=Color3.new(1,1,1)d.Text=tostring(FinalD)else d.TextColor3=Color3.new(.4,.7,1)d.Text="Guard"end
  53.                     spawn(function()local j=Instance.new("BodyVelocity",dp)j.MaxForce=Vector3.new(1/0,1/0,1/0)
  54.                         for i=1,50 do
  55.                             if dp.Parent then dp.Anchored=true
  56.                             if i<25 then
  57.                                 dp.CFrame=dp.CFrame+Vector3.new(0,.1,0)
  58.                             else
  59.                                 d.TextTransparency=i/25-1
  60.                                 d.TextStrokeTransparency=i/25-1
  61.                             end
  62.                             sw()
  63.                             end
  64.                         end dp:Destroy()
  65.                     end)
  66.                 end
  67.             end
  68.         end
  69.     end
  70. end
  71. spawn(function()if chr:FindFirstChild("Health")then chr.Health:Destroy()end
  72. local hs=Instance.new("ScreenGui",ply:FindFirstChildOfClass("PlayerGui"))
  73. local HFrame=Instance.new("Frame",hs)HFrame.Position=UDim2.new(.4,0,.8,0)HFrame.Size=UDim2.new(.2,0,.03,0)HFrame.BackgroundTransparency=.5
  74. HFrame.BackgroundColor3=Color3.new()HFrame.BorderSizePixel=0
  75. local HPBar1=Instance.new("TextLabel",HFrame)HPBar1.Size=UDim2.new(1,0,1,0)HPBar1.Text=" Health"HPBar1.TextStrokeTransparency=0
  76. HPBar1.TextScaled=true HPBar1.TextXAlignment="Left"HPBar1.TextColor3=Color3.new(.5,1,.5)HPBar1.BackgroundTransparency=1 HPBar1.ZIndex=3
  77. local HPBar2=Instance.new("Frame",HFrame)HPBar2.Size=UDim2.new(1,0,1,0)HPBar2.BorderSizePixel=0 HPBar2.BackgroundColor3=Color3.new(0,1,0)HPBar2.ZIndex=2
  78. local HPBar3=Instance.new("Frame",HFrame)HPBar3.Size=UDim2.new(1,0,1,0)HPBar3.BorderSizePixel=0 HPBar3.BackgroundColor3=Color3.new(1,0,0)HPBar3.ZIndex=1
  79. HPBar3.BackgroundTransparency=.5 local AR=0
  80. local wst=Instance.new("TextLabel",hs)wst.Size=UDim2.new(.09,0,.03,0)wst.Text="WalkSpeed 0"wst.Position=UDim2.new(.91,0,.4,0)wst.BackgroundColor3=E_MainColor wst.TextStrokeTransparency=0 wst.TextColor3=Color3.new(1,1,1)
  81. wst.BorderSizePixel=0 wst.BackgroundTransparency=.5 wst.Font="ArialBold"wst.TextScaled=1
  82. local dft=Instance.new("TextLabel",hs)dft.Size=UDim2.new(.09,0,.03,0)dft.Text="Defense   0"dft.Position=UDim2.new(.91,0,.368,0)dft.BackgroundColor3=E_MainColor dft.TextStrokeTransparency=0 dft.TextColor3=Color3.new(1,1,1)
  83. dft.BorderSizePixel=0 dft.BackgroundTransparency=.5 dft.Font="ArialBold"dft.TextScaled=1
  84. while sw()do
  85.     if AutomaticRegen and humanoid.Health<0 then
  86.         humanoid.Health=humanoid.Health+HealthRValue
  87.     end
  88.     for i=1,#DCoolDowns do
  89.         if DCoolDowns[i]~=nil then
  90.             if DCoolDowns[i].Model.Parent then
  91.                 if DCoolDowns[i].Time>0 then
  92.                     DCoolDowns[i].Time=DCoolDowns[i].Time-1
  93.                 else
  94.                     table.remove(DCoolDowns,i)
  95.                 end
  96.             else
  97.                 table.remove(DCoolDowns,i)
  98.             end
  99.         end
  100.     end
  101.     --HPScreen
  102.     if hs.Parent then
  103.         HPBar2.Size=UDim2.new(humanoid.Health/humanoid.MaxHealth,0,1,0)
  104.         HPBar3.Size=UDim2.new(HPBar3.Size.X.Scale*(1-.1)+(HPBar2.Size.X.Scale*.1),0,1,0)
  105.         HPBar1.Text=" Health "..tostring(math.floor(humanoid.Health*10)/10).."/"..tostring(math.floor(humanoid.MaxHealth))
  106.         wst.Text="WalkSpeed "..tostring(humanoid.WalkSpeed)
  107.         dft.Text="Defense   "..tostring(Defense)
  108.     end
  109. end
  110. end)
  111. end
  112. --Global Functions that can use easily
  113. --tDamage ( CFrame or Part , Range , Damage , Damage Randomize , DCoolDown , Knockback , Knockback Hold ,Knockback Guide )magnitudedamagelol but has idk
  114. --sw ( number ) this function can use like wait() because it has true returning. if think easily, just small version of swait lol
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement