I was making something just for fun but it looks like that the classnames to the path of the object are being said, and not just the names itself as an example, a pathway to an object could be

Workspace.Stages.NextLevel1

But instead it returns as

Workspace.Model.Part

Any reasons why this is happening? Edit: Here is the code I used:

local Plr = game:GetService("Players").LocalPlayer
local Mouse = Plr:GetMouse()
local function answer(t)
if t == "Yes" then 
	print(Mouse.Target:GetFullName())
end
end
local reply = Instance.new("BindableFunction")
reply.OnInvoke = answer

Mouse.Button1Down:connect(function()
if not game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl) then return end
if not Mouse.Target then return end
game.StarterGui:SetCore("SendNotification", {
	Title = "Confirmation";
	Text = "Print path of "..Mouse.Target.Name.."?";
	Callback = reply;
	Button1 = "Yes";
	Button2 = "No";
})
end)

4 comments

0

Show us your code please.

0

Sorry for the late reply but I edited my post with the code

0

might just re-post just so it get more attention oofie

0

next time I should always include the code on these kind of posts