Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- first script that makes the remote do what it does
- local remote = game.ReplicatedStorage.testcheck
- local plr = game.Players.LocalPlayer
- function remote.OnClientInvoke(plr)
- 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")
- end
- -- second script that takes the info thats being returned
- local remote = game.ReplicatedStorage.testcheck
- if remote.plr.Backpack:FindFirstChild("Chocolate Chip Cookie") then
- print("hi")
- end
- if remote.plr.Backpack:FindFirstChild("Peanut Butter Cookie") then
- print("idk")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement