Logo for Semantic Pen
Semantic Pen
  • Pricing
  • Use Cases

Quick Links

F.A.QPricingTerms of ServiceMy AccountFree SEO ToolsBlog

Features

AI WritingSEO OptimizationContent StrategyPlagiarism CheckerGrammar Correction

Comparisons

ZimmWriter vs Semantic Pen AIDrafthorse vs Semantic Pen AIAutoblogging vs Semantic Pen AIKoala vs Semantic Pen AIJasper vs Semantic Pen AICopy.ai vs Semantic Pen AIShortly vs Semantic Pen AITextBuilder vs Semantic Pen AIJournalist vs Semantic Pen AIJunia vs Semantic Pen AI

Integrations

WordPressWebflowWebhookWixShopifyGhostBlogger
Semantic Pen

Semantic Pen

SuperCharge Your Content Creation With AI
contact@semanticpen.com

Free SEO Tools

Sitemap URL ExtractorSitemap FinderCharacter Counter
How Many Words CalculatorHow Many Pages CalculatorGoogle Autocomplete Suggestion
Pinterest Keyword SuggestionYahoo Search SuggestionYouTube Autocomplete Suggestion
Strikethrough Text GeneratorNormal To Italic Text ConverterNormal To Bold Text Converter
Fancy Text GeneratorText Compare
API DocumentationAffiliate Program
Privacy PolicyTerms of ServiceFacebook Disclaimer
© 2025 Semantic Pen. All rights reserved.
      For roblox studio that uses Lu... || Video Game Script Generator
      Free Access Video Game Script Generator
      Generated on Mar 21, 2025, 9:07:26 AMgpt-4o-mini
      User Prompt
      For roblox studio that uses Lua as their coding language, make an enemy npc that flies towards to the player shooting them within the player's detection
      Generated Result
      local player = game.Players.LocalPlayer
      local enemy = Instance.new("Model")
      enemy.Name = "FlyingEnemy"
      enemy.Parent = workspace
      
      local humanoid = Instance.new("Humanoid")
      humanoid.Parent = enemy
      
      local enemyPart = Instance.new("Part")
      enemyPart.Size = Vector3.new(2, 2, 2)
      enemyPart.BrickColor = BrickColor.new("Bright red")
      enemyPart.Anchored = false
      enemyPart.CanCollide = false
      enemyPart.Parent = enemy
      
      local function flyTowardsPlayer()
          while true do
              wait(0.1)
              if (enemyPart.Position - player.Character.HumanoidRootPart.Position).magnitude < 50 then
                  local direction = (player.Character.HumanoidRootPart.Position - enemyPart.Position).unit
                  enemyPart.Velocity = direction * 50
                  
                  local bullet = Instance.new("Part")
                  bullet.Size = Vector3.new(0.5, 0.5, 0.5)
                  bullet.BrickColor = BrickColor.new("Bright yellow")
                  bullet.Position = enemyPart.Position
                  bullet.Anchored = false
                  bullet.CanCollide = false
                  bullet.Parent = workspace
                  
                  local bulletDirection = (player.Character.HumanoidRootPart.Position - bullet.Position).unit
                  bullet.Velocity = bulletDirection * 100
                  
                  game.Debris:AddItem(bullet, 5) -- Remove bullet after 5 seconds
              end
          end
      end
      
      flyTowardsPlayer()
      
      Free Access Video Game Script Generator