Advertisement
Xxxtimmy

i dont even wanna know

Sep 19th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.37 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer end
  6. -- GPlayr by ModernLukest. Made for v3rmillion, , etc.
  7. -- Note that anyone can hear the music that you play. Just a clarification for what LocalScripts can do.
  8.  
  9. local char = game.Players.LocalPlayer.Character
  10.  
  11.  
  12. --Enjoy this shit
  13. --When you Click its explode asf
  14. --Touch kids with the sword to kill them.
  15. --Made by N3xul
  16. local runDummyScript = function(f,scri)
  17. local oldenv = getfenv(f)
  18. local newenv = setmetatable({}, {
  19. __index = function(_, k)
  20. if k:lower() == 'script' then
  21. return scri
  22. else
  23. return oldenv[k]
  24. end
  25. end
  26. })
  27. setfenv(f, newenv)
  28. ypcall(function() f() end)
  29. end
  30. cors = {}
  31. mas = Instance.new("Model",game:GetService("Lighting"))
  32. mas.Name = "CompiledModel"
  33. o1 = Instance.new("HopperBin")
  34. o2 = Instance.new("LocalScript")
  35. o1.Name = "OPSwords"
  36. o1.Parent = mas
  37. o1.TextureId = "http://www.roblox.com/asset/?id=23722071"
  38. o2.Name = "AnimDeath"
  39. o2.Parent = o1
  40. table.insert(cors,coroutine.create(function()
  41. wait()
  42. runDummyScript(function()
  43. print("Animator Loaded.");
  44.  
  45. --Animation Manager--
  46. local bin = script.Parent;
  47. while (game.Players.LocalPlayer.Character == nil) do
  48. wait()
  49. end
  50. print("Player found. :)");
  51. local player = game.Players.LocalPlayer.Character;
  52. local human = player.Humanoid;
  53.  
  54. --Tool Variables--
  55. local tselected = false;
  56.  
  57. --Base Part--
  58. local block = Instance.new("Part");
  59. block.FormFactor = "Symmetric";
  60. block.Size = Vector3.new(1, 1, 1);
  61. block.Transparency = 1;
  62. block.CanCollide = false;
  63. block.Locked = true;
  64.  
  65. local sword = Instance.new("Part");
  66. sword.FormFactor = "Plate";
  67. sword.Shape = "Block";
  68. sword.Size = Vector3.new(1, 0.8, 4);
  69. sword.Transparency = 1;
  70. sword.CanCollide = false;
  71. local SlashSound = Instance.new("Sound")
  72. SlashSound.SoundId = "http://www.roblox.com/asset/?id=11998777"
  73. SlashSound.Pitch = 1.4;
  74. SlashSound.Looped = true;
  75. SlashSound.Name = "Voom";
  76. SlashSound.Parent = sword
  77. snd = Instance.new("Sound")
  78. snd.SoundId = "http://www.roblox.com/asset/?id=2233908"
  79. snd.Volume = 1
  80. snd.Name = "Boom"
  81. snd.Parent = sword
  82. local UnsheathSound = Instance.new("Sound")
  83. UnsheathSound.SoundId = "http://www.roblox.com/asset/?id=11998770"
  84. UnsheathSound.Name = "Go"
  85. UnsheathSound.Volume = 0.5
  86. UnsheathSound.Parent = sword
  87. local mesh = Instance.new("SpecialMesh");
  88. mesh.MeshType = "FileMesh";
  89. mesh.MeshId = "http://www.roblox.com/asset/?id=11996935";
  90. mesh.Scale = Vector3.new(1.4,1.4,1.4);
  91. mesh.TextureId = "http://www.roblox.com/asset/?id=23719291";
  92. mesh.Parent = sword;
  93. local sparkle = Instance.new("Sparkles")
  94. sparkle.SparkleColor = Color3.new(0, 255, 155);
  95. sparkle.Parent = sword;
  96. sparkle.Enabled = false;
  97. local sword2 = sword:Clone();
  98.  
  99. local lsweld = Instance.new("Weld");
  100. local rsweld = Instance.new("Weld");
  101. --Left Arm Positioners and Welders--
  102. local lPosBase = block:Clone();
  103. local lPosWeld = Instance.new("Weld");
  104. local lRotBase = block:Clone();
  105. local lRotWeld = Instance.new("Weld");
  106. local lArmWeld = Instance.new("Weld");
  107.  
  108. --Right Arm Positioners and Welders--
  109. local rPosBase = block:Clone();
  110. local rPosWeld = Instance.new("Weld");
  111. local rRotBase = block:Clone();
  112. local rRotWeld = Instance.new("Weld");
  113. local rArmWeld = Instance.new("Weld");
  114.  
  115. --Head Welder--
  116. local hRotBase = block:Clone();
  117. local hRotWeld = Instance.new("Weld");
  118. local headWeld = Instance.new("Weld");
  119.  
  120. --Bind the base parts to the Torso. Tricky.
  121.  
  122. --Left--
  123. lPosBase.Name = "LPosBase";
  124. lPosWeld.Name = "LPosWeld";
  125. lRotBase.Name = "LRotBase";
  126. lRotWeld.Name = "LRotWeld";
  127. lPosWeld.Part0 = player.Torso;
  128. lPosWeld.Part1 = lPosBase;
  129. lPosWeld.C1 = CFrame.new(1.5, -0.5, 0);
  130. lPosWeld.Parent = player.Torso;
  131. lPosBase.Parent = player;
  132. lRotWeld.Part0 = lPosBase;
  133. lRotWeld.Part1 = lRotBase;
  134. lRotWeld.Parent = player.Torso;
  135. lRotBase.Parent = player;
  136. lArmWeld.Part0 = lRotBase;
  137. lArmWeld.C1 = CFrame.new(0, 0.5, 0);
  138. lArmWeld.Parent = player.Torso;
  139.  
  140. --Right--
  141. rPosBase.Name = "RPosBase";
  142. rPosWeld.Name = "RPosWeld";
  143. rRotBase.Name = "RRotBase";
  144. rRotWeld.Name = "RRotWeld";
  145. rPosWeld.Part0 = player.Torso;
  146. rPosWeld.Part1 = rPosBase;
  147. rPosWeld.C1 = CFrame.new(-1.5, -0.5, 0);
  148. rPosWeld.Parent = player.Torso;
  149. rPosBase.Parent = player;
  150. rRotWeld.Part0 = rPosBase;
  151. rRotWeld.Part1 = rRotBase;
  152. rRotWeld.Parent = player.Torso;
  153. rRotBase.Parent = player;
  154. rArmWeld.Part0 = rRotBase;
  155. rArmWeld.C1 = CFrame.new(0, 0.5, 0);
  156. rArmWeld.Parent = player.Torso;
  157.  
  158. --Head--
  159. hRotBase.Name = "HRotBase";
  160. hRotWeld.Name = "HRotWeld";
  161. headWeld.Name = "HeadWeld";
  162. hRotWeld.Part0 = player.Torso;
  163. hRotWeld.Part1 = hRotBase;
  164. hRotWeld.C1 = CFrame.new(0, -1.5, 0);
  165. hRotWeld.Parent = player.Torso;
  166. hRotBase.Parent = player;
  167. headWeld.Part0 = hRotBase;
  168. headWeld.Parent = player.Torso;
  169.  
  170. --Le Swords--
  171. lsweld.Part0 = lRotBase;
  172. rsweld.Part0 = rRotBase;
  173. lsweld.Part1 = sword;
  174. rsweld.Part1 = sword2;
  175. lsweld.C1 = CFrame.new(0, 0, -3.5)*CFrame.Angles(math.rad(270), math.rad(90), 0);
  176. rsweld.C1 = CFrame.new(0, 0, -3.5)*CFrame.Angles(math.rad(270), math.rad(90), 0);
  177. lsweld.Parent = player.Torso;
  178. rsweld.Parent = player.Torso;
  179. sword.Parent = player;
  180. sword2.Parent = player;
  181. sword.Voom:Stop();
  182. sword2.Voom:Stop();
  183. print("Bases binded.");
  184.  
  185. --Binds the arms and head to the base parts.
  186. function bind()
  187. lArmWeld.Part1 = player:FindFirstChild("Left Arm");
  188. rArmWeld.Part1 = player:FindFirstChild("Right Arm");
  189. headWeld.Part1 = player:FindFirstChild("Head");
  190. sword.Transparency = 0;
  191. sword2.Transparency = 0;
  192. sword.Go:Play();
  193. sword2.Go:Play();
  194. sword.Sparkles.Enabled = true;
  195. sword2.Sparkles.Enabled = true;
  196. human.WalkSpeed = 28;
  197. sword.Voom:Play();
  198. sword2.Voom:Play();
  199. end
  200.  
  201. --Releases the arms and head from the base parts.
  202. function unbind()
  203. lArmWeld.Part1 = nil;
  204. rArmWeld.Part1 = nil;
  205. headWeld.Part1 = nil;
  206. sword.Transparency = 1;
  207. sword2.Transparency = 1;
  208. sword.Sparkles.Enabled = false;
  209. sword2.Sparkles.Enabled = false;
  210. human.WalkSpeed = 28;
  211. sword.Go:Play();
  212. sword2.Go:Play();
  213. sword.Voom:Stop();
  214. sword2.Voom:Stop();
  215. end
  216.  
  217. function boom(part)
  218. wait();
  219. if part == nil or tselected == false then return end;
  220. if part.Anchored then return end;
  221. if part.Parent == player or part.Parent.Parent == player then return end;
  222. human:TakeDamage(-1);
  223. sword.Sparkles:Clone().Parent = part;
  224. sword.Go:Play();
  225. sword2.Go:Play();
  226. wait(0.5)
  227. part:BreakJoints();
  228. part.Velocity = Vector3.new(part.Velocity.X+ math.random(10, 20), part.Velocity.Y + math.random(100, 200), part.Velocity.Z+ math.random(10, 20));
  229. game.Debris:AddItem(part, 10);
  230. end
  231.  
  232. local load = true;
  233.  
  234. function selected(mouse)
  235. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  236. bind();
  237. human.MaxHealth = 9999999;
  238. if player:FindFirstChild("ForceField") then
  239. player.ForceField:Destroy();
  240. end
  241. tselected = true;
  242. mouse.Button1Down:connect(function()
  243. if (load) then
  244. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  245. load = false
  246. sword.Boom:Play();
  247. sword2.Boom:Play();
  248. local e = Instance.new("Explosion");
  249. e.Hit:connect(boom);
  250. e.Position = player.Torso.Position;
  251. e.BlastPressure = 0;
  252. e.BlastRadius = 1000;
  253. e.Parent = game.Workspace;
  254. human:TakeDamage(50);
  255. wait(1)
  256. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  257. load = true
  258. end
  259. end)
  260. while tselected do
  261. lRotWeld.C1 = CFrame.Angles(math.rad(math.random(0, 360)), math.rad(math.random(0, 360)), math.rad(math.random(0, 360)));
  262. rRotWeld.C1 = CFrame.Angles(math.rad(math.random(0, 360)), math.rad(math.random(0, 360)), math.rad(math.random(0, 360)));
  263. human:TakeDamage(-0.25);
  264. wait();
  265. end
  266. end
  267.  
  268. function deselected()
  269. tselected = false;
  270. unbind();
  271. human.MaxHealth = 9999999;
  272. end
  273.  
  274. --Event Listeners--
  275. sword.Touched:connect(boom);
  276. sword2.Touched:connect(boom);
  277. human.Jumping:connect(function()if tselected == false then return end player.Torso.Velocity = Vector3.new(player.Torso.Velocity.X, player.Torso.Velocity.Y + 40, player.Torso.Velocity.Z)end);
  278. --Tool--
  279. bin.Selected:connect(selected);
  280. bin.Deselected:connect(deselected);
  281. end,o2)
  282. end))
  283. mas.Parent = workspace
  284. mas:MakeJoints()
  285. local mas1 = mas:GetChildren()
  286. for i=1,#mas1 do
  287. mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
  288. ypcall(function() mas1[i]:MakeJoints() end)
  289. end
  290. mas:Destroy()
  291. for i=1,#cors do
  292. coroutine.resume(cors[i])
  293. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement