Every time either with a Ticket or not it will fire to the client and do nothing else. Door does not open. I have tried many things and nothing is working. It is supposed to open to those who have the ticket in their backpack, and don't open if they don't have a ticket.
Code:
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Ticket = ReplicatedStorage.TicketError script.Parent.Touched:Connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) print(player) print(player.Backpack) print(hit.Name) if player.Backpack.Name == "Ticket" then script.Parent.CanCollide = false wait(3) script.Parent.CanCollide = true else Ticket:FireClient(player) end end)
Error: Click here for screenshot.