RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a script for scripterAI"
local Scripts = game:GetService("ReplicatedStorage"):WaitForChild("Scripts") local ScripterAI = require(Scripts.ScripterAI) -- This function is called when the player joins the game local function onPlayerAdded(player) -- Create a new instance of the ScripterAI local scripterAI = ScripterAI.new(player) -- Connect the player's CharacterAdded event to the ScripterAI player.CharacterAdded:Connect(function(character) scripterAI:OnCharacterAdded(character) end) end -- Connect the PlayerAdded event to the onPlayerAdded function game.Players.PlayerAdded:Connect(onPlayerAdded)