script.Parent.Touched:connect(function(hit)
if hit.Parent.Name ~= script.Parent.Parent.Parent.Name then
print "doesnt equal b0ss"
local h = hit.Parent:FindFirstChild("Humanoid")
if h and h.Health > 0 then
local id = game.Workspace.MainDatabase.Vatandaslar:FindFirstChild(h.Parent.Name).MeslekID.Value
if id > 3 or id < 0 then
game.Workspace.MainDatabase.Vatandaslar:FindFirstChild(h.Parent.Name).inPrison.Value = true
game.Workspace.MainDatabase.Hapis:FindFirstChild(h.Parent.Name).Value = 200
hit.Parent:FindFirstChild("Torso").CFrame = game.Workspace.PrisonSpawn.CFrame
end end end
end)
Im so confused this used to work but now roblox updated and it doesnt work? |