Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Workspace.ChildAdded:Connect(function(char)
- if game.Players:GetPlayerFromCharacter(char) then
- local hrp = char:WaitForChild("HumanoidRootPart")
- local ball1 = Instance.new("Part")
- ball1.Shape = Enum.PartType.Ball
- ball1.Color = Color3.new(1,0,1)
- ball1.CanCollide = false
- ball1.Massless = true
- ball1.CanCollide = false
- ball1.Size = Vector3.new(1,1,1)
- ball1.TopSurface = Enum.SurfaceType.Smooth
- ball1.BottomSurface = Enum.SurfaceType.Smooth
- local ball2 = ball1:Clone()
- local stick = ball1:Clone()
- stick.Shape = Enum.PartType.Cylinder
- stick.Size = Vector3.new(20,1,1)
- local ball3 = ball2:Clone()
- ball3.Color = Color3.new(0.5,0,1)
- ball3.Size = Vector3.new(2,2,2)
- local stick2 = stick:Clone()
- stick2.Color = ball3.Color
- stick2.Size = Vector3.new(2,2,2)
- local weld = Instance.new("Weld",ball1)
- weld.Part0 = ball1
- weld.C0 = CFrame.new(0.5,1,0.5)
- weld.Part1 = hrp
- ball1.Parent = char
- local weld = Instance.new("Weld",ball2)
- weld.Part0 = ball2
- weld.C0 = CFrame.new(-0.5,1,0.5)
- weld.Part1 = hrp
- ball2.Parent = char
- local weld = Instance.new("Weld",stick)
- weld.Part0 = stick
- weld.C0 = CFrame.new(10,1,0)*CFrame.Angles(0,math.rad(90),0)
- weld.Part1 = hrp
- stick.Parent = char
- local weld = Instance.new("Weld",ball3)
- weld.Part0 = ball3
- weld.C0 = CFrame.new(-0,1,20)
- weld.Part1 = hrp
- ball3.Parent = char
- local weld = Instance.new("Weld",stick2)
- weld.Part0 = stick2
- weld.C0 = CFrame.new(19,1,0)*CFrame.Angles(0,math.rad(90),0)
- weld.Part1 = hrp
- stick2.Parent = char
- ball1.Locked = true
- ball2.Locked = true
- ball3.Locked = true
- stick.Locked = true
- stick2.Locked = true
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement