Fram is not a valid member of Workspace "Workspace"

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.

image

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)

image

Try this:

tbe = workspace:WaitForChild("Fram").a
tfe = workspace:WaitForChild("Fram")
1 Like

Ah I feel stupid now, thank you for the help

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.