SHARE
TWEET

Untitled

a guest May 26th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- This script has convert to FE by who i don't know?
  2.  
  3. -----------------------------------------------------
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8.     print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  9.     local rp = RealPlayer
  10.     script.Parent = rp.Character
  11.    
  12.     --RemoteEvent for communicating
  13.     local Event = Instance.new("RemoteEvent")
  14.     Event.Name = "UserInput_Event"
  15.  
  16.     --Fake event to make stuff like Mouse.KeyDown work
  17.     local function fakeEvent()
  18.         local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19.         t.connect = t.Connect
  20.         return t
  21.     end
  22.  
  23.     --Creating fake input objects with fake variables
  24.     local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25.     local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26.     local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27.         CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28.     end}
  29.     --Merged 2 functions into one by checking amount of arguments
  30.     CAS.UnbindAction = CAS.BindAction
  31.  
  32.     --This function will trigger the events that have been :Connect()'ed
  33.     local function te(self,ev,...)
  34.         local t = m[ev]
  35.         if t and t._fakeEvent then
  36.             for _,f in pairs(t.Functions) do
  37.                 f(...)
  38.             end
  39.         end
  40.     end
  41.     m.TrigEvent = te
  42.     UIS.TrigEvent = te
  43.  
  44.     Event.OnServerEvent:Connect(function(plr,io)
  45.         if plr~=rp then return end
  46.         m.Target = io.Target
  47.         m.Hit = io.Hit
  48.         if not io.isMouse then
  49.             local b = io.UserInputState == Enum.UserInputState.Begin
  50.             if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51.                 return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52.             end
  53.             for _,t in pairs(CAS.Actions) do
  54.                 for _,k in pairs(t.Keys) do
  55.                     if k==io.KeyCode then
  56.                         t.Function(t.Name,io.UserInputState,io)
  57.                     end
  58.                 end
  59.             end
  60.             m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61.             UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62.         end
  63.     end)
  64.     Event.Parent = NLS([==[
  65.     local Player = game:GetService("Players").LocalPlayer
  66.     local Event = script:WaitForChild("UserInput_Event")
  67.  
  68.     local Mouse = Player:GetMouse()
  69.     local UIS = game:GetService("UserInputService")
  70.     local input = function(io,a)
  71.         if a then return end
  72.         --Since InputObject is a client-side instance, we create and pass table instead
  73.         Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74.     end
  75.     UIS.InputBegan:Connect(input)
  76.     UIS.InputEnded:Connect(input)
  77.  
  78.     local h,t
  79.     --Give the server mouse data 30 times every second, but only if the values changed
  80.     --If player is not moving their mouse, client won't fire events
  81.     while wait(1/30) do
  82.         if h~=Mouse.Hit or t~=Mouse.Target then
  83.             h,t=Mouse.Hit,Mouse.Target
  84.             Event:FireServer({isMouse=true,Target=t,Hit=h})
  85.         end
  86.     end]==],Player.Character)
  87.  
  88.     ----Sandboxed game object that allows the usage of client-side methods and services
  89.     --Real game object
  90.     local _rg = game
  91.  
  92.     --Metatable for fake service
  93.     local fsmt = {
  94.         __index = function(self,k)
  95.             local s = rawget(self,"_RealService")
  96.             if s then return s[k] end
  97.         end,
  98.         __newindex = function(self,k,v)
  99.             local s = rawget(self,"_RealService")
  100.             if s then s[k]=v end
  101.         end,
  102.         __call = function(self,...)
  103.             local s = rawget(self,"_RealService")
  104.             if s then return s(...) end
  105.         end
  106.     }
  107.     local function FakeService(t,RealService)
  108.         t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109.         return setmetatable(t,fsmt)
  110.     end
  111.  
  112.     --Fake game object
  113.     local g = {
  114.         GetService = function(self,s)
  115.             return self[s]
  116.         end,
  117.         Players = FakeService({
  118.             LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119.         },"Players"),
  120.         UserInputService = FakeService(UIS,"UserInputService"),
  121.         ContextActionService = FakeService(CAS,"ContextActionService"),
  122.     }
  123.     rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124.     g.service = g.GetService
  125.    
  126.     g.RunService = FakeService({
  127.         RenderStepped = _rg:GetService("RunService").Heartbeat,
  128.         BindToRenderStep = function(self,name,_,fun)
  129.  
  130.         end,
  131.         UnbindFromRenderStep = function(self,name)
  132.             self._btrs[name]:Disconnect()
  133.         end,
  134.     },"RunService")
  135.  
  136.     setmetatable(g,{
  137.         __index=function(self,s)
  138.             return _rg:GetService(s) or typeof(_rg[s])=="function"
  139.             and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140.         end,
  141.         __newindex = fsmt.__newindex,
  142.         __call = fsmt.__call
  143.     })
  144.     --Changing owner to fake player object to support owner:GetMouse()
  145.     game,owner = g,g.Players.LocalPlayer
  146. end
  147.  
  148. -- a shotgun gun used to edit velocity and use vectors and working freezeing c02
  149. lp=game.Players.UsernameHere
  150. pl=lp.Character
  151. tol=Instance.new("HopperBin",lp.Backpack)
  152. tol.Name="L_Shotgun"--ContentDownloader
  153. Part = function(x,y,z,color,tr,cc,an,parent)
  154. local p = Instance.new('Part',parent or Weapon)
  155. p.formFactor = 'Custom'
  156. p.Size = Vector3.new(x,y,z)
  157. p.BrickColor = BrickColor.new(color)
  158. p.CanCollide = cc
  159. p.Transparency = tr
  160. p.Anchored = an
  161. p.TopSurface,p.BottomSurface = 0,0
  162. return p
  163. end
  164. s = Instance.new("Sound")s.Name = "Sound"
  165. s.SoundId = "http://www.roblox.com/asset?id=131632972"s.Volume = 1
  166. s.Pitch = 1 s.Looped = false s.PlayOnRemove = false s.archivable = false
  167. s.Parent = pl.Torso
  168. s2 = Instance.new("Sound")s.Name = "Sound"
  169. s2.SoundId = "http://roblox.com/asset/?id=131072992"s2.Volume = 1
  170. s2.Pitch = 1 s2.Looped = false s2.PlayOnRemove = false s2.archivable = false
  171. s2.Parent = pl.Torso
  172. s3 = Instance.new("Sound")s.Name = "Sound"
  173. s3.SoundId = "http://www.roblox.com/asset/?id=30624262"s3.Volume = 1
  174. s3.Pitch = .225 s3.Looped = false s3.PlayOnRemove = false s3.archivable = false
  175. s3.Parent = pl.Torso
  176. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  177.     local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  178.     for i=1,Times do
  179.                 local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true  li.Transparency = Transparency or 0.4 li.BrickColor = BrickColor.new(Color)
  180.         li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(Thickness,Thickness,magz/Times) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  181.                                 function touch(hit)
  182.                 if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent ~=pl then
  183.                 hit.Parent:BreakJoints()
  184.                 end end li.Touched:connect(touch)
  185.                 local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  186.         if Times == i then
  187.             local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  188.             li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  189.         else
  190.             li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  191.         end
  192.         curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
  193.     end
  194. end
  195. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  196. p0.Position = p1.Position
  197. local w = Instance.new('Motor',par or p0)
  198. w.Part0 = p0
  199. w.Part1 = p1
  200. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  201. return w
  202. end
  203. Mesh = function(par,num,x,y,z)
  204. local msh = _
  205. if num == 1 then msh = Instance.new("CylinderMesh",par)
  206. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
  207. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  208. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  209. end
  210. msh.Scale = Vector3.new(x,y,z)
  211. return msh
  212. end
  213. shotval=0
  214. function onClicked(mouse)
  215. Debounce = true
  216. if shotval==2 then print("out") return end
  217. if shotval==0 then print("1")
  218. lod.BrickColor=BrickColor.new("")s:play()
  219. for i=1,5 do
  220. Lightning(shot1.Position,mouse.Hit.p,math.random(5,10),math.random(-2.5,2.5),"Royal purple",0.05,0.35)end end
  221. if shotval==1 then print("2")
  222. lod2.BrickColor=BrickColor.new("")s:play()
  223. for i=1,5 do
  224. Lightning(shot2.Position,mouse.Hit.p,math.random(5,10),math.random(-2.5,2.5),"Royal purple",0.05,0.35)end end
  225. shotval=shotval+1
  226. end
  227. function onKeyDown(key)
  228. key = key:lower()
  229. if key == "r" then
  230. if shotval>=2 then
  231. shotval=-10900
  232. lod.BrickColor=BrickColor.new("Really red")s2:play()
  233. wait(.75)
  234. lod2.BrickColor=BrickColor.new("Really red")s2:play()
  235. wait(1)
  236. smoke.Enabled=true
  237. s3:play()
  238. wait(1.5)
  239. smoke.Enabled=false
  240. shotval=0
  241. end end end
  242. tol.Selected:connect(function(mouse)
  243. mouse.Button1Down:connect(function() onClicked(mouse) end)
  244. mouse.KeyDown:connect(onKeyDown)
  245. mo=Instance.new("Model",pl)
  246. pa1= Part(.3,.3,1,'Really black',0,false,false,mo)
  247. wl1= Weld(pa1,pl['Right Arm'],0,-1,0,0,0,0,mo)
  248. pa1= Part(.3,.3,.4,'Really black',0,false,false,mo)
  249. wl1= Weld(pa1,pl['Right Arm'],0,-1.2,-.5,-math.pi/5,0,0,mo)
  250. pa1= Part(.3,2,.3,'Really black',0,false,false,mo)
  251. wl1= Weld(pa1,pl['Right Arm'],0,-1.75,-.6,0,0,0,mo)
  252. pa1= Part(.4,2,.4,'Dark stone grey',0,false,false,mo)--pa1.Material="Neon"
  253. wl1= Weld(pa1,pl['Right Arm'],0.2,-2.25,-.6,0,0,0,mo)
  254. m1= Mesh(pa1,1,1,1,1)
  255. pa1= Part(.4,2,.4,'Dark stone grey',0,false,false,mo)--pa1.Material="Neon"
  256. wl1= Weld(pa1,pl['Right Arm'],-0.2,-2.25,-.6,0,0,0,mo)
  257. m1= Mesh(pa1,1,1,1,1)
  258. shot2= Part(.3,2,.3,'Really black',0,false,false,mo)
  259. wl1= Weld(shot2,pl['Right Arm'],0.2,-2.26,-.6,0,0,0,mo)
  260. m1= Mesh(shot2,1,1,1,1)
  261. shot1= Part(.3,2,.3,'Really black',0,false,false,mo)
  262. wl1= Weld(shot1,pl['Right Arm'],-0.2,-2.26,-.6,0,0,0,mo)
  263. m1= Mesh(shot1,1,1,1,1)
  264. pa1= Part(.2,.5,.2,'Really black',0,false,false,mo)
  265. wl1= Weld(pa1,pl['Right Arm'],-0.2,-1.25,-.6,0,0,-math.pi/5,mo)
  266. pa1= Part(.2,.5,.2,'Really black',0,false,false,mo)
  267. wl1= Weld(pa1,pl['Right Arm'],0.2,-1.25,-.6,0,0,math.pi/5,mo)
  268. pa1= Part(.3,.5,.3,'Really black',0,false,false,mo)
  269. wl1= Weld(pa1,pl['Right Arm'],0.2,-1.2,-.7,-math.pi/5,0,0,mo)
  270. m1= Mesh(pa1,1,1,1,1)
  271. pa1= Part(.3,.5,.3,'Really black',0,false,false,mo)
  272. wl1= Weld(pa1,pl['Right Arm'],-0.2,-1.2,-.7,-math.pi/5,0,0,mo)
  273. m1= Mesh(pa1,1,1,1,1)
  274. lod2= Part(.2,.5,.2,'Really red',0,false,false,mo)
  275. wl1= Weld(lod2,pl['Right Arm'],0.2,-1.15,-.75,-math.pi/5,0,0,mo)
  276. m1= Mesh(lod2,1,1,1,1)
  277. lod= Part(.2,.5,.2,'Really red',0,false,false,mo)
  278. wl1= Weld(lod,pl['Right Arm'],-0.2,-1.15,-.75,-math.pi/5,0,0,mo)
  279. m1= Mesh(lod,1,1,1,1)
  280. pa1= Part(.4,.5,.5,'',0,false,false,mo)
  281. wl1= Weld(pa1,pl['Right Arm'],0,-2.75,-.3,0,0,0,mo)
  282. pa1= Part(.3,.5,.3,'Really black',0,false,false,mo)
  283. wl1= Weld(pa1,pl['Right Arm'],0,-2.8,0,0,0,0,mo)
  284. m1= Mesh(pa1,1,1,1,1)
  285. pa1= Part(.1,.1,.1,'Really red',0.75,false,false,mo)
  286. wl1= Weld(pa1,pl['Right Arm'],0,-5.55,0,0,0,0,mo)
  287. m1= Mesh(pa1,1,.3,30,.3)
  288. bb= Part(.1,.1,.1,'Bright red',0,false,false,mo)
  289. wl1= Weld(bb,pl['Right Arm'],0,-2,0,-math.pi/3,0,0,mo)
  290. m1= Mesh(bb,2,2.5,2.5,2.5)
  291. pa1= Part(.5,1,.5,'Bright red',0,false,false,mo)
  292. wl1= Weld(pa1,bb,0,-.5,0,0,0,0,mo)
  293. m1= Mesh(pa1,1,1,1,1)
  294. pa1= Part(.3,.65,.3,'',0,false,false,mo)
  295. wl1= Weld(pa1,bb,0,.25,0,0,0,0,mo)
  296. m1= Mesh(pa1,1,1,1,1)
  297. pa1= Part(.3,.5,.3,'Dark stone grey',0,false,false,mo)
  298. wl1= Weld(pa1,bb,0.1,-.74,0,0,0,0,mo)
  299. pa1= Part(.1,.1,.1,'Really black',0,false,false,mo)
  300. wl1= Weld(pa1,bb,0.25,-.74,0,0,0,0,mo)
  301. m1= Mesh(pa1,3,.1,2,.1)
  302. pa1= Part(.1,.1,.1,'Really black',0,false,false,mo)
  303. wl1= Weld(pa1,bb,0.25,-.74,.05,0,0,0,mo)
  304. m1= Mesh(pa1,3,.1,2,.1)
  305. pa1= Part(.1,.1,.1,'Really black',0,false,false,mo)
  306. wl1= Weld(pa1,bb,0.25,-.74,-.05,0,0,0,mo)
  307. m1= Mesh(pa1,3,.1,2,.1)
  308. pa1= Part(.1,.1,.1,'Really black',0,false,false,mo)
  309. wl1= Weld(pa1,bb,0.25,-.74,.1,0,0,0,mo)
  310. m1= Mesh(pa1,3,.1,2,.1)
  311. pa1= Part(.1,.1,.1,'Really black',0,false,false,mo)
  312. wl1= Weld(pa1,bb,0.25,-.74,-.1,0,0,0,mo)
  313. m1= Mesh(pa1,3,.1,2,.1)
  314. pa1= Part(.2,.6,.2,'Really black',0,false,false,mo)
  315. wl1= Weld(pa1,pl['Right Arm'],0,-2.5,0,0,0,0,mo)
  316. pa1= Part(.3,.3,1,'Really black',0,false,false,mo)
  317. wl1= Weld(pa1,pl['Right Arm'],0,-1.2,0,math.pi/8,0,0,mo)
  318. m1= Mesh(pa1,3,1,.1,1)
  319. smo= Part(.1,.1,.1,'Dark stone grey',1,false,false,mo)
  320. wl1= Weld(smo,bb,0.1,-.74,0,0,0,-math.pi/2,mo)
  321. smoke=Instance.new("Smoke",smo)
  322. smoke.Color=Color3.new(.85,0,2.55)
  323. smoke.RiseVelocity=100
  324. smoke.Enabled=false
  325.  
  326.  
  327.  
  328.  
  329. --
  330. bas = Part(1,1,1,'',1,false,false,mo)
  331. bas:BreakJoints()
  332. fakel = Instance.new("Weld",mo)
  333. fakel.Part0 = pl.Torso
  334. fakel.Part1 = bas
  335. coroutine.wrap(function()
  336. for angle = 0, 95, 10 do
  337. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle),math.rad(angle/8),0)
  338. wait()
  339. end
  340. end)()
  341. welditbro = Instance.new("Weld", mo)
  342. welditbro.C0 = CFrame.new(0, 0.5, 0)
  343. welditbro.Part0 = pl['Right Arm']
  344. welditbro.Part1 = bas
  345. bas2 = Part(1,1,1,'',1,false,false,mo)
  346. bas2:BreakJoints()
  347. fakel2 = Instance.new("Weld",mo)
  348. fakel2.Part0 = pl.Torso
  349. fakel2.Part1 = bas2
  350. coroutine.wrap(function()
  351. for angle = 0, 30, 5 do
  352. fakel2.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(-angle),math.rad(-angle/5),math.rad(-angle/5))
  353. wait()
  354. end
  355. end)()
  356. welditbro2 = Instance.new("Weld", mo)
  357. welditbro2.C0 = CFrame.new(0, 0.5, 0)
  358. welditbro2.Part0 = pl['Left Arm']
  359. welditbro2.Part1 = bas2
  360. end)
  361. tol.Deselected:connect(function(mouse)
  362. loop=true
  363. mo:remove()
  364. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top