Advertisement
dahpiglz

GhostScript

Oct 27th, 2017
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("RAN")
  2. local player = game.Players.LocalPlayer
  3. local c = player.Character
  4. local mouse = player:GetMouse()
  5.  
  6. p = Instance.new("ForceField")
  7. p.Parent = c
  8. p.Visible = false
  9.  
  10. for i,v in pairs(c:GetChildren()) do
  11. if v.ClassName == ("Part") then
  12. v.Transparency = 1
  13. end
  14. if v.ClassName == ("Accessory") then
  15. v:Destroy()
  16. end
  17. v:Destroy()
  18. end
  19.  
  20. if c:FindFirstChild("Head") ~= nil then
  21. if c.Head:FindFirstChild("face") ~= nil then
  22. c.Head.face:Destroy()
  23. end
  24. end
  25.  
  26. moveup = 0
  27. movedown = 0
  28.  
  29. moveforward = 0
  30. movebackward = 0
  31.  
  32. moveleft = 0
  33. moveright = 0
  34.  
  35. local character = Instance.new("Model")
  36. character.Parent = game.Workspace
  37.  
  38. script.Parent = character
  39.  
  40. core = nil
  41.  
  42. coreframe = nil
  43.  
  44. local core1 = Instance.new("Part")
  45. core1.Parent = character
  46. core1.Material = ("Neon")
  47. core1.Size = Vector3.new(2,2,1)
  48. core1.Transparency = 0.5
  49. core1.Anchored = true
  50. core1.CanCollide = false
  51. core = core1
  52.  
  53. game.Workspace.Camera.CameraSubject = core
  54.  
  55. local head = Instance.new("Part")
  56. head.Parent = character
  57. head.Material = ("Neon")
  58. head.Size = Vector3.new(1,1,1)
  59. head.Transparency = 0.5
  60. head.Anchored = true
  61. head.CanCollide = false
  62.  
  63. local larm = Instance.new("Part")
  64. larm.Parent = character
  65. larm.Material = ("Neon")
  66. larm.Size = Vector3.new(1,2,1)
  67. larm.Transparency = 0.5
  68. larm.Anchored = true
  69. larm.CanCollide = false
  70.  
  71. local rarm = Instance.new("Part")
  72. rarm.Parent = character
  73. rarm.Material = ("Neon")
  74. rarm.Size = Vector3.new(1,2,1)
  75. rarm.Transparency = 0.5
  76. rarm.Anchored = true
  77. rarm.CanCollide = false
  78.  
  79. local lleg = Instance.new("Part")
  80. lleg.Parent = character
  81. lleg.Material = ("Neon")
  82. lleg.Size = Vector3.new(1,2,1)
  83. lleg.Transparency = 0.5
  84. lleg.Anchored = true
  85. lleg.CanCollide = false
  86.  
  87. local rleg = Instance.new("Part")
  88. rleg.Parent = character
  89. rleg.Material = ("Neon")
  90. rleg.Size = Vector3.new(1,2,1)
  91. rleg.Transparency = 0.5
  92. rleg.Anchored = true
  93. rleg.CanCollide = false
  94.  
  95. for i,v in pairs(character:GetChildren()) do
  96. if v.ClassName == ("Part") then
  97. v.Color = Color3.fromRGB(255,255,255)
  98. v.Material = ("Glass")
  99. end
  100. end
  101.  
  102. game:GetService("UserInputService").InputBegan:connect(function(input)
  103. if input.KeyCode == Enum.KeyCode.E then
  104. moveup = 1
  105. end
  106. end)
  107.  
  108. game:GetService("UserInputService").InputEnded:connect(function(input)
  109. if input.KeyCode == Enum.KeyCode.E then
  110. moveup = 0
  111. end
  112. end)
  113.  
  114.  
  115.  
  116. game:GetService("UserInputService").InputBegan:connect(function(input)
  117. if input.KeyCode == Enum.KeyCode.Q then
  118. movedown = 1
  119. end
  120. end)
  121.  
  122. game:GetService("UserInputService").InputEnded:connect(function(input)
  123. if input.KeyCode == Enum.KeyCode.Q then
  124. movedown = 0
  125. end
  126. end)
  127.  
  128.  
  129.  
  130. game:GetService("UserInputService").InputBegan:connect(function(input)
  131. if input.KeyCode == Enum.KeyCode.W then
  132. moveforward = 1
  133. end
  134. end)
  135.  
  136. game:GetService("UserInputService").InputEnded:connect(function(input)
  137. if input.KeyCode == Enum.KeyCode.W then
  138. moveforward = 0
  139. end
  140. end)
  141.  
  142.  
  143.  
  144. game:GetService("UserInputService").InputBegan:connect(function(input)
  145. if input.KeyCode == Enum.KeyCode.S then
  146. movebackward = 1
  147. end
  148. end)
  149.  
  150. game:GetService("UserInputService").InputEnded:connect(function(input)
  151. if input.KeyCode == Enum.KeyCode.S then
  152. movebackward = 0
  153. end
  154. end)
  155.  
  156.  
  157.  
  158. game:GetService("UserInputService").InputBegan:connect(function(input)
  159. if input.KeyCode == Enum.KeyCode.A then
  160. moveleft = 1
  161. end
  162. end)
  163.  
  164. game:GetService("UserInputService").InputEnded:connect(function(input)
  165. if input.KeyCode == Enum.KeyCode.A then
  166. moveleft = 0
  167. end
  168. end)
  169.  
  170.  
  171.  
  172. game:GetService("UserInputService").InputBegan:connect(function(input)
  173. if input.KeyCode == Enum.KeyCode.D then
  174. moveright = 1
  175. end
  176. end)
  177.  
  178. game:GetService("UserInputService").InputEnded:connect(function(input)
  179. if input.KeyCode == Enum.KeyCode.D then
  180. moveright = 0
  181. end
  182. end)
  183.  
  184. game:GetService("UserInputService").InputBegan:connect(function(input)
  185. if input.KeyCode == Enum.KeyCode.Z then
  186. for i,v in pairs(character:GetChildren()) do
  187. if v.ClassName == ("Part") then
  188. v.Material = ("Neon")
  189. end
  190. end
  191. end
  192. end)
  193.  
  194. game:GetService("UserInputService").InputBegan:connect(function(input)
  195. if input.KeyCode == Enum.KeyCode.X then
  196. for i,v in pairs(character:GetChildren()) do
  197. if v.ClassName == ("Part") then
  198. v.Material = ("Glass")
  199. end
  200. end
  201. end
  202. end)
  203.  
  204. game:GetService("UserInputService").InputBegan:connect(function(input)
  205. if input.KeyCode == Enum.KeyCode.R then
  206. local core1 = Instance.new("Part")
  207. core1.Parent = character
  208. core1.Material = ("Neon")
  209. core1.Size = Vector3.new(2,2,1)
  210. core1.Transparency = 0.5
  211. core1.Anchored = true
  212. core1.CanCollide = false
  213. core = core1
  214.  
  215. game.Workspace.Camera.CameraSubject = core
  216.  
  217. head = Instance.new("Part")
  218. head.Parent = character
  219. head.Material = ("Neon")
  220. head.Size = Vector3.new(1,1,1)
  221. head.Transparency = 0.5
  222. head.Anchored = true
  223. head.CanCollide = false
  224.  
  225. larm = Instance.new("Part")
  226. larm.Parent = character
  227. larm.Material = ("Neon")
  228. larm.Size = Vector3.new(1,2,1)
  229. larm.Transparency = 0.5
  230. larm.Anchored = true
  231. larm.CanCollide = false
  232.  
  233. rarm = Instance.new("Part")
  234. rarm.Parent = character
  235. rarm.Material = ("Neon")
  236. rarm.Size = Vector3.new(1,2,1)
  237. rarm.Transparency = 0.5
  238. rarm.Anchored = true
  239. rarm.CanCollide = false
  240.  
  241. lleg = Instance.new("Part")
  242. lleg.Parent = character
  243. lleg.Material = ("Neon")
  244. lleg.Size = Vector3.new(1,2,1)
  245. lleg.Transparency = 0.5
  246. lleg.Anchored = true
  247. lleg.CanCollide = false
  248.  
  249. rleg = Instance.new("Part")
  250. rleg.Parent = character
  251. rleg.Material = ("Neon")
  252. rleg.Size = Vector3.new(1,2,1)
  253. rleg.Transparency = 0.5
  254. rleg.Anchored = true
  255. rleg.CanCollide = false
  256.  
  257. end
  258. end)
  259.  
  260. while true do
  261. wait(0.01)
  262. if core == nil or core.Parent == nil then
  263. local core2 = Instance.new("Part")
  264. core2.Parent = character
  265. core2.Material = ("Neon")
  266. core2.Size = Vector3.new(3,3,3)
  267. core2.Transparency = 0.5
  268. core2.Anchored = true
  269. core2.Shape = ("Ball")
  270. core = core2
  271. game.Workspace.Camera.CameraSubject = core
  272. end
  273. if core.Parent ~= character then
  274. core.Parent = character
  275. end
  276. if moveup == 1 then
  277. core.CFrame = core.CFrame + core.CFrame.upVector
  278. end
  279. if movedown == 1 then
  280. core.CFrame = core.CFrame - core.CFrame.upVector
  281. end
  282.  
  283. if moveforward == 1 then
  284. core.CFrame = core.CFrame + core.CFrame.lookVector
  285. end
  286. if movebackward == 1 then
  287. core.CFrame = core.CFrame - core.CFrame.lookVector
  288. end
  289. if moveright == 1 then
  290. core.CFrame = core.CFrame + core.CFrame.rightVector
  291. end
  292. if moveleft == 1 then
  293. core.CFrame = core.CFrame - core.CFrame.rightVector
  294. end
  295.  
  296. co = core.Position
  297. core.CFrame = mouse.Hit
  298. core.Position = co
  299.  
  300. head.CFrame = core.CFrame + (core.CFrame.upVector * 1.5)
  301.  
  302. rarm.CFrame = core.CFrame + (core.CFrame.rightVector * 1.5)
  303. larm.CFrame = core.CFrame - (core.CFrame.rightVector * 1.5)
  304.  
  305. rleg.CFrame = core.CFrame - (core.CFrame.upVector * 2) + (core.CFrame.rightVector * 0.5)
  306. lleg.CFrame = core.CFrame - (core.CFrame.upVector * 2) - (core.CFrame.rightVector * 0.5)
  307.  
  308. if core ~= nil then
  309. coreframe = core.CFrame
  310. end
  311. if core == nil then
  312. local core1 = Instance.new("Part")
  313. core1.Parent = character
  314. core1.Material = ("Neon")
  315. core1.Size = Vector3.new(2,2,1)
  316. core1.Transparency = 0.5
  317. core1.Anchored = true
  318. core1.CanCollide = false
  319. core1.CFrame = coreframe
  320. core = core1
  321. end
  322. if c:FindFirstChild("ForceField") == nil then
  323. p = Instance.new("ForceField")
  324. p.Parent = c
  325. p.Visible = false
  326. end
  327. --c.Humanoid.MaxHealth = math.huge
  328. --c.Humanoid.Health = math.huge
  329. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement