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)

4 comments
I'm not sure if this will help, but try doing
local Character = Player.Character or Player.CharacterAdded:Wait()
Can't you technically use the character parameter passed by CharacterAdded?
Yeah that's true I'm going to try to change it up a bit.
Nothing worked. I'm just going to do some more research on the changes ROBLOX added.