SHARE
TWEET

LIFE

SirMeme May 2nd, 2019 11,109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local mob = game:GetService("Workspace")["__THINGS"].Monsters
  2. local coin = game:GetService("Workspace")["__DEBRIS"]
  3. local PickUpEvent = game:GetService("Workspace")["__REMOTES"].Game["Redeem Drop"]
  4. local killEvent = game:GetService("Workspace")["__REMOTES"].Game["Mob Do Damage"]
  5.  
  6.  
  7. while wait(0.1) do
  8.     for _,v in next, mob:GetChildren() do
  9.         if v:FindFirstChild("HumanoidRootPart") == nil then
  10.         --nothing
  11.         else
  12.             if v.HumanoidRootPart.Position.Z > -65 then
  13.                 killEvent:FireServer({ { v, v.Humanoid.Health } })
  14.             end
  15.         end
  16.     end
  17.     for _,v in next, coin:GetChildren() do
  18.         if v.Name == "Coin" or v.Name == "Star" then
  19.             PickUpEvent:FireServer({ v.UID.Value })
  20.         end
  21.     end
  22. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top