RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a script when user clicks it shoots fire balls"
-- Local script local player = game.Players.LocalPlayer local mouse = player:GetMouse() local function shootFireball() local fireball = Instance.new('Part') fireball.Size = Vector3.new(1, 1, 1) fireball.Shape = 'Ball' fireball.BrickColor = BrickColor.new('Bright red') fireball.Material = 'Neon' fireball.Position = player.Character.Head.Position fireball.Parent = game.Workspace local fire = Instance.new('Fire', fireball) fire.Size = 10 local bodyVelocity = Instance.new('BodyVelocity', fireball) bodyVelocity.Velocity = (mouse.Hit.p - player.Character.Head.Position).Unit * 100 end mouse.Button1Down:Connect(shootFireball)