Here's the code I did. [Attempt 1] [ Game does not have FE enabled, for all attempts ]
game:GetService("Players").LocalPlayer.Backpack.Tool.Parent.Changed:connect(function()
local plr = game:GetService("Players").LocalPlayer.Character.Name
if game:GetService("Players").LocalPlayer.Backpack.Tool.Parent == game:GetService("Players").LocalPlayer.Character.Name then
script.Parent:FindFirstChild("Frame").Visible = true
else
script.Parent:FindFirstChild("Frame").Visible = false
end
end)
I maybe used the Changed function in a wrong way, but I changed a bit of things
game:GetService("Players").LocalPlayer.Backpack.Tool.Parent.Changed:connect(function()
local plr = game:GetService("Players").LocalPlayer.Character.Name
if game:GetService("Players").LocalPlayer.Backpack.Tool.Parent == plr then
script.Parent:FindFirstChild("Frame").Visible = true
else
script.Parent:FindFirstChild("Frame").Visible = false
end
end)

1 comment
Nvm, I found my mistake. Thanks for helping no one...