Advertisement
Guest User

sdf

a guest
Mar 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement