Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mob = game:GetService("Workspace")["__THINGS"].Monsters
- local coin = game:GetService("Workspace")["__DEBRIS"]
- local PickUpEvent = game:GetService("Workspace")["__REMOTES"].Game["Redeem Drop"]
- local killEvent = game:GetService("Workspace")["__REMOTES"].Game["Mob Do Damage"]
- while wait(0.1) do
- for _,v in next, mob:GetChildren() do
- if v:FindFirstChild("HumanoidRootPart") == nil then
- --nothing
- else
- if v.HumanoidRootPart.Position.Z > -65 then
- killEvent:FireServer({ { v, v.Humanoid.Health } })
- end
- end
- end
- for _,v in next, coin:GetChildren() do
- if v.Name == "Coin" or v.Name == "Star" then
- PickUpEvent:FireServer({ v.UID.Value })
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement