RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a battle system so when i walk up to a npc it starts a battle"
-- server script local npc = game.Workspace.NPC local function onTouch(part, otherPart) if otherPart.Parent:FindFirstChild("Humanoid") then local player = game.Players:GetPlayerFromCharacter(otherPart.Parent) if player then -- start battle end end end npc.Touched:Connect(onTouch)