Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.31 KB | None | 0 0
  1. --MADE BY OneLegend (NOT THE SCRIPT) REGULAR SCRIPT: GO TO LINE 3 AND PUT YOUR NAME WHERE IT SAYS "YOUR NAME HERE"
  2.  
  3. Player = "coolfrgetfullgerald"
  4. Player = game.Players[Player]
  5. char = Player.Character
  6. mode1 = "nothing"
  7. mode2 = "nothing"
  8. busy = false
  9. function Color(r, g, b)
  10. return Color3.new(r/255, g/255, b/255)
  11. end
  12. ------------------------------------------------------------
  13. pcall(function() char.Suit:remove() end)
  14. wait()
  15. plyr = Player
  16. lol = Instance.new("Model")
  17. lol.Parent = plyr.Character
  18. lol.Name = "Suit"
  19. function updateLooks()
  20. for i,v in pairs(plyr.Character:getChildren()) do
  21. if v:IsA("Part") then
  22. v.Reflectance = 0.1
  23. v.TopSurface = "Smooth"
  24. v.BottomSurface = "Smooth"
  25. v.LeftSurface = "Smooth"
  26. v.RightSurface = "Smooth"
  27. v.BrickColor = BrickColor.new("Bright yellow")
  28. v.Reflectance = 0.2
  29.  
  30. elseif v:IsA("Hat") then
  31. v:Remove()
  32. elseif v:IsA("Shirt") then
  33. v:Remove()
  34. elseif v:IsA("Pants") then
  35. v:Remove()
  36. end
  37. end
  38. pcall(function()
  39. plyr.Character.Torso.roblox:Remove()
  40. plyr.Character["Shirt Graphic"]:Remove()
  41. end)
  42. local v = Instance.new("Shirt", char)
  43. v.ShirtTemplate = "http://www.roblox.com/asset/?id=2348001"
  44. local v = Instance.new("Pants", char)
  45. v.PantsTemplate = "http://www.roblox.com/asset/?id=2348010"
  46. end
  47. updateLooks()
  48. --Head-----------------------------
  49. hd = Instance.new("Part")
  50. hd.Parent = lol
  51. hd.CanCollide = false
  52. hd.Locked = true
  53. hd.Size = Vector3.new(1,1,1)
  54. hd.formFactor = "Symmetric"
  55. hd.CFrame = CFrame.new(3,3,0)
  56. hd.BrickColor = BrickColor.new("")
  57. m = Instance.new("SpecialMesh")
  58. m.Parent = hd
  59. m.MeshType = "FileMesh"
  60. --m.MeshId =
  61. --m.TextureId =
  62. m.Scale = Vector3.new(1.05, 1.05, 1.05)
  63. local Weld = Instance.new("Weld")
  64. Weld.Parent = hd
  65. Weld.Part0 = hd
  66. Weld.Part1 = plyr.Character.Head
  67. Weld.C0 = CFrame.new(0,-0.10,0)*CFrame.Angles(0,0,0)
  68. -- Cheese Hat--
  69. local _Part = Instance.new("Part", lol)
  70. _Part.Name = "Cheese hat"
  71. _Part.TopSurface = "Smooth"
  72. _Part.BottomSurface = "Smooth"
  73. _Part.Locked = true
  74. _Part.formFactor = "Custom"
  75. _Part.BrickColor = BrickColor.new("Bright yellow")
  76. _Part.Size = Vector3.new(3,3,3)
  77. local mesh = Instance.new("SpecialMesh", _Part)
  78. mesh.Scale = Vector3.new(2,2,2)
  79. mesh.MeshId = "http://www.roblox.com/asset/?id=1090700"
  80. local Weld = Instance.new("Weld")
  81. Weld.Parent = _Part
  82. Weld.Part0 = _Part
  83. Weld.Part1 = plyr.Character.Head
  84. Weld.C0 = CFrame.new(0,-1,0)*CFrame.Angles(0,0,0)
  85. cheese = _Part --:P
  86. --Edit-------------------------------
  87. plyr.Character.Humanoid.MaxHealth = math.huge
  88. f = Instance.new("Fire")
  89. f.Parent = plyr.Character.Torso
  90. --f.Color = Color3.new(5,0,5)--OLD C
  91. f.Color = BrickColor.new("Bright yellow").Color
  92. f.Size = 5
  93. --WalkSpeed--------------------
  94. plyr.Character.Humanoid.WalkSpeed = 50
  95. ----------------------Functions-----------------------------
  96. function raycast(origin, ending, ang)
  97. local ray = Ray.new(
  98. origin.p, -- origin
  99. (ending.p - origin.p).unit * 500 -- direction
  100. )
  101. local hit, Position = game.Workspace:FindPartOnRay(ray, ang)
  102. local RayPart = Instance.new("Part", game.Workspace)
  103. RayPart.Name = "RayPart"
  104. RayPart.BrickColor = BrickColor.new("Bright yellow")
  105. RayPart.Transparency = 0.5
  106. RayPart.Anchored = true
  107. RayPart.CanCollide = false
  108. RayPart.TopSurface = Enum.SurfaceType.Smooth
  109. RayPart.BottomSurface = Enum.SurfaceType.Smooth
  110. RayPart.formFactor = Enum.FormFactor.Custom
  111. local Distance = (Position-origin.p).magnitude
  112. RayPart.Size = Vector3.new(0.2,0.2,Distance)
  113. RayPart.CFrame = CFrame.new(Position,origin.p) * CFrame.new(0,0,-Distance/2)
  114. game.Debris:AddItem(RayPart,0.1)
  115. return hit
  116. end
  117. function onDied()
  118. wait(4.9)
  119. if script.Parent.Parent == nil then return end
  120. script.Parent.Parent = nil
  121. wait(0.1)
  122. script.Parent = Player.Backpack
  123. Player.Character.Humanoid.Died:connect(onDied)
  124. end
  125. function SetAngle(Joint, Angle, Character)
  126. if Character == nil then return false end
  127. local Joints = {
  128. Character.Torso:FindFirstChild("Right Shoulder 2"),
  129. Character.Torso:FindFirstChild("Left Shoulder 2"),
  130. Character.Torso:FindFirstChild("Right Hip 2"),
  131. Character.Torso:FindFirstChild("Left Hip 2")
  132. }
  133. if Joints[Joint] == nil then return false end
  134. if Joint == 1 or Joint == 3 then
  135. Joints[Joint].DesiredAngle = Angle
  136. end
  137. if Joint == 2 or Joint == 4 then
  138. Joints[Joint].DesiredAngle = -Angle
  139. end
  140. end
  141. function ForceAngle(Joint, Angle, Character)
  142. if Character == nil then return false end
  143. local Joints = {
  144. Character.Torso:FindFirstChild("Right Shoulder 2"),
  145. Character.Torso:FindFirstChild("Left Shoulder 2"),
  146. Character.Torso:FindFirstChild("Right Hip 2"),
  147. Character.Torso:FindFirstChild("Left Hip 2")
  148. }
  149. if Joints[Joint] == nil then return false end
  150. if Joint == 1 or Joint == 3 then
  151. Joints[Joint].DesiredAngle = Angle
  152. Joints[Joint].CurrentAngle = Angle
  153. end
  154. if Joint == 2 or Joint == 4 then
  155. Joints[Joint].DesiredAngle = -Angle
  156. Joints[Joint].CurrentAngle = -Angle
  157. end
  158. end
  159. function SetSpeed(Joint, Speed, Character)
  160. if Character == nil then return false end
  161. local Joints = {
  162. Character.Torso:FindFirstChild("Right Shoulder 2"),
  163. Character.Torso:FindFirstChild("Left Shoulder 2"),
  164. Character.Torso:FindFirstChild("Right Hip 2"),
  165. Character.Torso:FindFirstChild("Left Hip 2")
  166. }
  167. if Joints[Joint] == nil then return false end
  168. Joints[Joint].MaxVelocity = Speed
  169. end
  170. function DisableLimb(Limb, Character)
  171. if Character == nil then return false end
  172. if Character:FindFirstChild("Torso") == nil then return false end
  173. local Joints = {
  174. Character.Torso:FindFirstChild("Right Shoulder"),
  175. Character.Torso:FindFirstChild("Left Shoulder"),
  176. Character.Torso:FindFirstChild("Right Hip"),
  177. Character.Torso:FindFirstChild("Left Hip")
  178. }
  179. local Limbs = {
  180. Character:FindFirstChild("Right Arm"),
  181. Character:FindFirstChild("Left Arm"),
  182. Character:FindFirstChild("Right Leg"),
  183. Character:FindFirstChild("Left Leg")
  184. }
  185. if Joints[Limb] == nil then return false end
  186. if Limbs[Limb] == nil then return false end
  187. local Joint = Instance.new("Motor")
  188. Joint.Parent = Character.Torso
  189. Joint.Part0 = Character.Torso
  190. Joint.Part1 = Limbs[Limb]
  191. if Limb == 1 then
  192. Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  193. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  194. Joint.Name = "Right Shoulder 2"
  195. elseif Limb == 2 then
  196. Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  197. Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  198. Joint.Name = "Left Shoulder 2"
  199. elseif Limb == 3 then
  200. Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  201. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  202. Joint.Name = "Right Hip 2"
  203. elseif Limb == 4 then
  204. Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  205. Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  206. Joint.Name = "Left Hip 2"
  207. end
  208. Joint.MaxVelocity = Joints[Limb].MaxVelocity
  209. Joint.CurrentAngle = Joints[Limb].CurrentAngle
  210. Joint.DesiredAngle = Joints[Limb].DesiredAngle
  211. Joints[Limb]:Remove()
  212. end
  213. function ResetLimbCFrame(Limb, Character)
  214. if Character == nil then return false end
  215. if Character.Parent == nil then return false end
  216. if Character:FindFirstChild("Torso") == nil then return false end
  217. local Joints = {
  218. Character.Torso:FindFirstChild("Right Shoulder 2"),
  219. Character.Torso:FindFirstChild("Left Shoulder 2"),
  220. Character.Torso:FindFirstChild("Right Hip 2"),
  221. Character.Torso:FindFirstChild("Left Hip 2")
  222. }
  223. local Limbs = {
  224. Character:FindFirstChild("Right Arm"),
  225. Character:FindFirstChild("Left Arm"),
  226. Character:FindFirstChild("Right Leg"),
  227. Character:FindFirstChild("Left Leg")
  228. }
  229. if Joints[Limb] == nil then return false end
  230. if Limbs[Limb] == nil then return false end
  231. if Limb == 1 then
  232. Joints[Limb].C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  233. Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  234. elseif Limb == 2 then
  235. Joints[Limb].C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  236. Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  237. elseif Limb == 3 then
  238. Joints[Limb].C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  239. Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  240. elseif Limb == 4 then
  241. Joints[Limb].C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  242. Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  243. end
  244. end
  245. function EnableLimb(Limb, Character)
  246. if Character == nil then return false end
  247. if Character:FindFirstChild("Torso") == nil then return false end
  248. local Joints = {
  249. Character.Torso:FindFirstChild("Right Shoulder 2"),
  250. Character.Torso:FindFirstChild("Left Shoulder 2"),
  251. Character.Torso:FindFirstChild("Right Hip 2"),
  252. Character.Torso:FindFirstChild("Left Hip 2")
  253. }
  254. local Limbs = {
  255. Character:FindFirstChild("Right Arm"),
  256. Character:FindFirstChild("Left Arm"),
  257. Character:FindFirstChild("Right Leg"),
  258. Character:FindFirstChild("Left Leg")
  259. }
  260. if Joints[Limb] == nil then return false end
  261. if Limbs[Limb] == nil then return false end
  262. if Limb == 1 then
  263. Joints[Limb].Name = "Right Shoulder"
  264. elseif Limb == 2 then
  265. Joints[Limb].Name = "Left Shoulder"
  266. elseif Limb == 3 then
  267. Joints[Limb].Name = "Right Hip"
  268. elseif Limb == 4 then
  269. Joints[Limb].Name = "Left Hip"
  270. end
  271. Animate = Character:FindFirstChild("Animate")
  272. if Animate == nil then return false end
  273. Animate = Animate:Clone()
  274. Character.Animate:Remove()
  275. Animate.Parent = Character
  276. end
  277. function Weld(x, y)
  278. weld = Instance.new("Weld")
  279. weld.Part0 = x
  280. weld.Part1 = y
  281. CJ = CFrame.new(x.Position)
  282. C0 = x.CFrame:inverse() * CJ
  283. C1 = y.CFrame:inverse() * CJ
  284. weld.C0 = C0
  285. weld.C1 = C1
  286. weld.Parent = x
  287. end
  288. ---------------------
  289. function tagHumanoid(humanoid) local tag = Instance.new("ObjectValue") tag.Name = "creator" tag.Value = Player tag.Parent = humanoid end function untagHumanoid(humanoid) if humanoid ~= nil then local tag = humanoid:FindFirstChild("creator") if tag ~= nil then tag:Remove() end end end
  290. -------------------------------------------------------------------------------------------
  291. function onButton1Down(mouse)
  292. if(mode1 == "Cheese hat")then
  293. if(mode2 == "cheeseray")then
  294. local hit = raycast(cheese.CFrame, mouse.Hit, plyr.Character)
  295. if(hit)then
  296. hit.BrickColor = BrickColor.new("Bright yellow")
  297. local mesh = Instance.new("SpecialMesh", hit)
  298. mesh.Scale = hit.Size
  299. mesh.MeshId = "http://www.roblox.com/asset/?id=1090700"
  300. end
  301. busy = false
  302. elseif mode2 == "Throw" then
  303. if(not busy)then
  304. --[[busy = true]]
  305. DisableLimb(1, char)
  306. SetSpeed(1, .5, char)
  307. SetAngle(1, math.rad(180), char)
  308. wait(0.2)
  309. local _Part = Instance.new("Part", lol)
  310. _Part.Name = "Cheese hat"
  311. _Part.TopSurface = "Smooth"
  312. _Part.BottomSurface = "Smooth"
  313. _Part.Locked = true
  314. _Part.formFactor = "Custom"
  315. _Part.BrickColor = BrickColor.new("Bright yellow")
  316. _Part.Size = Vector3.new(1,1,1)
  317. local mesh = Instance.new("SpecialMesh", _Part)
  318. mesh.Scale = Vector3.new(0.5,0.5,0.5)
  319. mesh.MeshId = "http://www.roblox.com/asset/?id=1090700"
  320. local Weld = Instance.new("Weld")
  321. Weld.Parent = _Part
  322. Weld.Part0 = _Part
  323. Weld.Part1 = char["Right Arm"]
  324. Weld.C0 = CFrame.new(0,1,0)
  325. wait(0.2)
  326. SetSpeed(1, .5, char)
  327. SetAngle(1, math.rad(90), char)
  328. local bp = Instance.new("BodyPosition", _Part)
  329. bp.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  330. bp.position = mouse.Hit.p
  331. _Part.Weld:remove()
  332. _Part.Touched:connect(function(m)
  333. if(m.Parent:FindFirstChild("Humanoid") and not m.Parent == char)then
  334. m.Parent.Humanoid:TakeDamage(30)
  335. _Part:remove()
  336. end
  337. end)
  338. EnableLimb(1, char)
  339. wait(4)
  340. _Part:remove()
  341. end
  342. end
  343. end
  344. end
  345. function onMouseMove(mouse)
  346.  
  347. end
  348. function onButton1Up(mouse)
  349.  
  350. end
  351. function onKeyDown(key, mouse)
  352. key = key:lower()
  353. if mode1 == "nothing" then
  354. if key == "z" then
  355. mode1 = "Cheese hat"
  356. mode2 = "nothing"
  357. elseif key == "x" then
  358. mode1 = "Staff"
  359. mode2 = "nothing"
  360. --Staff showing animation TO DO
  361. end
  362. else
  363. if key == "z" and mode1 == "Cheese hat" then
  364. mode1 = "nothing"
  365. mode2 = "nothing"
  366. elseif key == "x" and mode1 == "Staff" then
  367. mode1 = "nothing"
  368. mode2 = "nothing"
  369. --Staff hiding animation TO DO
  370. else
  371. ---------------DO STUFF :3------------------
  372. if mode1 == "Cheese hat" then
  373. --mod1
  374. if(key == "q")then
  375. if(mode2 == "nothing") then
  376. mode2 = "cheeseray"
  377. elseif mode2 == "cheeseray" then
  378. mode2 = "nothing"
  379. end
  380. elseif key == "e" then
  381. if(mode2 == "nothing") then
  382. mode2 = "Throw"
  383. elseif mode2 == "Throw" then
  384. mode2 = "nothing"
  385. end
  386. end
  387. elseif mode1 == "Staff" then
  388. --mod2 --Staff --To do
  389. end
  390. end
  391. end
  392. end
  393. ----------------------------------------------Connectors-----------------------------------
  394. isgui = true
  395. function showgui()
  396. isgui = true
  397. --Status GUI--
  398. local g = Instance.new("ScreenGui", plyr.PlayerGui)
  399. g.Name = "CheeseSuitStatusGUI"
  400. local t = Instance.new("TextLabel", g)
  401. t.Position = UDim2.new(0, 300, 1, -50)
  402. t.Size = UDim2.new(0, 250, 0, 50)
  403. t.Text = mode1 .. ":" .. mode2
  404. t.FontSize = "Size14"
  405. t.Name = "p"
  406. Spawn(function()
  407. while isgui do
  408. if(isgui)then
  409. pcall(function()
  410. plyr.PlayerGui.CheeseSuitStatusGUI.p.Text = mode1 .. ":" .. mode2
  411. end)
  412. end
  413. wait(0.5)
  414. end
  415. end)
  416. end
  417. function hidegui()
  418. isgui = false
  419. pcall(function() plyr.PlayerGui.CheeseSuitStatusGUI:remove() end)
  420. end
  421. function onSelected(mouse)
  422. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  423. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  424. mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  425. mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
  426. mouse.Move:connect(function() onMouseMove(mouse) end)
  427. showgui()
  428. end
  429. function onDeselected(mouse)
  430. --To do
  431. hidegui()
  432. end
  433. if script.Parent.ClassName ~= "HopperBin" then
  434. if Player == nil then print("Error: Player not found!") return end
  435. Tool = Instance.new("HopperBin")
  436. Tool.Name = "Suit Control"
  437. Tool.Parent = Player.Backpack
  438. script.Name = "Main"
  439. script.Parent = Tool
  440. Player.Character.Humanoid.Died:connect(onDied)
  441. elseif script.Parent.ClassName == "HopperBin" then
  442. Player = script.Parent.Parent.Parent
  443. script.Parent.Selected:connect(onSelected)
  444. script.Parent.Deselected:connect(onDeselected)
  445. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement