Gokussjg

Untitled

Nov 15th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.07 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. if gasterblaster == nil and debounce == true then
  240. debounce = false
  241. gloweffect.Enabled = true
  242. charge = 5
  243. print("make")
  244. gasterblaster = gastermodel:Clone()
  245. gasterblaster.CFrame = CFrame.new(Player.Character.Torso.Position)
  246. gasterblaster.Transparency = 0
  247. gasterblaster.Anchored = false
  248. bpgaster = Instance.new("BodyPosition", gasterblaster)
  249. bpgaster.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  250.  
  251. gasterblaster.Parent = game.Workspace
  252. end
  253. end
  254. end)
  255.  
  256. Mouse.Button1Down:connect(function()
  257. if gasterblaster ~= nil then
  258. charging = true
  259. end
  260. end)
  261.  
  262. Mouse.Button1Up:connect(function()
  263. if gasterblaster ~= nil then
  264. print("shoot")
  265. gloweffect.Enabled = false
  266. charging = false
  267. s = Instance.new("Sound", Player.Character.Head)
  268. s.SoundId = "rbxassetid://332223043"
  269. s.Volume = 1
  270. s:Play()
  271. if gasterside == 1 then
  272. gasterside = 2
  273. elseif gasterside == 2 then
  274. gasterside = 1
  275. end
  276. local ray = Ray.new(gasterblaster.CFrame.p, (Mouse.Hit.p - gasterblaster.CFrame.p).unit * 1000)
  277. local part, position = workspace:FindPartOnRay(ray, Player.Character)--, false, true)
  278. local beam = Instance.new("Part")
  279. beam.Name = "beeeeeem---"
  280. local m = Instance.new("SpecialMesh", beam)
  281. m.MeshType = "Sphere"
  282. beam.Material = "Neon"
  283. beam.CanCollide = false
  284. beam.Anchored = true
  285. local distance = (gasterblaster.CFrame.p - position).magnitude
  286. beam.Size = Vector3.new(charge, charge, distance)
  287. beam.CFrame = CFrame.new(gasterblaster.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) * CFrame.new(0, 0, 2)
  288. beam.Parent = game.Workspace
  289. game.Debris:AddItem(beam,2)
  290. if part then
  291. if part.Name ~= "Baseplate" and part.Size.X < 20 and part.Size.Z < 20 and part.Size.Y < 20 then
  292. part:remove()
  293. end
  294. end
  295. beam.Touched:connect(function(hit)
  296. if hit then
  297. if hit.Parent and hit.Parent ~= Player.Character then
  298. if hit.Parent:FindFirstChild("Humanoid") then
  299. hit:remove()
  300. hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.random(3,10))
  301. end
  302. end
  303. end
  304. end)
  305.  
  306. for i =1, 10 do
  307. wait(0.01)
  308. beam.Transparency = beam.Transparency + 0.1
  309. if gasterblaster then
  310. gasterblaster.Transparency = gasterblaster.Transparency + 0.1
  311. end
  312. end
  313. if beam then
  314. beam:remove()
  315. end
  316. if gasterblaster ~= nil then
  317. gasterblaster:remove()
  318. gasterblaster = nil
  319. end
  320. end
  321. end)
  322.  
  323. telekinesis = false
  324.  
  325.  
  326.  
  327. Mouse.KeyDown:connect(function(key)
  328. if key == "g" then
  329. if telekinesis == false then
  330. if Mouse.Target ~= nil or Mouse.Target.Parent ~= nil then
  331. if Mouse.Target.Parent:FindFirstChild("Humanoid") then
  332. print(Mouse.Target)
  333. telekinesis = true
  334. gloweffect.Enabled = true
  335. bptele = Instance.new("BodyPosition")
  336. bptele.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  337. bptele.Parent = Mouse.Target.Parent:FindFirstChild("Torso")
  338. end
  339. end
  340. else
  341. if telekinesis == true then
  342. telekinesis = false
  343. gloweffect.Enabled = false
  344. if bptele then
  345. bptele:Remove()
  346. end
  347. end
  348. end
  349. end
  350. end)
  351.  
  352. function aftereffect()
  353. model = Instance.new("Model", game.Workspace)
  354. for i,v in pairs(Player.Character:GetChildren()) do
  355. if v:IsA("Part") then
  356. p = v:Clone()
  357. p.CanCollide = false
  358. p.Anchored = true
  359. p.Parent = model
  360. end
  361.  
  362. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("BodyColors") or v:IsA("Humanoid") then
  363. p= v:Clone()
  364. p.Parent = model
  365.  
  366. if p:IsA("Humanoid") then
  367. p.DisplayDistanceType = "None"
  368. end
  369. end
  370. end
  371. end
  372.  
  373. function maketrans(modd)
  374. for i = 1, 10 do
  375. wait(0.01)
  376. for i,v in pairs(modd:GetChildren()) do
  377. if v:IsA("Part") then
  378. v.Transparency = v.Transparency+0.1
  379. end
  380. end
  381. end
  382. modd:remove()
  383. end
  384.  
  385. Mouse.KeyDown:connect(function(key)
  386. if key == "q" then
  387. if Mouse.Target ~= nil then
  388. aftereffect()
  389. Player.Character:MoveTo(Mouse.Hit.p)
  390. maketrans(model)
  391. end
  392. end
  393. end)
  394.  
  395. while true do wait() --my loop 2
  396. if charging == true then
  397. if gasterblaster ~= nil then
  398. charge = charge + 1
  399. local p = Instance.new("Part")
  400. local m = Instance.new("SpecialMesh",p)
  401. m.MeshType = "Sphere"
  402. p.Anchored = true
  403. p.CanCollide = false
  404. p.BrickColor = BrickColor.new("Institutional white")
  405. p.Material = "Neon"
  406. p.Size = Vector3.new(math.random(-3,4),math.random(-3,1),math.random(1,3))
  407. 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)))
  408. p.Parent = game.Workspace
  409. game.Debris:AddItem(p,0.1)
  410. end
  411. end
  412.  
  413. if telekinesis == true then
  414. gloweffect.Enabled = true
  415. if bptele then
  416. if Mouse.Target ~= nil then
  417. bptele.Position = Mouse.Hit.p + Vector3.new(0, 7, 0)
  418. end
  419. end
  420. end
  421. end
Add Comment
Please, Sign In to add comment