of     1   

Poine
#183010600Friday, February 05, 2016 12:23 AM GMT

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?
TimeTicks
#183011102Friday, February 05, 2016 12:31 AM GMT

I just reformatted your code. local boss = script.Parent.Parent.Parent local database = workspace.MainDatabase script.Parent.Touched:connect(function(hit) if hit.Parent.Name ~= boss.Name then local human = hit.Parent:FindFirstChild("Humanoid") if human and human.Health > 0 then local id = database.Vatandaslar[human.Parent.Name].MeslekID if id.Value > 3 or id.Value < 0 then database.Vatandaslar[human.Parent.Name].inPrison.Value = true database.Hapis[human.Parent.Name].Value = 200 human.Parent.Torso.CFrame = workspace.PrisonSpawn.CFrame end end end end)
Poine
#183011427Friday, February 05, 2016 12:36 AM GMT

fixed it thanks

    of     1