I tried using this code:
script.Parent.Touched:Connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if not player:IsInGroup(5183385) or player:IsInGroup(5183373) then
player:Kick("Do not enter places you're not supposed to be.")
end
end
to make a block that kicks the player if they touch it and theyre not in 1 of those 2 groups yet it doesn't work for some reason any ideas why?
Disc: Unknown Intelligence#6569
