RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"script a text button that give a player a Bool value of Knight"
-- local script local button = script.Parent local Players = game:GetService('Players') local function giveKnightStatus() local player = Players.LocalPlayer if not player:FindFirstChild('Knight') then local knightStatus = Instance.new('BoolValue') knightStatus.Name = 'Knight' knightStatus.Value = true knightStatus.Parent = player end end button.MouseButton1Click:Connect(giveKnightStatus)