Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

GetFullName returns ClassNames instead of just the names of the objects?

Asked by 4 years ago
Edited 4 years ago

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)
0
Show us your code please. Asceylos 562 — 4y
0
Sorry for the late reply but I edited my post with the code RedWirePlatinum 53 — 4y
0
might just re-post just so it get more attention oofie RedWirePlatinum 53 — 4y
0
next time I should always include the code on these kind of posts RedWirePlatinum 53 — 4y

Answer this question