Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created by XanthicDragon
- local Players = game:GetService("Players")
- local Player = Players.LocalPlayer
- local Character = nil
- local damage = 0
- repeat
- wait()
- Character = Player.Character
- until Character ~= nil
- --Getting into the 'technical' stuff--
- function FindFirstClass(par, cls) --Finds a classname and returns that object.
- for _,v in ipairs(par:GetChildren()) do
- if v:IsA(cls) then
- return v
- end
- end
- return nil
- end
- local Human = FindFirstClass(Character, "Humanoid") --Call the FindFirstClass function, checking the Character for a Human
- if not Human then
- print("Humanoid instance not found in Character! Checking again...")
- wait(1)
- local Human = FindFirstClass(Character, "Humanoid")
- if not Human then
- print("Human still not located. Stopping code.")
- return
- end
- end
- function CreatePart()
- local SpecialMesh1 = Instance.new("SpecialMesh")
- local Part2 = Instance.new("Part")
- local SpecialMesh3 = Instance.new("SpecialMesh")
- Part0.Name = "BlastRing"
- Part0.Parent = Player.Character
- Part0.BrickColor = BrickColor.new("Dark orange")
- Part0.Transparency = 0.40000000596046
- Part0.Rotation = Vector3.new(0, 90, 0)
- Part0.Anchored = true
- Part0.CanCollide = false
- Part0.Size = Vector3.new(1, 1.20000005, 1)
- Part0.CFrame = CFrame.new(8.78331757, 456.780121, -49.041584, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part0.Position = Vector3.new(8.78331757, 456.780121, -49.041584)
- Part0.Orientation = Vector3.new(0, 90, 0)
- Part0.Color = Color3.new(0.627451, 0.372549, 0.207843)
- SpecialMesh1.Name = "BlastMesh"
- SpecialMesh1.Parent = Part0
- SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
- SpecialMesh1.Scale = Vector3.new(3.19999981, 1.4000001, 3.19999981)
- SpecialMesh1.MeshType = Enum.MeshType.FileMesh
- SpecialMesh1.Scale = Vector3.new(3.19999981, 1.4000001, 3.19999981)
- Part2.Name = "BlastRing"
- Part2.Parent = Player.Character
- Part2.BrickColor = BrickColor.new("Dark orange")
- Part2.Transparency = 0.30000001192093
- Part2.Rotation = Vector3.new(0, 54, 0)
- Part2.Anchored = true
- Part2.CanCollide = false
- Part2.Size = Vector3.new(1, 1.20000005, 1)
- Part2.CFrame = CFrame.new(8.78331757, 456.780121, -49.041584, 0.587785304, 0, 0.809017062, 0, 1, 0, -0.809017062, 0, 0.587785304)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.Color = Color3.new(0.627451, 0.372549, 0.207843)
- Part2.Position = Vector3.new(8.78331757, 456.780121, -49.041584)
- Part2.Orientation = Vector3.new(0, 54, 0)
- Part2.Color = Color3.new(0.627451, 0.372549, 0.207843)
- SpecialMesh3.Name = "BlastMesh"
- SpecialMesh3.Parent = Part2
- SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=20329976"
- SpecialMesh3.Scale = Vector3.new(2.89999986, 1.30000007, 2.89999986)
- SpecialMesh3.MeshType = Enum.MeshType.FileMesh
- SpecialMesh3.Scale = Vector3.new(2.89999986, 1.30000007, 2.89999986)
- for n = 1,12 do
- Part2.Size = Part2.Size + Vector3.new(1,1,1)
- Part0.Size = Part0.Size + Vector3.new(0.7,0.7,0.7)
- Part2.Transparency = Part2.Transparency + 0.02
- Part0.Transparency = Part0.Transparency + 0.01
- Part2.Position = Player.Character.Torso.Position
- Part0.Position = Part2.Position
- wait(0.00)
- end
- Part2:Destroy()
- Part0:Destroy()
- end
- while wait() do
- Torso = Character:WaitForChild("Torso")
- if Torso.Velocity.Magnitude > 75 then --Farily simple. Check if we're going faster than 75 units, and add to damage.
- damage = damage + 9 * 0.31--Real amount of fall damege a human would take if he fall off a something
- else
- Part0 = Instance.new("Part")
- Human:TakeDamage(damage)
- damage = 0
- Humanoid = game.Players.LocalPlayer.Character.Humanoid
- Humanoid.HealthChanged:connect(CreatePart)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement