Hi my code didnt work and ended up with an Attempt to index nil with findfirstchild is there any way to fix it?
heres the code in pastebin
Hi my code didnt work and ended up with an Attempt to index nil with findfirstchild is there any way to fix it?
heres the code in pastebin
Fixed, I changed the code a bit from those stuff
local v62 = target.HoverInfo:WaitForChild("HoverName")
local v65 = target.HoverInfo:WaitForChild("HoverDesc")
and did this to it :
local v62 = target:FindFirstChild("HoverInfo"):WaitForChild("HoverName")
local v65 = target:FindFirstChild("HoverInfo"):WaitForChild("HoverDesc")
and changed
elseif not target:FindFirstChild('HoverInfo') then
to
elseif target ~= nil and not target:FindFirstChild('HoverInfo') then
there is still some code that i need to fix, but its just the visible, tween code which is no problem for me.
This discussion is preserved as it was. New answers, comments, and votes are closed.
8 comments
i think it because u put ('HoverInfo') at the bottom of ur script try to put the same thing in the Find first child
Alright
Nope, Doesnt work
I fixed it
:GetMouse is deprecated
local mouse = game.Players.LocalPlayer:GetMouse() mouse.Move:Connect(function() local target = game.Players.LocalPlayer:GetMouse().Target couldn't you just do local target = mouse.Target
yes he could but he didn't and that doesn't help solve the answer to his question. Also this looks like deobfuscated synapse code lmao. Use an if statement to bypass the error.
Also tomato, https://developer.roblox.com/en-us/api-reference/function/Player/GetMouse would have listed it as deprecated. It's listed as unsafe. That is not the same as deprecated.