1 | me = game.Players.LocalPlayer |
2 | char = me.Character |
3 | torso = char.Torso |
4 | dist = 6 |
5 | |
6 | cols = {"Hot pink", "Really red", "Really blue", "New Yeller", "Lime green", "Neon orange"} |
7 | function prop(part, parent, collide, tran, ref, x, y, z, color, anchor, form) |
8 | part.Parent = parent |
9 | part.formFactor = form |
10 | part.CanCollide = collide |
11 | part.Transparency = tran |
12 | part.Reflectance = ref |
13 | part.Size = Vector3.new(x,y,z) |
14 | part.BrickColor = BrickColor.new(color) |
15 | part.TopSurface = 0 |
16 | part.BottomSurface = 0 |
17 | part.Anchored = anchor |
18 | part.Locked = true |
19 | part:BreakJoints() |
20 | end |
21 | |
22 | for i=1,50 do |
23 | local p = Instance.new("Part") |
24 | prop(p,char,false,0,0,0.4,0.4,0.4,cols[math.random(1,#cols)],false,"Custom") |
25 | Instance.new("SpecialMesh",p).MeshType = "Sphere" |
26 | local bp = Instance.new("BodyPosition",p) |
27 | bp.maxForce = Vector3.new(math.huge,math.huge,math.huge) |
28 | bp.P = 20000 |
29 | bp.position = p.Position |
30 | local way = CFrame.Angles(0,0,0) |
31 | local pos = CFrame.new(torso.Position) * CFrame.Angles(math.random(-320,320)/100,math.random(-320,320)/100,math.random(-320,320)/100) |
32 | p.CFrame = pos |
33 | coroutine.resume(coroutine.create(function() |
34 | while true do |
35 | wait() |
36 | pos = CFrame.new(torso.Position) * way * CFrame.new(0,dist,0) |
37 | way = way * CFrame.Angles(math.random(0,50)/400,math.random(0,50)/400,math.random(0,50)/400) |
38 | bp.position = pos.p |
39 | end |
40 | end)) |
41 | p.Touched:connect(function(o) |
42 | if o.Anchored == false and o.Parent ~= char then |
43 | o.Velocity = CFrame.new(torso.Position, o.Position).lookVector * 250 |
44 | end |
45 | end) |
46 | end |
47 | game:GetService("StarterGui"):SetCore("SendNotification", {Title = "lol balls", Duration = 6, Button1 = "prexiate it🍭", Callback = function() end, Text = "skript by @lulaslollipop🍭"}); |