So, i wanted to make a script where if i clicked on the model of my skin, it’d play an animation (in a separate script, which worked) and make a gui appear.
This bug has been happening since the start of my project, and not even chatGPT could help. I tried many different versions, yet it didnt work anyways.
This is the recentest version of my script which obviosuly doesnt work. What did i do wrong?! it gives no error message, but it just doesnt execute the script.
local Clash = script.Parent
local CD = Clash.ClickDetector
CD.MouseClick:Connect(function(click)
if click then
game.Players.LocalPlayer.PlayerGui.ScreenGui.Enabled = true
end
end)