Advertisement
BoblokDevelopyyyr

InsideAPart - Project 2

Jun 12th, 2025 (edited)
644
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. local part = script.Parent
  2.  
  3.  
  4. local linearVelocity = Instance.new("LinearVelocity", part)
  5. linearVelocity.VectorVelocity = Vector3.new(0, 20, 0)
  6. linearVelocity.MaxForce = 1000000
  7.  
  8. local attachment = Instance.new("Attachment", part)
  9.  
  10. linearVelocity.Attachment0 = attachment
  11.  
  12. task.spawn(function()
  13.     while task.wait(0.1) do
  14.         local red = math.random(0, 255)
  15.         local green = math.random(0, 255)
  16.         local blue = math.random(0, 255)
  17.         part.Color = Color3.new(red, green, blue)
  18.     end
  19. end)
  20.  
  21.  
Tags: Roblox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement