Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tipo = game.Workspace["Thug Quest LV. 1 - 30"]
- local quest = game.Workspace["Thug Quest LV. 1 - 30"].ClickDetector
- game.Players.LocalPlayer.Character.Humanoid.Health = 0
- function toTarget(pos, targetPos, targetCFrame)
- local tween_s = game:service"TweenService"
- local info = TweenInfo.new((targetPos - pos).Magnitude/75, Enum.EasingStyle.Quad)
- local tic_k = tick()
- local tween, err = pcall(function()
- local tween = tween_s:Create(game.Players.LocalPlayer.Character["HumanoidRootPart"], info, {CFrame = targetCFrame})
- tween:Play()
- end)
- if not tween then return err end
- end
- game.Players.LocalPlayer.CharacterAdded:Connect(function()
- game.Players.LocalPlayer.Character:WaitForChild("Humanoid")
- wait(3)
- if game.Players.LocalPlayer.PlayerGui:FindFirstChild("CoreGUI") then
- game.Players.LocalPlayer.PlayerGui.CoreGUI.Events.SummonStand:InvokeServer()
- end
- while wait()do
- pcall(function()
- if not game.Players.LocalPlayer.PlayerGui.Quest.Quest:FindFirstChild("Thug Quest") then
- repeat
- toTarget(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, tipo.HumanoidRootPart.Position, tipo.HumanoidRootPart.CFrame)
- fireclickdetector(quest)
- until game.Players.LocalPlayer.PlayerGui.Quest.Quest.ThugQuest
- end
- for i,v in pairs(game.Workspace:GetChildren())do
- if v.Name == "SpawnLocation" or v.Name == "Fist" or v.Name == "base" or v.Name == "light center" or v.Name == "fight" or v.Name == "FistBarrage" or v.Name == "Projectile" then
- v:Destroy()
- end
- end
- for i2,v2 in pairs(game.Workspace:GetChildren())do
- if v2.ClassName == "Model" and v2.Name == "Thug" and v2:FindFirstChild("HumanoidRootPart") then
- repeat
- wait()
- game.Players.LocalPlayer.PlayerGui.CoreGUI.Events.Punch:InvokeServer()
- game.Players.LocalPlayer.PlayerGui.CoreGUI.Events.Barrage:InvokeServer()
- game.Players.LocalPlayer.PlayerGui.CoreGUI.Events.Heavy:InvokeServer()
- toTarget(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, v2.HumanoidRootPart.Position, v2.HumanoidRootPart.CFrame)
- until v2.Humanoid.Health <= 0
- end
- end
- end)
- end
- end)
Add Comment
Please, Sign In to add comment