Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --WARNING : This script doesn't allow to attack and become godmode. this string makes you creating / editing scripts easily bit.
- if 1 then --Engine ? anyway by tomonaoboys maybe
- PierceForceField = false E_MainColor=Color3.fromRGB(127,127,127)
- local AutomaticRegen=false local HealthRValue=.02
- local Players=game:GetService("Players")
- local ply=Players.LocalPlayer
- local chr=ply.Character
- local humanoid=chr:FindFirstChildOfClass("Humanoid")
- local DVal=Instance.new("NumberValue",humanoid)DVal.Name="Defense"
- local Defense=1
- local Mouse=ply:GetMouse()
- local rs=game:GetService("RunService").RenderStepped
- local DCoolDowns={}local Debri=function(itm,t)game:GetService("Debris"):AddItem(itm,t)end
- function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
- function tDamage(CF,Range,Dam,DRand,DC,K,KH,Guide)--CFrame or Part , Range , Damage , DCoolDown , Knockback , Knockback Hold ,Knockback Guide
- if typeof(CF)=="Instance"then CF=CF.CFrame end
- local FinalD=math.random(Dam-DRand,Dam+DRand)
- for i,m in pairs(workspace:GetChildren())do
- if m:IsA("Model")and m~=chr then
- local DCFlg=false
- for i=1,#DCoolDowns do
- if DCoolDowns[i].Model==m then DCFlg=true end
- end
- if m:FindFirstChild("HumanoidRootPart")and not DCFlg then
- local hp=m.HumanoidRootPart
- if m:FindFirstChildOfClass("Humanoid")and(CF.p-hp.CFrame.p).magnitude<=Range then
- local hum=m:FindFirstChildOfClass("Humanoid")local Guard=false
- if hum:FindFirstChild("Defense")then if hum.Defense:IsA("NumberValue")then
- FinalD=math.ceil(FinalD/(hum.Defense.Value/5+.8))
- end end FinalD=FinalD+math.random(0,1)
- if m:FindFirstChildOfClass("ForceField")and not PierceForceField then
- Guard=true
- end
- if not Guard then hum.Health=hum.Health-FinalD end
- if DC~=nil then table.insert(DCoolDowns,{Model=m,Time=DC})end
- if hum.Health~=0 then if K then
- if KH==nil then KH=1/2 end
- if Guide then
- local j=Instance.new("BodyVelocity",hp)j.MaxForce=Vector3.new(100,100,100)*10000
- j.Velocity=CFrame.new(hp.CFrame.p,CF.p).lookVector*K
- Debri(j,KH)
- else
- local j=Instance.new("BodyVelocity",hp)j.MaxForce=Vector3.new(100,100,100)*10000
- j.Velocity=K
- Debri(j,KH)
- end
- end end
- local dp=Instance.new("Part",workspace)dp.Transparency=1 dp.CanCollide=false dp.Anchored=true dp.Size=Vector3.new()dp.CFrame=hp.CFrame
- local b=Instance.new("BillboardGui",dp)b.Size=UDim2.new(100,0,2,0)b.AlwaysOnTop=true b.MaxDistance=100
- local d=Instance.new("TextLabel",b)d.Size=UDim2.new(1,0,1,0)d.TextScaled=true d.BackgroundTransparency=1 d.TextStrokeTransparency=0
- 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
- spawn(function()local j=Instance.new("BodyVelocity",dp)j.MaxForce=Vector3.new(1/0,1/0,1/0)
- for i=1,50 do
- if dp.Parent then dp.Anchored=true
- if i<25 then
- dp.CFrame=dp.CFrame+Vector3.new(0,.1,0)
- else
- d.TextTransparency=i/25-1
- d.TextStrokeTransparency=i/25-1
- end
- sw()
- end
- end dp:Destroy()
- end)
- end
- end
- end
- end
- end
- spawn(function()if chr:FindFirstChild("Health")then chr.Health:Destroy()end
- local hs=Instance.new("ScreenGui",ply:FindFirstChildOfClass("PlayerGui"))
- 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
- HFrame.BackgroundColor3=Color3.new()HFrame.BorderSizePixel=0
- local HPBar1=Instance.new("TextLabel",HFrame)HPBar1.Size=UDim2.new(1,0,1,0)HPBar1.Text=" Health"HPBar1.TextStrokeTransparency=0
- HPBar1.TextScaled=true HPBar1.TextXAlignment="Left"HPBar1.TextColor3=Color3.new(.5,1,.5)HPBar1.BackgroundTransparency=1 HPBar1.ZIndex=3
- 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
- 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
- HPBar3.BackgroundTransparency=.5 local AR=0
- 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)
- wst.BorderSizePixel=0 wst.BackgroundTransparency=.5 wst.Font="ArialBold"wst.TextScaled=1
- 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)
- dft.BorderSizePixel=0 dft.BackgroundTransparency=.5 dft.Font="ArialBold"dft.TextScaled=1
- while sw()do
- if AutomaticRegen and humanoid.Health<0 then
- humanoid.Health=humanoid.Health+HealthRValue
- end
- for i=1,#DCoolDowns do
- if DCoolDowns[i]~=nil then
- if DCoolDowns[i].Model.Parent then
- if DCoolDowns[i].Time>0 then
- DCoolDowns[i].Time=DCoolDowns[i].Time-1
- else
- table.remove(DCoolDowns,i)
- end
- else
- table.remove(DCoolDowns,i)
- end
- end
- end
- --HPScreen
- if hs.Parent then
- HPBar2.Size=UDim2.new(humanoid.Health/humanoid.MaxHealth,0,1,0)
- HPBar3.Size=UDim2.new(HPBar3.Size.X.Scale*(1-.1)+(HPBar2.Size.X.Scale*.1),0,1,0)
- HPBar1.Text=" Health "..tostring(math.floor(humanoid.Health*10)/10).."/"..tostring(math.floor(humanoid.MaxHealth))
- wst.Text="WalkSpeed "..tostring(humanoid.WalkSpeed)
- dft.Text="Defense "..tostring(Defense)
- end
- end
- end)
- end
- --Global Functions that can use easily
- --tDamage ( CFrame or Part , Range , Damage , Damage Randomize , DCoolDown , Knockback , Knockback Hold ,Knockback Guide )magnitudedamagelol but has idk
- --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