Advertisement
quoc9x

Untitled

Jul 14th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. ply = game.Players.quoc9x
  2. char = ply.Character
  3. torso = char.Torso
  4.  
  5. holding = false
  6.  
  7. legpos = CFrame.new(.5,-1.5,0)
  8. armpos = CFrame.new(1.5,.5,0)
  9.  
  10. ang = CFrame.Angles
  11. cfn = CFrame.new
  12.  
  13. list = {}
  14.  
  15. Arms = {char["Left Arm"],char["Right Arm"]}
  16. Legs = {char["Left Leg"],char["Right Leg"]}
  17.  
  18. track = false
  19. m = Instance.new("Model",char)
  20.  
  21. meshids = {["blast"] = "http://www.roblox.com/asset/?id=20329976", ["penguin"] = "http://www.roblox.com/asset/?id=15853464", ["ring"] = "http://www.roblox.com/asset/?id=3270017",
  22. ["spike"] = "http://www.roblox.com/asset/?id=1033714",["cone"] = "http://www.roblox.com/asset/?id=1082802",["crown"] = "http://www.roblox.com/asset/?id=20329976",["arrow"] = "http://www.roblox.com/asset/?id=15886761",
  23. ["cloud"] = "http://www.roblox.com/asset/?id=1095708",["mjolnir"] = "http://www.roblox.com/asset/?id=1279013",["diamond"] = "http://www.roblox.com/asset/?id=9756362",["hand"] = "http://www.roblox.com/asset/?id=37241605"}
  24.  
  25. textureids = {["cone"] = "http://www.roblox.com/asset/?id=1082804",["rainbow"] = "http://www.roblox.com/asset/?id=28488599",
  26. ["grass"] = "http://www.roblox.com/asset/?id=2861779"}
  27.  
  28. function kill(mouse)
  29. for i,v in pairs(mouse.Target.Parent:GetChildren()) do
  30. if v:IsA("Humanoid") then v.Health = 0
  31.  
  32. local head = v.Parent.Head
  33. bbg = Instance.new("BillboardGui",v.Parent)
  34. bbg.Adornee = head
  35. bbg.Size = UDim2.new(4,0,4,0)
  36. bbg.StudsOffset = Vector3.new(0,6,0)
  37.  
  38. img = Instance.new("ImageLabel",bbg)
  39. img.Size = UDim2.new(1,0,1,0)
  40. img.Image = "rbxassetid://49173398"
  41. img.BackgroundTransparency = 1
  42.  
  43. txtlbl = Instance.new("TextLabel",gui)
  44. txtlbl.Size = UDim2.new(1,0,1,0)
  45. txtlbl.BackgroundTransparency = 1
  46. txtlbl.Text = "PWNED!"
  47. txtlbl.FontSize = 6
  48. txtlbl.TextColor3 = Color3.new(1,0,0)
  49.  
  50. end
  51. end
  52. end
  53.  
  54.  
  55.  
  56. --TOOLS--
  57. T = {["P"] = function(x,y,z,color,transparency,cancollide,anchored)
  58. c = Instance.new("Part",m)
  59.  
  60. c.TopSurface,c.BottomSurface = 0,0
  61. c.formFactor = "Custom"
  62. c.Size = Vector3.new(x,y,z)
  63. c.BrickColor = BrickColor.new(color)
  64. c.Transparency = transparency
  65. c.CanCollide = cancollide
  66. if anchored ~= nil then c.Anchored = anchored end
  67. return c
  68. end
  69. ,
  70. ["W"] = function(part0,part1,x,y,z,rx,ry,rz)
  71. w = Instance.new("Weld",m)
  72. w.Part0,w.Part1 = part0,part1
  73. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
  74. return w
  75. end
  76. ,
  77. ["F"] = function(parent,size,heat,color,secondcolor)
  78. f = Instance.new("Fire",parent)
  79. f.Size = size
  80. f.Heat = heat
  81. if color ~= nil then f.Color = BrickColor.new(color).Color end
  82. if secondcolor ~= nil then f.SecondaryColor = BrickColor.new(secondcolor).Color end
  83. return f
  84. end
  85. ,
  86. ["BP"] = function(parent,position)
  87. local bp = Instance.new("BodyPosition",parent)
  88. bp.maxForce = Vector3.new()*math.huge
  89. bp.position = position
  90. return bp
  91. end
  92. ,
  93. ["R"] = function(part,x,y,z)
  94. if part == "lleg" then
  95. legw[1].C1 = CFrame.new(.5,-1.5,0)*ang(x,y,z)
  96. elseif part == "rleg" then
  97. legw[2].C1 = CFrame.new(-.5,-1.5,0)*ang(x,y,z)
  98. elseif part == "larm" then
  99. armw[1].C1 = CFrame.new(1.5,.5,0)*ang(x,y,z)
  100. elseif part == "rarm" then
  101. armw[2].C1 = CFrame.new(-1.5,.5,0)*ang(x,y,z)
  102. end
  103. end
  104. ,
  105. ["Track"] = function(obj,t,lt)
  106. coroutine.resume(coroutine.create(function()
  107. while track do
  108. old = obj.Position
  109. wait()
  110. new = obj.Position
  111.  
  112. mag = (old-new).magnitude
  113. dist = (old+new)/2
  114.  
  115. ray = T.P(t,mag+.2,t,obj.Color,t)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement