I am struggling with this script, i want to achive it Enabling, when copied into Player’s GUI.
The problem is when i want to put this into if statement it marks it as a error.
script.Parent.ProximityPrompt.Triggered:Connect(function(Player)
local rs = game.ReplicatedStorage.blackmarket.bm:Clone()
rs.Parent = Player.PlayerGui
local a = Player.PlayerGui:FindFirstChild("bm")
if a.Enabled == false then
a.Enabled == true
end
end)