I’m am trying to make a script to where when you click the green frame with the frame tool in hand a frame will appear in place of the green frame.
This is the error I am getting,
fram is not a valid member of Workspace “Workspace”
Sorry if its a quick fix I have been staring at this code for a while and I cant figure it out for the life of me.
local player = game.Players.LocalPlayer
local character = player.Character
tbe = game.Workspace.fram.a
tfe = game.Workspace.fram
tbe.ClickDetector.MouseClick:Connect(function()
if character:FindFirstChild('Frame') then
print("Works")
tfe.green.Transparency = 1
tfe.norm.Transparency = 0
tfe.pic.Transparency = 0
tfe.pic.Decal.Transparency = 0
else
print("failed")
end
end)