generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Can someone help me?

Previous Thread :: Next Thread 
HardTyranny is not online. HardTyranny
Joined: 28 Aug 2014
Total Posts: 121
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
HardTyranny is not online. HardTyranny
Joined: 28 Aug 2014
Total Posts: 121
02 Jul 2016 09:39 AM
bump


Waffles are good for you.
Report Abuse
ByDefault is not online. 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
SameAsOhkaInTheBush is not online. SameAsOhkaInTheBush
Joined: 14 Jan 2015
Total Posts: 17
02 Jul 2016 09:40 AM
Cause lua is a very bad coding service
Use C# or C++


-------------------------Coding is life---------------------------
Report Abuse
HardTyranny is not online. HardTyranny
Joined: 28 Aug 2014
Total Posts: 121
02 Jul 2016 09:43 AM
It works, but the script doesn't set the adornee. :/


Waffles are good for you.
Report Abuse
doggy00 is online. 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
SameAsOhkaInTheBush is not online. SameAsOhkaInTheBush
Joined: 14 Jan 2015
Total Posts: 17
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
HardTyranny is not online. HardTyranny
Joined: 28 Aug 2014
Total Posts: 121
02 Jul 2016 09:51 AM
bump


Waffles are good for you.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image