Gokussjg

Untitled

Nov 15th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.18 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. repeat wait() until Player.Character
  3. Mouse = Player:GetMouse()
  4. wait(1)
  5.  
  6. cam = game.Workspace.CurrentCamera
  7. chatting = false
  8. canclose = true
  9. Player.Character["Humanoid"].MaxHealth = 10
  10. state = "healthy"
  11. gasterside = 1
  12.  
  13. function makeeye()
  14. gloweye = Instance.new("Part")
  15. gloweye.Transparency = 1
  16. gloweye.CanCollide = false
  17. gloweye.Size = Vector3.new(0,0,0)
  18. gloweye.Parent = Player.Character
  19. local w = Instance.new("Weld", Player.Character.Head)
  20. w.Part0 = Player.Character.Head
  21. w.Part1 = gloweye
  22. w.C1 = CFrame.fromEulerAnglesXYZ(0, 0, 0) * CFrame.new(-0.25, -0.1, 0.6)
  23. gloweffect = Instance.new("Fire",gloweye)
  24. gloweffect.Color = Color3.new(85,255,255)
  25. gloweffect.SecondaryColor = Color3.new(255,255,255)
  26. gloweffect.Size = 2
  27. gloweffect.Heat = 11
  28. gloweffect.Enabled = false
  29. end
  30. makeeye()
  31.  
  32. function makeshitthatsinthescript()
  33. gastermodel = Instance.new("Part", script)
  34. gastermodel.Anchored =true
  35. local m = Instance.new("SpecialMesh",gastermodel)
  36. m.MeshType = "FileMesh"
  37. m.MeshId = "http://www.roblox.com/asset/?id=14028428"
  38. gastermodel.CanCollide = false
  39. gastermodel.Size = Vector3.new(0,0,0)
  40. gastermodel.Transparency = 1
  41. m.Scale = Vector3.new(3.403, 3.403, 3.403)
  42.  
  43. soundchat = Instance.new("Sound", Player.Character["Head"])
  44. soundchat.SoundId = "rbxassetid://417445954"
  45. soundchat.Volume = 0.5
  46.  
  47. billboard = Instance.new("BillboardGui", script)
  48. billboard.Active = false
  49. billboard.AlwaysOnTop = false
  50. billboard.Enabled = false
  51. billboard.ExtentsOffset = Vector3.new(0,0,0)
  52. billboard.Name = "SansChat"
  53. billboard.Size = UDim2.new(0,30,0,30)
  54. billboard.StudsOffset = Vector3.new(-2.5,3,0)
  55. billboard.Archivable = true
  56.  
  57. layout = Instance.new("ImageLabel", billboard)
  58. layout.Active = false
  59. layout.BackgroundTransparency = 0
  60. layout.BorderSizePixel = 0
  61. layout.Name = "Layout"
  62. layout.Position = UDim2.new(0,-53,0,-54)
  63. layout.Size = UDim2.new(0,278,0,76)
  64. layout.Visible = true
  65. layout.Image = "http://www.roblox.com/asset/?id=422517295"
  66.  
  67. face = Instance.new("ImageLabel",layout)
  68. face.Name = "Face"
  69. face.Active = false
  70. face.BorderSizePixel = 0
  71. face.Position = UDim2.new(0,14,0,15)
  72. face.Size = UDim2.new(0,40,0,40)
  73. face.Visible = true
  74. face.Image = "http://www.roblox.com/asset/?id=422518991"
  75.  
  76. text = Instance.new("TextLabel",layout)
  77. text.TextWrapped = true
  78. text.TextColor3 = Color3.new(255,255,255)
  79. text.BackgroundTransparency = 1
  80. text.BorderSizePixel = 0
  81. text.Name = "Text"
  82. text.Position = UDim2.new(0,80,0,5)
  83. text.Size = UDim2.new(0,200,0,70)
  84. text.Visible = true
  85. text.Font = "SourceSans"
  86. text.FontSize = "Size36"
  87. text.Text = ""
  88. text.TextScaled = true
  89. text.TextXAlignment = "Left"
  90. end
  91. makeshitthatsinthescript()
  92.  
  93. function givepantsnshirt()
  94. for i,v in pairs(Player.Character:GetChildren()) do
  95. if v:IsA("Shirt") or v:IsA("Pants") then
  96. v:remove()
  97. end
  98.  
  99. if v:IsA("BodyColors") then
  100. v:remove()
  101. end
  102.  
  103. if v.Name == "Head" then
  104. v:FindFirstChild("face"):remove()
  105. end
  106.  
  107. if v:IsA("Hat") then
  108. v:remove()
  109. end
  110. end
  111.  
  112. bc = Instance.new("BodyColors")
  113. bc.HeadColor = BrickColor.new("Institutional white")
  114. bc.LeftArmColor = BrickColor.new("Institutional white")
  115. bc.RightArmColor = BrickColor.new("Institutional white")
  116. bc.LeftLegColor = BrickColor.new("Institutional white")
  117. bc.RightLegColor = BrickColor.new("Institutional white")
  118. bc.TorsoColor = BrickColor.new("Institutional white")
  119. bc.Parent = Player.Character
  120. shirt = Instance.new("Shirt")
  121. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=302011210"
  122. shirt.Parent = Player.Character
  123. pants = Instance.new("Pants")
  124. pants.PantsTemplate = "http://www.roblox.com/asset/?id=305718140"
  125. pants.Parent = Player.Character
  126.  
  127. for i,v in pairs(Player.Character:GetChildren()) do
  128. if v:IsA("Part") then
  129. v.BrickColor = BrickColor.new("Institutional white")
  130. end
  131. end
  132. end
  133.  
  134. givepantsnshirt()
  135.  
  136. function close(waittime)
  137. for i = 0,waittime do
  138. wait(1)
  139. if canclose == false then
  140. do return end
  141. end
  142. end
  143.  
  144. if canclose == true then
  145. chat.Enabled = false
  146. end
  147. end
  148.  
  149. function createChat(adornee)
  150. chat = script:FindFirstChild("SansChat"):Clone()
  151. chat.Name = "SansChat"
  152. chat.Adornee = adornee
  153. chat.Parent = adornee.Parent
  154. textchat = chat:FindFirstChild("Layout"):FindFirstChild("Text")
  155. face = chat:findFirstChild("Layout"):FindFirstChild("Face")
  156. end
  157.  
  158. createChat(Player.Character["Head"])
  159.  
  160. function chatted(message)
  161. if chatting == false then
  162. canclose = false
  163. chat.Enabled = true
  164. chatting = true
  165. textchat.Text = ""
  166. message = string.lower(message)
  167. from = 1
  168. to = 0
  169. for i = 0, string.len(message) do
  170. wait(0.1)
  171. soundchat:Play()
  172. textchat.Text = string.sub(message,from,to)
  173. to = to+1
  174. end
  175. chatting = false
  176. canclose = true
  177. close(3)
  178. end
  179. end
  180.  
  181. function winkyface()
  182. if state == "healthy" then
  183. face.Image = "http://www.roblox.com/asset/?id=422518991"
  184. end
  185. end
  186.  
  187. function oneblackeye()
  188. if state == "healthy" then
  189. face.Image = "http://www.roblox.com/asset/?id=422554201"
  190. end
  191. end
  192.  
  193. function normaleye()
  194. face.Image = "http://www.roblox.com/asset/?id=302666935"
  195. end
  196.  
  197. Player.Chatted:connect(function(msg)
  198. print(msg)
  199. if string.find(msg, "burning in hell") or string.find(msg, "slit your throat") or string.find(msg, "you're gonna die") or msg == "die" or msg == "die." then
  200. oneblackeye()
  201. end
  202.  
  203. if msg == ";p" or msg == ":p" or msg == ":P" or msg == ";P" then
  204. winkyface()
  205. end
  206. chatted(msg)
  207. normaleye()
  208. end)
  209.  
  210. game:GetService("RunService").RenderStepped:connect(function() --my loop 1
  211. if Player.Character["Humanoid"].Health < 5 then
  212. state = "damaged"
  213. else
  214. state = "healthy"
  215. end
  216.  
  217. if state == "damaged" then
  218. face.Image = "http://www.roblox.com/asset/?id=422519072"
  219. end
  220.  
  221. if gasterblaster ~= nil then
  222. if gasterside == 1 then
  223. bpgaster.Position = Player.Character.Torso.CFrame:pointToWorldSpace(Vector3.new(-12,19,-3))
  224. else
  225. if gasterside == 2 then
  226. bpgaster.Position = Player.Character.Torso.CFrame:pointToWorldSpace(Vector3.new(12,19,-3))
  227. end
  228. end
  229. gasterblaster.CFrame = CFrame.new(gasterblaster.Position, Mouse.hit.p - gasterblaster.CFrame.p)
  230. end
  231. if gasterblaster == nil then
  232. debounce = true
  233. end
  234. end)
  235.  
  236. debounce = true
  237. Mouse.KeyDown:connect(function(key)
  238. if key == "f" then
  239. s = Instance.new("Sound", Player.Character.Head)
  240. s.SoundId = "rbxassetid://382366855"
  241. s.Volume = 1
  242. s:Play()
  243. if gasterblaster == nil and debounce == true then
  244. debounce = false
  245. gloweffect.Enabled = true
  246. charge = 5
  247. print("make")
  248. gasterblaster = gastermodel:Clone()
  249. gasterblaster.CFrame = CFrame.new(Player.Character.Torso.Position)
  250. gasterblaster.Transparency = 0
  251. gasterblaster.Anchored = false
  252. bpgaster = Instance.new("BodyPosition", gasterblaster)
  253. bpgaster.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  254.  
  255. gasterblaster.Parent = game.Workspace
  256. end
  257. end
  258. end)
  259.  
  260. Mouse.Button1Down:connect(function()
  261. if gasterblaster ~= nil then
  262. charging = true
  263. end
  264. end)
  265.  
  266. Mouse.Button1Up:connect(function()
  267. if gasterblaster ~= nil then
  268. print("shoot")
  269. gloweffect.Enabled = false
  270. charging = false
  271. s = Instance.new("Sound", Player.Character.Head)
  272. s.SoundId = "rbxassetid://340722848"
  273. s.Volume = 1
  274. s:Play()
  275. if gasterside == 1 then
  276. gasterside = 2
  277. elseif gasterside == 2 then
  278. gasterside = 1
  279. end
  280. local ray = Ray.new(gasterblaster.CFrame.p, (Mouse.Hit.p - gasterblaster.CFrame.p).unit * 1000)
  281. local part, position = workspace:FindPartOnRay(ray, Player.Character)--, false, true)
  282. local beam = Instance.new("Part")
  283. beam.Name = "beeeeeem---"
  284. local m = Instance.new("SpecialMesh", beam)
  285. m.MeshType = "Sphere"
  286. beam.Material = "Neon"
  287. beam.CanCollide = false
  288. beam.Anchored = true
  289. local distance = (gasterblaster.CFrame.p - position).magnitude
  290. beam.Size = Vector3.new(charge, charge, distance)
  291. beam.CFrame = CFrame.new(gasterblaster.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) * CFrame.new(0, 0, 2)
  292. beam.Parent = game.Workspace
  293. game.Debris:AddItem(beam,2)
  294. if part then
  295. if part.Name ~= "Baseplate" and part.Size.X < 20 and part.Size.Z < 20 and part.Size.Y < 20 then
  296. part:remove()
  297. end
  298. end
  299. beam.Touched:connect(function(hit)
  300. if hit then
  301. if hit.Parent and hit.Parent ~= Player.Character then
  302. if hit.Parent:FindFirstChild("Humanoid") then
  303. hit:remove()
  304. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(3,10))
  305. end
  306. end
  307. end
  308. end)
  309.  
  310. for i =1, 10 do
  311. wait(0.01)
  312. beam.Transparency = beam.Transparency + 0.1
  313. if gasterblaster then
  314. gasterblaster.Transparency = gasterblaster.Transparency + 0.1
  315. end
  316. end
  317. if beam then
  318. beam:remove()
  319. end
  320. if gasterblaster ~= nil then
  321. gasterblaster:remove()
  322. gasterblaster = nil
  323. end
  324. end
  325. end)
  326.  
  327. telekinesis = false
  328.  
  329.  
  330.  
  331. Mouse.KeyDown:connect(function(key)
  332. if key == "g" then
  333. if telekinesis == false then
  334. if Mouse.Target ~= nil or Mouse.Target.Parent ~= nil then
  335. if Mouse.Target.Parent:FindFirstChild("Humanoid") then
  336. print(Mouse.Target)
  337. telekinesis = true
  338. gloweffect.Enabled = true
  339. bptele = Instance.new("BodyPosition")
  340. bptele.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  341. bptele.Parent = Mouse.Target.Parent:FindFirstChild("Torso")
  342. end
  343. end
  344. else
  345. if telekinesis == true then
  346. telekinesis = false
  347. gloweffect.Enabled = false
  348. if bptele then
  349. bptele:Remove()
  350. end
  351. end
  352. end
  353. end
  354. end)
  355.  
  356. function aftereffect()
  357. model = Instance.new("Model", game.Workspace)
  358. for i,v in pairs(Player.Character:GetChildren()) do
  359. if v:IsA("Part") then
  360. p = v:Clone()
  361. p.CanCollide = false
  362. p.Anchored = true
  363. p.Parent = model
  364. end
  365.  
  366. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("BodyColors") or v:IsA("Humanoid") then
  367. p= v:Clone()
  368. p.Parent = model
  369.  
  370. if p:IsA("Humanoid") then
  371. p.DisplayDistanceType = "None"
  372. end
  373. end
  374. end
  375. end
  376.  
  377. function maketrans(modd)
  378. for i = 1, 10 do
  379. wait(0.01)
  380. for i,v in pairs(modd:GetChildren()) do
  381. if v:IsA("Part") then
  382. v.Transparency = v.Transparency+0.1
  383. end
  384. end
  385. end
  386. modd:remove()
  387. end
  388.  
  389. Mouse.KeyDown:connect(function(key)
  390. if key == "q" then
  391. if Mouse.Target ~= nil then
  392. aftereffect()
  393. Player.Character:MoveTo(Mouse.Hit.p)
  394. maketrans(model)
  395. end
  396. end
  397. end)
  398.  
  399. while true do wait() --my loop 2
  400. if charging == true then
  401. if gasterblaster ~= nil then
  402. charge = charge + 1
  403. local p = Instance.new("Part")
  404. local m = Instance.new("SpecialMesh",p)
  405. m.MeshType = "Sphere"
  406. p.Anchored = true
  407. p.CanCollide = false
  408. p.BrickColor = BrickColor.new("Institutional white")
  409. p.Material = "Neon"
  410. p.Size = Vector3.new(math.random(-3,4),math.random(-3,1),math.random(1,3))
  411. p.CFrame = CFrame.new(gasterblaster.Position)* CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  412. p.Parent = game.Workspace
  413. game.Debris:AddItem(p,0.1)
  414. end
  415. end
  416.  
  417. if telekinesis == true then
  418. gloweffect.Enabled = true
  419. if bptele then
  420. if Mouse.Target ~= nil then
  421. bptele.Position = Mouse.Hit.p + Vector3.new(0, 7, 0)
  422. end
  423. end
  424. end
  425. end
Add Comment
Please, Sign In to add comment