Advertisement
PasterXIV

Untitled

Sep 22nd, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.78 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 typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u 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 rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},Soundscape=r:GetService("RunService").Heartbeat,BindToSoundscape=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. --KAZOO KID! created by: Kidd_Anonymouse#9926 enjoy the script, Q to shoot your Kazoo cannons
  8. local player = game.Players.LocalPlayer
  9. local char = player.Character
  10. local head = char.Head
  11. local To = char.Torso
  12. local HRP = char.HumanoidRootPart
  13. local RA = char["Right Arm"]
  14. local LA = char["Left Arm"]
  15. local RL = char["Right Leg"]
  16. local LL = char["Left Leg"]
  17. local Hum = char:FindFirstChildOfClass("Humanoid")
  18. local mouse = player:GetMouse()
  19. --game:service'InsertService':LoadAsset(14030252):children()[1].Parent=char
  20. --game:GetObjects("rbxassetid://857556803")[1].Parent=char
  21. for i = 5,1,-1 do
  22. if char:FindFirstChildOfClass("Accessory") ~= nil then char:FindFirstChildOfClass("Accessory"):remove()end
  23. end
  24. char:WaitForChild("Animate").walk.WalkAnim.AnimationId = "http://www.roblox.com/Asset?ID=252557606"
  25. ------------------------------------------------------------------------------------------
  26. ------------------------------------------------------------------------------------------
  27. ------------------------------------------------------------------------------------------
  28. ------------------------------------------------------------------------------------------
  29. --game:GetObjects("rbxassetid://857556803")[1].Parent=char
  30. ------------------------------------------------------------------------------------------
  31. ------------------------------------------------------------------------------------------
  32. ------------------------------------------------------------------------------------------
  33. ------------------------------------------------------------------------------------------
  34.  
  35. local m = Instance.new("Model",char)
  36.  
  37. local s1 = Instance.new("Sound",char)
  38. s1.SoundId = "rbxassetid://379250303"
  39. s1.Volume = 0.5
  40. s1.Looped = true
  41. s1:Play()
  42.  
  43.  
  44. if head:FindFirstChild("face")== nil then
  45. local d = Instance.new("Decal",head)
  46. d.Texture = "rbxassetid://664468442"
  47. d.Face = "Front"
  48. else
  49. head:FindFirstChild("face").Texture = "rbxassetid://664468442"
  50. end
  51.  
  52. if char:FindFirstChildOfClass("Shirt")== nil then
  53. local s = Instance.new("Shirt",char)
  54. s.ShirtTemplate = "rbxassetid://762916834"
  55. else
  56. char:FindFirstChildOfClass("Shirt").ShirtTemplate = "rbxassetid://762916834"
  57. end
  58.  
  59. if char:FindFirstChildOfClass("Pants")== nil then
  60. local s = Instance.new("Pants",char)
  61. s.PantsTemplate = "rbxassetid://843263078"
  62. else
  63. char:FindFirstChildOfClass("Pants").PantsTemplate = "rbxassetid://843263078"
  64. end
  65.  
  66.  
  67. char:WaitForChild("Body Colors").HeadColor = BrickColor.new("Pastel brown")
  68. char:WaitForChild("Body Colors").LeftArmColor = BrickColor.new("Pastel brown")
  69. char:WaitForChild("Body Colors").LeftLegColor = BrickColor.new("Pastel brown")
  70. char:WaitForChild("Body Colors").RightArmColor = BrickColor.new("Pastel brown")
  71. char:WaitForChild("Body Colors").RightLegColor = BrickColor.new("Pastel brown")
  72. char:WaitForChild("Body Colors").TorsoColor = BrickColor.new("Pastel brown")
  73.  
  74.  
  75. Hum.WalkSpeed = 100
  76. Hum.JumpPower = 100
  77. --[[
  78. head:WaitForChild("Jumping")
  79. head.Jumping.SoundId = "rbxassetid://151681170"
  80. head.Jumping.Volume = 3
  81. --]]
  82.  
  83.  
  84. local MousePart = Instance.new("Part",m)
  85. MousePart.CanCollide = false
  86. MousePart.BottomSurface = "Smooth"
  87. MousePart.TopSurface = "Smooth"
  88. MousePart.Size = Vector3.new(0.2, 0.2, 0.2)
  89. MousePart.Anchored = true
  90.  
  91.  
  92.  
  93. function despawn1(part1,part2,length)
  94.  
  95. for i = 10,1,-1 do
  96.  
  97. part1.Transparency = part1.Transparency + 0.1
  98. part1.Size = part1.Size + Vector3.new(0.2,0.2,length)
  99. part1.Size = Vector3.new(part1.Size.X,part1.Size.Y,length)
  100.  
  101. wait(0.01)
  102. end
  103. part1:remove()
  104.  
  105. for i = 10,1,-1 do
  106.  
  107. part2.Transparency = part2.Transparency + 0.1
  108.  
  109. wait(0.01)
  110. end
  111. part2:remove()
  112.  
  113. end
  114.  
  115.  
  116.  
  117. function despawn2(part1,length)
  118.  
  119. for i = 10,1,-1 do
  120.  
  121. part1.Transparency = part1.Transparency + 0.1
  122. part1.Size = part1.Size + Vector3.new(0.2,0,length)
  123. part1.Size = Vector3.new(part1.Size.X,part1.Size.Y,length)
  124.  
  125. wait(0.01)
  126. end
  127. part1:remove()
  128. end
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139. function snipe(T)
  140.  
  141. local part = Instance.new("Part", m)
  142. part.Parent = m
  143. part.Name = "Sniper"
  144. part.BottomSurface = 0
  145. part.TopSurface = 0
  146. part.BrickColor = BrickColor.new("Shamrock")
  147. part.FormFactor = "Custom"
  148. part.Size = Vector3.new(1, 1, 3)
  149. part.Anchored = true
  150. part.Locked = true
  151. part.CanCollide = false
  152. part.Transparency = 0
  153.  
  154. local S=part
  155.  
  156. part.Position = char.Torso.Position + Vector3.new(math.random(-5,5),math.random(3,8),math.random(-5,5))
  157. part.CFrame = CFrame.new(part.Position,T.Position)
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164. obj = part
  165. local lastPos = obj.CFrame.p
  166. objC = obj:Clone()
  167. wait(0.05)
  168. objC.Parent = part
  169. objC.FormFactor = "Custom"
  170. objC.Anchored = true
  171. objC.BrickColor = BrickColor.new("New Yeller")
  172. local distance = (T.Position- obj.CFrame.p).magnitude
  173. objC.Size = Vector3.new(0.2,0.2,distance)
  174. objC.CFrame = CFrame.new(T.Position,obj.Position)*CFrame.new(0,0,-distance/2)
  175. local s = Instance.new("Sound",part)
  176. s.SoundId = "rbxassetid://441874008"
  177. s.Volume = 1
  178. s.TimePosition = math.random(15,30)
  179. s:Play()
  180. despawn1(objC,part,distance)
  181. if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  182. mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(1,000,000)
  183. local PETemp = Instance.new("ParticleEmitter",mouse.Target) --HitMarkers
  184. PETemp.Texture = "rbxassetid://857586798"
  185. PETemp.Acceleration = Vector3.new(0,-10,0)
  186. PETemp.Lifetime = NumberRange.new(2,4)
  187. PETemp.Speed = NumberRange.new(8,10)
  188. PETemp.Rate = 100
  189. PETemp.VelocitySpread = 50
  190. PETemp.Rotation = NumberRange.new(50,50)
  191. PETemp.RotSpeed = NumberRange.new(200,200)
  192. PETemp.Enabled = true
  193. wait(0.1)
  194. PETemp.Enabled = false
  195. end
  196. end
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218. mouse.KeyDown:connect(function(key)
  219.  
  220.  
  221. if key == "q" then
  222. MousePart.CFrame = CFrame.new(mouse.Hit.p)
  223. snipe(MousePart)
  224. end
  225.  
  226.  
  227. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement