GangHaning

TrollManScript (Ro-Script!)

Aug 9th, 2016
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.03 KB | None | 0 0
  1. --MADE BY OneLegend (NOT THE SCRIPT) REGULAR SCRIPT: JUST RUN!
  2.  
  3.  
  4. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  5.  
  6. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  7.  
  8. local p = Instance.new("Part")
  9.  
  10. p.formFactor = "Custom"
  11.  
  12. p.Anchored = Anchor
  13.  
  14. p.CanCollide = Collide
  15.  
  16. p.Transparency = Tran
  17.  
  18. p.Reflectance = Ref
  19.  
  20. p.BrickColor = BrickColor.new(Color)
  21.  
  22. for _, Surf in pairs(Surfaces) do
  23.  
  24. p[Surf] = "Smooth"
  25.  
  26. end
  27.  
  28. p.Size = Vector3.new(X, Y, Z)
  29.  
  30. if Break then
  31.  
  32. p:BreakJoints()
  33.  
  34. else p:MakeJoints() end
  35.  
  36. p.Parent = Parent
  37.  
  38. return p
  39.  
  40. end
  41.  
  42.  
  43.  
  44. function Weld(p0, p1, x, y, z, a, b, c)
  45.  
  46. local w = Instance.new("Weld")
  47.  
  48. w.Parent = p0
  49.  
  50. w.Part0 = p0
  51.  
  52. w.Part1 = p1
  53.  
  54. w.C0 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
  55.  
  56. return w
  57.  
  58. end
  59.  
  60.  
  61.  
  62. function getcf(pos1, pos2)
  63.  
  64. local pos3 = Vector3.new(pos2.X, pos1.Y, pos2.Z)
  65.  
  66. return CFrame.new(pos1, pos3)
  67.  
  68. end
  69.  
  70.  
  71.  
  72. function findjelly(pos)
  73.  
  74. local t
  75.  
  76. local d = math.huge
  77.  
  78. local h
  79.  
  80. local tors
  81.  
  82. for i,v in pairs(workspace:children()) do
  83.  
  84. t, h = v:findFirstChild("Torso"), v:findFirstChild("Humanoid")
  85.  
  86. if t ~= nil and h ~= nil then
  87.  
  88. if (t.Position - pos).magnitude < d and h.Health > 0 then
  89.  
  90. d = (t.Position - pos).magnitude
  91.  
  92. tors = t
  93.  
  94. end
  95.  
  96. end
  97.  
  98. end
  99.  
  100. return tors
  101.  
  102. end
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110. function maketroll(pos)
  111.  
  112. local model = Instance.new("Model")
  113.  
  114. model.Name = "TROLLLLLLZ"
  115.  
  116. local body = Part(model, false, true, 0, 0, "Really black", 1.3, 4.5, 1.3, true)
  117.  
  118. local bg = Instance.new("BodyGyro",body)
  119.  
  120. bg.P = 6000
  121.  
  122. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  123.  
  124. local bv = Instance.new("BodyVelocity",body)
  125.  
  126. bv.P = 6000
  127.  
  128. bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  129.  
  130. bv.velocity = Vector3.new(0,0,0)
  131.  
  132. Instance.new("CylinderMesh",body)
  133.  
  134. local head = Part(model, false, true, 1, 0, "Really black", 3.5, 3.2, 0.4, true)
  135.  
  136. local neck = Weld(body, head, 0, 2.25+1.35, 0, 0, 0, 0)
  137.  
  138. local fr = Instance.new("Decal",head)
  139.  
  140. fr.Face = "Front"
  141.  
  142. fr.Texture = "http://www.roblox.com/asset/?id=29658197"
  143.  
  144. local ba = Instance.new("Decal",head)
  145.  
  146. ba.Face = "Back"
  147.  
  148. ba.Texture = "http://www.roblox.com/asset/?id=29658197"
  149.  
  150.  
  151.  
  152. local Ramodel = Instance.new("Model",model)
  153.  
  154. local rarm = Part(Ramodel, false, true, 0, 0, "Really black", 0.9, 0.7, 0.9, true)
  155.  
  156. Instance.new("CylinderMesh",rarm)
  157.  
  158. local rb = Part(model, false, true, 1, 0, "Really black", 0.1, 0.1, 0.1, true)
  159.  
  160. local rah = Weld(body, rb, 1, 1.8, 0, 0, 0, 0)
  161.  
  162. local rw = Weld(rb, rarm, 0, 0, 0, 0, 0, math.pi/2.8)
  163.  
  164.  
  165.  
  166. for i=0, -70, -10 do
  167.  
  168. local rarm2 = Part(Ramodel, false, true, 0, 0, "Really black", 0.9, 0.7, 0.9, true)
  169.  
  170. Instance.new("CylinderMesh",rarm2)
  171.  
  172. local w = Weld(rarm, rarm2, -3, 0, 0, 0, 0, math.rad(i))
  173.  
  174. w.C1 = CFrame.new(-3,0,0)
  175.  
  176. end
  177.  
  178.  
  179.  
  180. local Lamodel = Instance.new("Model",model)
  181.  
  182. local larm = Part(Lamodel, false, true, 0, 0, "Really black", 0.9, 0.7, 0.9, true)
  183.  
  184. Instance.new("CylinderMesh",larm)
  185.  
  186. local lb = Part(model, false, true, 1, 0, "Really black", 0.1, 0.1, 0.1, true)
  187.  
  188. local lah = Weld(body, lb, -1, 1.8, 0, 0, 0, 0)
  189.  
  190. local lw = Weld(lb, larm, 0, 0, 0, 0, math.pi, math.pi/2.8)
  191.  
  192.  
  193.  
  194. for i=0, -70, -10 do
  195.  
  196. local larm2 = Part(Lamodel, false, true, 0, 0, "Really black", 0.9, 0.7, 0.9, true)
  197.  
  198. Instance.new("CylinderMesh",larm2)
  199.  
  200. local w = Weld(larm, larm2, -3, 0, 0, 0, 0, math.rad(i))
  201.  
  202. w.C1 = CFrame.new(-3,0,0)
  203.  
  204. end
  205.  
  206.  
  207.  
  208. local Rlmodel = Instance.new("Model",model)
  209.  
  210. local rleg = Part(Rlmodel, false, true, 0, 0, "Really black", 0.9, 0.7, 0.9, true)
  211.  
  212. Instance.new("CylinderMesh",rleg)
  213.  
  214. local rlb = Part(model, false, true, 1, 0, "Really black", 0.1, 0.1, 0.1, true)
  215.  
  216. local rlh = Weld(body, rlb, 0, -1.9, 0, 0, 0, 0)
  217.  
  218. local rlw = Weld(rlb, rleg, 0, 0, 0, 0, 0, math.pi/2.8)
  219.  
  220.  
  221.  
  222. for i=0, -70, -10 do
  223.  
  224. local rleg2 = Part(Rlmodel, false, true, 0, 0, "Really black", 0.9, 0.7, 0.9, true)
  225.  
  226. Instance.new("CylinderMesh",rleg2)
  227.  
  228. local w = Weld(rleg, rleg2, -3, 0, 0, 0, 0, math.rad(i))
  229.  
  230. w.C1 = CFrame.new(-3,0,0)
  231.  
  232. end
  233.  
  234.  
  235.  
  236. local Llmodel = Instance.new("Model",model)
  237.  
  238. local lleg = Part(Llmodel, false, true, 0, 0, "Really black", 0.9, 0.7, 0.9, true)
  239.  
  240. Instance.new("CylinderMesh",lleg)
  241.  
  242. local llb = Part(model, false, true, 1, 0, "Really black", 0.1, 0.1, 0.1, true)
  243.  
  244. local llh = Weld(body, llb, 0, -1.9, 0, 0, 0, 0)
  245.  
  246. local llw = Weld(llb, lleg, 0, 0, 0, 0, math.pi, math.pi/2.8)
  247.  
  248.  
  249.  
  250. for i=0, -70, -10 do
  251.  
  252. local lleg2 = Part(Llmodel, false, true, 0, 0, "Really black", 0.9, 0.7, 0.9, true)
  253.  
  254. Instance.new("CylinderMesh",lleg2)
  255.  
  256. local w = Weld(lleg, lleg2, -3, 0, 0, 0, 0, math.rad(i))
  257.  
  258. w.C1 = CFrame.new(-3,0,0)
  259.  
  260. end
  261.  
  262. model.Parent = workspace
  263.  
  264. model:MakeJoints()
  265.  
  266. model:MoveTo(pos)
  267.  
  268. coroutine.resume(coroutine.create(function()
  269.  
  270. while true do
  271.  
  272. wait()
  273.  
  274. if body.Velocity.magnitude > 2 then
  275.  
  276. coroutine.resume(coroutine.create(function()
  277.  
  278. for i=0,40,5 do
  279.  
  280. rw.C1 = CFrame.Angles(math.rad(i),0,0)
  281.  
  282. lw.C1 = CFrame.Angles(math.rad(i),0,0)
  283.  
  284. llw.C1 = CFrame.Angles(math.rad(-i),0,0)
  285.  
  286. rlw.C1 = CFrame.Angles(math.rad(-i),0,0)
  287.  
  288. wait()
  289.  
  290. end
  291.  
  292. for i=40,-40,-5 do
  293.  
  294. rw.C1 = CFrame.Angles(math.rad(i),0,0)
  295.  
  296. lw.C1 = CFrame.Angles(math.rad(i),0,0)
  297.  
  298. llw.C1 = CFrame.Angles(math.rad(-i),0,0)
  299.  
  300. rlw.C1 = CFrame.Angles(math.rad(-i),0,0)
  301.  
  302. wait()
  303.  
  304. end
  305.  
  306. for i=-40,0,5 do
  307.  
  308. rw.C1 = CFrame.Angles(math.rad(i),0,0)
  309.  
  310. lw.C1 = CFrame.Angles(math.rad(i),0,0)
  311.  
  312. llw.C1 = CFrame.Angles(math.rad(-i),0,0)
  313.  
  314. rlw.C1 = CFrame.Angles(math.rad(-i),0,0)
  315.  
  316. wait()
  317.  
  318. end
  319.  
  320. end))
  321.  
  322. end
  323.  
  324. local jelly = findjelly(body.Position)
  325.  
  326. if jelly ~= nil then
  327.  
  328. bg.cframe = getcf(body.Position, jelly.Position)
  329.  
  330. bv.velocity = bg.cframe.lookVector * 25
  331.  
  332. else
  333.  
  334. bv.velocity = Vector3.new(0,0,0)
  335.  
  336. end
  337.  
  338. end
  339.  
  340. end))
  341.  
  342. end
  343.  
  344.  
  345.  
  346. maketroll(Vector3.new(0,5,0))
Add Comment
Please, Sign In to add comment