Question Is it possible to make a mouse script to allow a player to detect multiple targets via one script?
Problem My code keeps getting the fallowing error: Players.Player.PlayerScripts.LocalScript:5: attempt to index global 'Target' (a nil value)
Code
mouse = game.Players.LocalPlayer:GetMouse()
terminals = game.Workspace.Model:GetChildren()
while wait() do
Target = mouse.Target
if Target:FindFirstChild(terminals) then
if Target.terminals.Value == true then
print("Found")
elseif not Target:FindFirstChild(terminals) then
print("End")
end
end
end
Thanks
