SHARE
TWEET

sdf

a guest Mar 18th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- first script that makes the remote do what it does
  2. local remote = game.ReplicatedStorage.testcheck
  3. local plr = game.Players.LocalPlayer
  4.  
  5. function remote.OnClientInvoke(plr)
  6.     return plr.Backpack:FindFirstChild("Chocolate Chip Cookie"), plr.Backpack:FindFirstChild("Peanut Butter Cookie"), plr.Backpack:FindFirstChild("Sugar Cookie"), plr.Backpack:FindFirstChild("Fudge Cookie"), plr.Backpack:FindFirstChild("Caramel Cookie"), plr.Backpack:FindFirstChild("Rainbow Cookie")
  7. end
  8.  
  9. -- second script that takes the info thats being returned
  10.  
  11. local remote = game.ReplicatedStorage.testcheck
  12.  
  13. if remote.plr.Backpack:FindFirstChild("Chocolate Chip Cookie") then
  14.     print("hi")
  15. end
  16.  
  17. if remote.plr.Backpack:FindFirstChild("Peanut Butter Cookie") then
  18.     print("idk")
  19. 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