Hasli4

RBLX. MagicWand

May 12th, 2025
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | None | 0 0
  1. Wand = script.Parent
  2. function add()
  3.     local X = math.random(-20, 20)
  4.     local Z = math.random(-20, 20)
  5.     local detal = Instance.new("Part", workspace)
  6.     local X0 = Wand.Part.Position.X
  7.     local Z0 = Wand.Part.Position.Z
  8.     detal.Position = Vector3.new(X0 + X, 100, Z0 + Z)
  9.     detal.BrickColor = BrickColor.Random()
  10.     detal.Size = detal.Size*math.random(1.5)
  11.     detal.Shape = "Ball"
  12. end
  13. Wand.Activated:Connect(add)
  14.  
Add Comment
Please, Sign In to add comment