Advertisement
trolman5678

pen

Oct 2nd, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local player = game.Players.zombieslayerwtf
  2. local Me = player.Character
  3. function dic()
  4. local p1 = Instance.new("Part")
  5. local p2 = Instance.new("Part")
  6. local p3 = Instance.new("Part")
  7. local p4 = Instance.new("Part")
  8. local m = Instance.new("Model")
  9. m.Parent = Me
  10. m.Name = "sineP"
  11. p1.Name = "Part"
  12. p1.formFactor = "Symmetric"
  13. p1.Size = Vector3.new(2,2,1)
  14. p1.BrickColor = Me.Head.BrickColor
  15. p1.Reflectance = 0
  16. p1.Transparency = 0
  17. p1.TopSurface = "Smooth"
  18. p1.BottomSurface = "Smooth"
  19. p1.CanCollide = true
  20. p1.Parent = m
  21. p1.Locked = true
  22. local mesh1 = Instance.new("SpecialMesh")
  23. mesh1.MeshType = "Head"
  24. mesh1.Parent = p1
  25. mesh1.Scale = Vector3.new(1,1,1)
  26. weld1 = Instance.new("Weld")
  27. weld1.Part0 = Me["Torso"]
  28. weld1.Part1 = p1
  29. weld1.Parent = m
  30. weld1.C0 = CFrame.new(0,-1,-1)*CFrame.fromEulerAnglesXYZ(-1,0,0)
  31. p2.Name = "Part"
  32. p2.formFactor = "Plate"
  33. p2.Size = Vector3.new(1,0.4,1)
  34. p2.BrickColor = BrickColor.new("Pink")
  35. p2.Reflectance = 0
  36. p2.Transparency = 0
  37. p2.TopSurface = "Smooth"
  38. p2.BottomSurface = "Smooth"
  39. p2.CanCollide = true
  40. p2.Parent = m
  41. p2.Locked = true
  42. local mesh2 = Instance.new("SpecialMesh")
  43. mesh2.MeshType = "Head"
  44. mesh2.Parent = p2
  45. mesh2.Scale = Vector3.new(1,1,1)
  46. weld2 = Instance.new("Weld")
  47. weld2.Part0 = Me["Torso"]
  48. weld2.Part1 = p2
  49. weld2.Parent = m
  50. weld2.C0 = CFrame.new(0,-.4,-1.9)*CFrame.fromEulerAnglesXYZ(-1,0,0)
  51. p3.Name = "Part"
  52. p3.Locked = true
  53. p3.formFactor = "Plate"
  54. p3.Size = Vector3.new(0.4,1,0.4)
  55. p3.BrickColor = BrickColor.new("Pink")
  56. p3.Reflectance = 0
  57. p3.Transparency = 0
  58. p3.TopSurface = "Smooth"
  59. p3.BottomSurface = "Smooth"
  60. p3.CanCollide = true
  61. p3.Parent = m
  62. local mesh3= Instance.new("SpecialMesh")
  63. mesh3.MeshType = "Head"
  64. mesh3.Parent = p3
  65. mesh3.Scale = Vector3.new(1,1,1)
  66. weld3 = Instance.new("Weld")
  67. weld3.Part0 = Me["Torso"]
  68. weld3.Part1 = p3
  69. weld3.Parent = m
  70. weld3.C0 = CFrame.new(0,-0.4,-1.9)*CFrame.fromEulerAnglesXYZ(-1,0,0)
  71. function onTouched(hit)
  72. p = Instance.new("Part")
  73. p.Parent = game.Workspace
  74. p.Name = "C/um"
  75. p.Size = Vector3.new(1,1,1)
  76. p.Position = p3.Position
  77. p.BrickColor = BrickColor.new("Institutional white")
  78. p.Anchored = false
  79. p.Locked = true
  80. p.Transparency = .2
  81. p.formFactor = "Symmetric"
  82. p.TopSurface = "Smooth"
  83. p.BottomSurface = "Smooth"
  84. meshp = Instance.new("SpecialMesh")
  85. meshp.Parent = p
  86. meshp.MeshType = "Sphere"
  87. meshp.Scale = Vector3.new(0.3,0.3,0.3)
  88. game:service("Debris"):AddItem(p, 10)
  89. end
  90. p3.Touched:connect(onTouched)
  91. p4.Name = "Part"
  92. p4.formFactor = "Plate"
  93. p4.Size = Vector3.new(1.4,1,1.4)
  94. p4.BrickColor = Me.Head.BrickColor
  95. p4.Reflectance = 0
  96. p4.Transparency = 0
  97. p4.TopSurface = "Smooth"
  98. p4.BottomSurface = "Smooth"
  99. p4.CanCollide = true
  100. p4.Parent = m
  101. p4.Locked = true
  102. local mesh4 = Instance.new("SpecialMesh")
  103. mesh4.MeshType = "Sphere"
  104. mesh4.Parent = p4
  105. mesh4.Scale = Vector3.new(1,1,1)
  106. weld4 = Instance.new("Weld")
  107. weld4.Part0 = Me["Torso"]
  108. weld4.Part1 = p4
  109. weld4.Parent = m
  110. weld4.C0 = CFrame.new(0,-1.5,-.5)*CFrame.fromEulerAnglesXYZ(-1,0,0)
  111. end
  112. gm = Instance.new("GuiMain")
  113. gm.Parent = player.PlayerGui
  114. gm.Name = "sineP"
  115. tb = Instance.new("TextButton")
  116. tb.Parent = gm
  117. tb.Size = UDim2.new(0,50,0,50)
  118. tb.Position = UDim2.new(0,400,0,80)
  119. tb.Text = "Pen"
  120. tb.BackgroundTransparency = .5
  121. tb.TextTransparency = .5
  122. tb.BackgroundColor3 = Color3.new(100,255,255)
  123. tb.BorderColor3 = Color3.new(50,255,255)
  124. function onClick()
  125. dic()
  126. tb1.Visible = true
  127. tb.Visible = false
  128. end
  129. tb.MouseButton1Click:connect(onClick)
  130. tb1 = Instance.new("TextButton")
  131. tb1.Parent = gm
  132. tb1.Size = UDim2.new(0,50,0,50)
  133. tb1.Position = UDim2.new(0,400,0,80)
  134. tb1.Text = "No Pen"
  135. tb1.BackgroundTransparency = .5
  136. tb1.TextTransparency = .5
  137. tb1.Visible = false
  138. tb1.BackgroundColor3 = Color3.new(100,255,255)
  139. tb1.BorderColor3 = Color3.new(50,255,255)
  140. function onClick()
  141. Me.sineP:Remove()
  142. tb.Visible = true
  143. tb1.Visible = false
  144. end
  145. tb1.MouseButton1Click:connect(onClick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement