Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made by Qsenko
- local player = game.Players.LocalPlayer
- local part = game.ReplicatedStorage.DragonLevelHitBox:WaitForChild("HellPathHitBox")
- local debounce = true
- local plrs = {}
- local HellPath = part:Clone()
- HellPath.Parent = game.Workspace
- HellPath.Name = "HellPathHitBox"
- HellPath.CFrame = CFrame.new(-941.062, 207.249, -623.244) * CFrame.Angles(math.rad(0),math.rad(-6),math.rad(0))
- local FirstDragonBreathSoundEffect = player.PlayerGui:WaitForChild("LocalSounds").FirstDragonRoar
- local DragonBreathSoundEffect = player.PlayerGui:WaitForChild("LocalSounds").DragonBreath
- local Dragon = game.ReplicatedStorage.DragonLevelHitBox:WaitForChild("RealisticEnderDragon"):Clone()
- Dragon.Parent = game.Workspace
- Dragon.Name = "RealisticEnderDragon"
- local AnimationController = Dragon:FindFirstChild("AnimationController")
- local animator = AnimationController:FindFirstChildOfClass("Animator")
- local Animation = AnimationController:FindFirstChild("Animation")
- local DragonanimationTrack = animator:LoadAnimation(Animation)
- local Miner = game.ReplicatedStorage.DragonLevelHitBox:WaitForChild("TheMiner"):Clone()
- Miner.Parent = game.Workspace
- Miner.Name = "Miner"
- local MinerHumanoid = Miner:FindFirstChild("Humanoid")
- local MinerSound = Miner.Head:FindFirstChild("Scream")
- local MinerAnimator = MinerHumanoid:FindFirstChild("Animator")
- local MinerAnimation = Miner:FindFirstChild("Animation")
- local MinerAnimTrack = MinerAnimator:LoadAnimation(MinerAnimation)
- HellPath.Touched:Connect(function(onTouched)
- if player then
- if onTouched.Parent:FindFirstChild("Humanoid") and debounce then
- debounce = false
- local players = game.Players:GetChildren()
- for i = 1,#players do
- if players[i].Name ~= player.Name then
- table.insert(plrs,workspace[players[i].Name])
- end
- end
- for i = 1,#plrs do
- plrs[i].Parent = nil
- end
- onTouched.Parent:FindFirstChild("Humanoid").WalkSpeed = 0
- onTouched.Parent:FindFirstChild("Humanoid").JumpHeight = 0
- DragonanimationTrack:Play()
- MinerAnimTrack:Play()
- wait(5)
- onTouched.Parent:FindFirstChild("Humanoid").WalkSpeed = 16
- onTouched.Parent:FindFirstChild("Humanoid").JumpHeight = 7.2
- wait(21.04)
- for i = 1,#plrs do
- plrs[i].Parent = workspace
- end
- plrs = {}
- debounce = true
- end
- end
- end)
- local function MinerVisible()
- Miner.Head.Transparency = 0
- Miner["Left Arm"].Transparency = 0
- Miner["Left Leg"].Transparency = 0
- Miner.Pickaxe.Transparency = 0
- Miner["Right Arm"].Transparency = 0
- Miner["Right Leg"].Transparency = 0
- Miner.Torso.Transparency = 0
- Miner.Head.Hat.Transparency = 0
- end
- local function MinerTransparent()
- Miner.Head.Transparency = 1
- Miner["Left Arm"].Transparency = 1
- Miner["Left Leg"].Transparency = 1
- Miner.Pickaxe.Transparency = 1
- Miner["Right Arm"].Transparency = 1
- Miner["Right Leg"].Transparency = 1
- Miner.Torso.Transparency = 1
- Miner.Head.Hat.Transparency = 1
- end
- MinerAnimTrack:GetMarkerReachedSignal("MinerVisible"):Connect(function()
- Miner.Head.RunBilboard.SurfaceGui.Enabled = true
- Miner.Head["Scared face"].Transparency = 0
- MinerVisible()
- end)
- MinerAnimTrack:GetMarkerReachedSignal("MinerSoundPlay"):Connect(function()
- Miner.Head.Scream:Play()
- end)
- MinerAnimTrack:GetMarkerReachedSignal("GetTransparent"):Connect(function()
- Miner.Head.RunBilboard.SurfaceGui.Enabled = false
- Miner.Head["Scared face"].Transparency = 1
- MinerTransparent()
- end)
- local function DragonVisible()
- for i,v in pairs(Dragon.HumanoidRootPart:GetDescendants()) do
- if not v:IsA("Motor6D") and v.Name ~= "DragonBreathHitbox" and v.Name ~= "GroundLandEffect" and v.Name ~= "FireParticles" and v.Name ~= "FireParticles2" then
- if v:IsA("Part") or v:IsA("UnionOperation") then
- v.Transparency = 0
- end
- end
- end
- end
- local function DragonInvisible()
- for i,v in pairs(Dragon.HumanoidRootPart:GetDescendants()) do
- if v:IsA("Part") or v:IsA("UnionOperation") then
- v.Transparency = 1
- end
- end
- end
- DragonanimationTrack:GetMarkerReachedSignal("BecomeVisible"):Connect(function()
- DragonVisible()
- end)
- DragonanimationTrack:GetMarkerReachedSignal("GroundSlashLandEffect"):Connect(function()
- for i,v in pairs(Dragon.HumanoidRootPart:GetDescendants())do
- if v:IsA("BasePart") and v.Name == "GroundLandEffect" then
- v.Effect.Enabled = true
- wait(1)
- v.Effect.Enabled = false
- end
- end
- end)
- DragonanimationTrack:GetMarkerReachedSignal("FirstFireBreath"):Connect(function()
- for i,v in pairs(Dragon.HumanoidRootPart:GetDescendants()) do
- if v:IsA("Part") and v.Name == "FireParticles" then
- v.Fire.Enabled = true
- FirstDragonBreathSoundEffect:Play()
- end
- end
- end)
- DragonanimationTrack:GetMarkerReachedSignal("FirstFireBreathStop"):Connect(function()
- for i,v in pairs(Dragon.HumanoidRootPart:GetDescendants()) do
- if v:IsA("Part") and v.Name == "FireParticles" then
- v.Fire.Enabled = false
- v.Fire2.Enabled = false
- end
- end
- end)
- DragonanimationTrack:GetMarkerReachedSignal("Second FireBreath"):Connect(function()
- for i,v in pairs(Dragon.HumanoidRootPart:GetDescendants()) do
- if v:IsA("Part") and v.Name == "FireParticles" then
- v.MainFire.Enabled = true
- DragonBreathSoundEffect:Play()
- wait(1)
- v.Parent.FireParticles2.Fire.Enabled = true
- end
- end
- end)
- DragonanimationTrack:GetMarkerReachedSignal("Second FireBreathStop"):Connect(function()
- for i,v in pairs(Dragon.HumanoidRootPart:GetDescendants()) do
- if v:IsA("Part") and v.Name == "FireParticles" then
- v.MainFire.Enabled = false
- v.Fire2.Enabled = true
- v.Parent.FireParticles2.Fire.Enabled = false
- end
- end
- end)
- DragonanimationTrack:GetMarkerReachedSignal("FirstFireBreathStop"):Connect(function()
- for i,v in pairs(Dragon.HumanoidRootPart:GetDescendants()) do
- if v:IsA("Part") and v.Name == "FireParticles" then
- v.Fire2.Enabled = false
- end
- end
- end)
- DragonanimationTrack:GetMarkerReachedSignal("BecomeInvisible"):Connect(function()
- DragonInvisible()
- end)
- local DragonHitBox = Dragon
- local debounce2 = true
- for i,v in pairs(DragonHitBox:GetDescendants()) do
- -- print(v)
- if v:IsA("Part") and v.Name == "DragonBreathHitbox" then
- -- print(v)
- local DragonHitBox2 = v
- -- print(DragonHitBox2)
- DragonHitBox2.Touched:Connect(function(hit)
- if player then
- if hit.Parent:FindFirstChild("Humanoid") and debounce2 then
- debounce2 = false
- -- print("hi")
- hit.Parent.Humanoid.Health = nil
- wait(.1)
- debounce2 = true
- end
- end
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement