I might be wrong but I do remember ROBLOX Studio having an update yesterday. I made this script which was working perfectly fine then out of nowhere today comes up and it's just completely broken. If anyone knows what changed in the update or why it broke my script then I would appreciate it very much.
local Players = game:GetService("Players") local Player = Players.LocalPlayer local Character = Player.Character local function CAdded() print(Player.Name.. " Connected") print(Player.Name.. "'s Character Connected") if Character:WaitForChild("Daku") ~= nil then local Moveset = Player.PlayerGui.ScreenGui.DakuM Moveset.Visible = true end end Player.CharacterAdded:Connect(CAdded)
Uh not sure this will fix your problem, but I noticed you used
if Character:WaitForChild("Daku") ~= nil then
when it should be
if Character:FindFirstChild("Daku") ~= nil then
because WaitForChild() just waits for the child and doesn't stop waiting until the child is found, therefore never producing nil, while FindFirstChild() searches to see if the child is there and if it's not, it becomes nil.