Advertisement
BobMe

Pcan

Dec 17th, 2017
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.53 KB | None | 0 0
  1. ----------------------------------------
  2. -- Originally made by Alfederate :D --
  3. -- And Edited By Memo1332 So Fucks Given--
  4. ----------------------------------------
  5.  
  6. -- there's no time to explain! --
  7.  
  8. --- THE BELOW WILL FILTER ALL OBJS THAT APPEAR IN WORKSPACE WITH A TEXT PROPERTY
  9. do
  10. local filteredMessages = { ['___'] = '___' };
  11. local onPropertyChanged = function (obj)
  12. if (obj:isDescendantOf (workspace)) then
  13. local objText = obj.Text;
  14.  
  15. if (objText ~= '___' and objText:find '(%S)') then
  16. if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then
  17. obj.Text = filteredMessages [objText];
  18. elseif (not filteredMessages [objText]) then
  19. obj.Text = '___';
  20.  
  21. local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer);
  22.  
  23. filteredMessages [objText] = filtered;
  24. filteredMessages [filtered] = filtered;
  25.  
  26. obj.Text = filtered;
  27. end;
  28. end;
  29. end;
  30. end;
  31.  
  32. local newInstance = Instance.new;
  33. Instance = {
  34. new = function (class, parent)
  35. local obj = newInstance (class, parent);
  36.  
  37. if (pcall (function()return obj.Text;end)) then
  38. obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
  39. obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
  40. end;
  41.  
  42. return obj;
  43. end;
  44. };
  45. end;
  46. --- THE ABOVE
  47.  
  48. local Mouse = game.Players.LocalPlayer:GetMouse()
  49. local Plr = game.Players.LocalPlayer
  50. local plr = game.Players.LocalPlayer
  51. local s = Instance.new("Sound")
  52.  
  53. base = Instance.new("ScreenGui",plr.PlayerGui)
  54. bbg = Instance.new("BillboardGui",plr.Character.Head)
  55. bbg.Size = UDim2.new(0,200,0,50)
  56. bbg.StudsOffset = Vector3.new(0,3,0)
  57. bbgTl = Instance.new("TextLabel",bbg)
  58. bbgTl.BackgroundTransparency = 1
  59. bbgTl.Size = UDim2.new(10,0,1,0)
  60. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  61. bbgTl.Font = "Code"
  62. bbgTl.Text = " "
  63. bbgTl.TextSize = 25
  64. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  65. bbgTl.TextColor3 = Color3.new(0.99,0,0.95)
  66. bbgTl.TextStrokeTransparency = 0
  67. bbgTl.TextWrapped = true
  68. plr.Chatted:connect(function(msg)
  69. bbgTl.Text = msg
  70. wait(5)
  71. if bbgTl.Text == msg then
  72. bbgTl.Text = " "
  73. end
  74. end)
  75.  
  76. Mouse.KeyDown:connect(function(KeyDown)
  77. if KeyDown == "0" then
  78. s.Name = "Sound"
  79. s.SoundId = "http://www.roblox.com/asset/?id=1135550512"
  80. s.Volume = 8
  81. s.Looped = true
  82. s.Archivable = false
  83. s.Looped = true
  84. s.Parent = game.Workspace
  85. s:Play()
  86. Plr.Character.Humanoid.WalkSpeed = 135
  87. end
  88. end)
  89.  
  90. Mouse.KeyUp:connect(function(KeyUp)
  91. if KeyUp == "0" then
  92. Plr.Character.Humanoid.WalkSpeed = 16
  93. s:Stop()
  94. end
  95. end)
  96.  
  97. local new=Instance.new
  98. local rad=math.rad
  99. local cf=CFrame.new
  100. local v3=Vector3.new
  101. local ang=function(x,y,z)
  102. return CFrame.Angles(rad(x),rad(y),rad(z))
  103. end
  104. local player=game:service'Players'.LocalPlayer
  105. local char=player.Character
  106. local cam=workspace.Camera
  107. local mouse=player:GetMouse()
  108. local weld=function(a,b,c0,c1)
  109. m=Instance.new('Motor',a)
  110. m.Part0=a
  111. m.Part1=b
  112. m.C0=c0
  113. m.C1=c1
  114. return m
  115. end
  116.  
  117. snd='rbxassetid://259048528'
  118. beamm=Instance.new('Model',workspace)
  119. beamm.Name='beam'
  120.  
  121. laser=false
  122.  
  123. rs=Instance.new('Part',char)
  124. rs.Transparency=1
  125. rs.CanCollide=false
  126. rs.BrickColor=BrickColor.new('Forest green')
  127. rs.TopSurface,rs.BottomSurface=0,0
  128. rs.FormFactor=3
  129. rs.Size=Vector3.new(.5,.5,2)
  130.  
  131. ls=rs:Clone()
  132. ls.Parent=char
  133.  
  134. rsw=weld(rs,char.Torso,cf(-1,-.5,0),cf())
  135. lsw=weld(ls,char.Torso,cf(1,-.5,0),cf())
  136. raw=weld(char['Right Arm'],rs,cf(-.5,.6,-.14),ang(90,0,-8))
  137. law=weld(char['Left Arm'],ls,cf(-.3,1.5,-.14),ang(90,0,43))
  138.  
  139. s1=Instance.new('Sound',char)
  140. s1.Volume=20
  141. s1.Pitch=1.3
  142. s1.Looped=true
  143. s1.SoundId=snd
  144.  
  145. particles={}
  146.  
  147. local wep=new('Part',char)
  148. wep.FormFactor=3
  149. wep.CanCollide=false
  150. wep.Size=v3(1.3,6,1.3)
  151. wep.BrickColor=BrickColor.new('Hot pink')
  152. wep.Material='Neon'
  153. wep.TopSurface,wep.BottomSurface=0,0
  154. local wepw=weld(wep,char['Right Arm'],cf(.26,.4,.7),ang(0,0,8))
  155.  
  156. local beam=wep:Clone()
  157. beam:ClearAllChildren()
  158. beam.Material='Neon'
  159. beam.BrickColor=BrickColor.new('Pink')
  160. beam.Size=Vector3.new(3,3,1)
  161. beam.Transparency=.5
  162. beam.Anchored=true
  163. local ms=Instance.new('BlockMesh',beam)
  164. local inner=beam:Clone()
  165. inner.Transparency=0
  166. inner.Material='SmoothPlastic'
  167. inner.BrickColor=BrickColor.new('Pink')
  168. local ms2=inner.Mesh
  169.  
  170. local expl=inner:Clone()
  171. expl.Mesh:Destroy()
  172. expl.Material='Neon'
  173. expl.BrickColor=BrickColor.new('Hot pink')
  174. expl.Size=Vector3.new(11,11,11)
  175. expl.Transparency=.55
  176. pl=Instance.new('PointLight',expl)
  177. pl.Color=expl.BrickColor.Color
  178. pl.Range=pl.Range*2
  179. pl.Name='light'
  180. local br=pl.Range
  181.  
  182. local exa=expl:Clone()
  183. exa.Size=Vector3.new(4,4,4)
  184. pl2=exa.light
  185.  
  186. local part=exa:Clone()
  187. part.Size=Vector3.new(1.5,1.5,1.5)
  188. pl3=part.light
  189. pms=Instance.new('BlockMesh',part)
  190.  
  191. char.Humanoid.Died:connect(function()
  192. laser=false
  193. beam.Parent=nil
  194. inner.Parent=nil
  195. expl.Parent=nil
  196. exa.Parent=nil
  197. s1:stop()
  198. end)
  199.  
  200. mouse.Button1Down:connect(function() if char.Humanoid.Health~=0 then
  201. laser=true
  202. s1.Volume=1.3
  203. s1:play()
  204. end end)
  205. mouse.Button1Up:connect(function()
  206. laser=false
  207. beam.Parent=nil
  208. inner.Parent=nil
  209. expl.Parent=nil
  210. exa.Parent=nil
  211. s1:stop()
  212. end)
  213.  
  214. parti=0
  215. game:service'RunService'.Stepped:connect(function()
  216. parti=parti+1
  217. for i,v in pairs(particles) do
  218. v.CFrame=v.CFrame*CFrame.new(0,0,-.3)
  219. v.Transparency=v.Transparency+.08
  220. if v.Transparency >= 1 then
  221. v:Destroy()
  222. table.remove(particles,i)
  223. else
  224. v.Parent=beamm
  225. end
  226. end
  227. a=cam.CoordinateFrame.p
  228. b=mouse.Hit.p
  229. mhitr=Ray.new(a,(b-a).unit*999)
  230. mhit,ps=workspace:FindPartOnRayWithIgnoreList(mhitr,{char,beamm})
  231. raw.C1=ang(90+(mouse.Hit.lookVector.y*90),0,-8)
  232. law.C1=ang(90+(mouse.Hit.lookVector.y*90),0,43)
  233. if not char.Humanoid.Sit and not char.Humanoid.PlatformStand then
  234. char.Torso.CFrame=CFrame.new(char.Torso.CFrame.p,Vector3.new(ps.x,char.Torso.CFrame.p.y,ps.z))
  235. end
  236. if laser then
  237. beamm.Parent=workspace
  238. beam.Parent=beamm
  239. inner.Parent=beamm
  240. expl.Parent=beamm
  241. exa.Parent=beamm
  242. s1.Volume=s1.Volume-0.0001
  243.  
  244. ray=Ray.new((wep.CFrame*cf(0,-1.5,0)).p,((wep.CFrame*cf(0,-10,0)).p-(wep.CFrame*cf(0,-1.5,0)).p).unit*999)
  245. hit,pos=workspace:FindPartOnRayWithIgnoreList(ray,{char,beamm})
  246.  
  247. if hit and hit.Parent:findFirstChild('Humanoid') and s1.Volume > .3 and parti/8==math.floor(parti/8) then
  248. Instance.new('Explosion',workspace).Position=pos
  249. end
  250. if hit and hit.Parent==workspace.Terrain or hit==workspace.Terrain and parti/8==math.floor(parti/8) then
  251. e=Instance.new('Explosion',workspace)
  252. e.Position=pos
  253. e.BlastRadius=14
  254. e.BlastPressure=1e4
  255. end
  256. if hit and not hit.Anchored and not (hit:GetMass()>1e4) then
  257. hit.Velocity=hit.Velocity+beam.CFrame.lookVector*(1*s1.Volume*hit:GetMass())
  258. end
  259.  
  260. if parti==math.floor(parti) then
  261. par=part:Clone()
  262. table.insert(particles,par)
  263. par.Parent=beamm
  264. par.Transparency=1-s1.Volume
  265. par.light.Range=br*s1.Volume
  266. par.CFrame=cf(pos)*ang(math.random(-180,180),math.random(-180,180),math.random(-180,180))*cf(0,0,-10)
  267. end
  268.  
  269. mag=((wep.CFrame*cf(0,-1.5,0)).p-pos).magnitude
  270. ms.Scale=v3(s1.Volume,s1.Volume,mag)
  271. ms2.Scale=v3(ms.Scale.x/2,ms.Scale.y/2,mag-(.1/mag))
  272. beam.CFrame=cf((wep.CFrame*cf(0,-1.5,0)).p,pos)*cf(0,0,-mag/2)*ang(0,0,math.random(0,180))
  273. inner.CFrame=beam.CFrame
  274. pl.Range=br*s1.Volume
  275. pl2.Range=br*s1.Volume
  276. expl.Size=v3(math.random(9,13),math.random(9,13),math.random(9,13))*s1.Volume
  277. expl.Transparency=math.random(40,60)/100
  278. expl.CFrame=cf(pos)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
  279. exa.Size=v3(4,4,4)*s1.Volume
  280. exa.CFrame=wep.CFrame*cf(0,-1.5,0)*ang(math.random(0,180),math.random(0,180),math.random(0,180))
  281. char.Torso.Velocity=char.Torso.Velocity-beam.CFrame.lookVector*(7*s1.Volume)
  282. end
  283. end)
  284.  
  285. local UserInputService = game:GetService("UserInputService")
  286. local localPlayer = game.Players.LocalPlayer
  287. local character
  288. local humanoid
  289.  
  290. local canDoubleJump = false
  291. local hasDoubleJumped = false
  292. local oldPower
  293. local TIME_BETWEEN_JUMPS = 0.2
  294. local DOUBLE_JUMP_POWER_MULTIPLIER = 2
  295. local s = Instance.new("Sound",script.Parent)
  296. function onJumpRequest()
  297. if not character or not humanoid or not character:IsDescendantOf(workspace) or
  298. humanoid:GetState() == Enum.HumanoidStateType.Dead then
  299. return
  300. end
  301.  
  302. if canDoubleJump and not hasDoubleJumped then
  303. hasDoubleJumped = true
  304. humanoid.JumpPower = oldPower * DOUBLE_JUMP_POWER_MULTIPLIER
  305. humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  306. s.Name = "Sound"
  307. s.SoundId = "rbxassetid://192604675"
  308. s.Volume = 50
  309. s.Looped = false
  310. s.Pitch = 1.1+math.random()*.3
  311. s.archivable = false
  312. wait()
  313. s:Play()
  314. end
  315. end
  316.  
  317. local function characterAdded(newCharacter)
  318. character = newCharacter
  319. humanoid = newCharacter:WaitForChild("Humanoid")
  320. hasDoubleJumped = false
  321. canDoubleJump = false
  322. oldPower = humanoid.JumpPower
  323.  
  324. humanoid.StateChanged:connect(function(old, new)
  325. if new == Enum.HumanoidStateType.Landed then
  326. canDoubleJump = false
  327. hasDoubleJumped = false
  328. humanoid.JumpPower = oldPower
  329. elseif new == Enum.HumanoidStateType.Freefall then
  330. wait(TIME_BETWEEN_JUMPS)
  331. canDoubleJump = true
  332. end
  333. end)
  334. end
  335.  
  336. if localPlayer.Character then
  337. characterAdded(localPlayer.Character)
  338. end
  339.  
  340. localPlayer.CharacterAdded:connect(characterAdded)
  341. UserInputService.JumpRequest:connect(onJumpRequest)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement