Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local HRP = player.Character.HumanoidRootPart
- local mastery = player.Data.QuirkMastery.Value
- game:GetService('RunService').Stepped:connect(function()
- player.Character.Humanoid:ChangeState(11)
- end)
- while wait() do
- for i,v in pairs(workspace.Mobs:GetChildren()) do
- if v.ClassName == "Model" and v:FindFirstChild("HumanoidRootPart") then
- HRP.CFrame=v.HumanoidRootPart.CFrame+Vector3.new(0,-10,0)
- game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "z", player, player.Character, v.HumanoidRootPart, "CF")
- if mastery <= 25 and mastery > 49 then
- game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "x", player, player.Character, v.HumanoidRootPart, Vector3.new(v.HumanoidRootPart.Position))
- end
- if mastery <= 50 and mastery > 99 then
- game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "x", player, player.Character, v.HumanoidRootPart, Vector3.new(v.HumanoidRootPart.Position))
- game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "c", player, player.Character, v.HumanoidRootPart, Vector3.new(v.HumanoidRootPart.Position))
- end
- if mastery == 100 then
- game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "x", player, player.Character, v.HumanoidRootPart, Vector3.new(v.HumanoidRootPart.Position))
- game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "c", player, player.Character, v.HumanoidRootPart, Vector3.new(v.HumanoidRootPart.Position))
- game:GetService("ReplicatedStorage").Remotes.Damage:FireServer(player.Data.Quirk.Value, "v", player, player.Character, v.HumanoidRootPart, Vector3.new(v.HumanoidRootPart.Position))
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment