mouse = game.Players.LocalPlayer:GetMouse() while wait() do Target = mouse.Target if Target.Lootable.Value == true then print "Lootable" elseif Target.Lootable == nil then end end
Output: "Lootable is not a valid member" Lootable is a BoolValue
How do I get it to work?
Um. You cannot directly go to a value in the target here
mouse = game.Players.LocalPlayer:GetMouse() while wait() do Target = mouse.Target if Target:FindFirstChild("Lootable") then if Target.Lootable.Value == true then print("Lootable") elseif not Target:FindFirstChild("Lootable") then print("Ended") end end end
Thanks, I appreciate the help but it says that is still nil at line 6