|
| 02 Jul 2016 09:33 AM |
wait(0.1) local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse() while wait() do local Target = Mouse.Target wait() local Humanoid = Target.Parent:FindFirstChild("Humanoid") or Target.Parent.Parent:FindFirstChild("Humanoid") if Humanoid then script.Parent.Focus.Adornee = Humanoid.Parent elseif Target:FindFirstChild("ClickDetector") then script.Parent.Focus.Adornee = Target else script.Parent.Focus.Adornee = nil end end
This isn't working...
"Players.Player1.PlayerGui.ScreenGui.FocusHandler:7: attempt to index local 'Target' (a nil value)"
Waffles are good for you. |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2016 09:39 AM |
bump
Waffles are good for you. |
|
|
| Report Abuse |
|
|
ByDefault
|
  |
| Joined: 25 Jul 2014 |
| Total Posts: 3197 |
|
|
| 02 Jul 2016 09:40 AM |
| Put in an if statement to see if "Target" exists |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2016 09:40 AM |
Cause lua is a very bad coding service Use C# or C++
-------------------------Coding is life--------------------------- |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2016 09:43 AM |
It works, but the script doesn't set the adornee. :/
Waffles are good for you. |
|
|
| Report Abuse |
|
|
doggy00
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 3571 |
|
|
| 02 Jul 2016 09:44 AM |
we get it python doge guy, you already posted on rt about python being easy to use, lol.
what should be siggy be? |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2016 09:48 AM |
Im not talking about python,im talking about Microsoft Visual Studio C# and C++
-------------------------Coding is life--------------------------- |
|
|
| Report Abuse |
|
|
|
| 02 Jul 2016 09:51 AM |
bump
Waffles are good for you. |
|
|
| Report Abuse |
|
|