Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- 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
- --KAZOO KID! created by: Kidd_Anonymouse#9926 enjoy the script, Q to shoot your Kazoo cannons
- local player = game.Players.LocalPlayer
- local char = player.Character
- local head = char.Head
- local To = char.Torso
- local HRP = char.HumanoidRootPart
- local RA = char["Right Arm"]
- local LA = char["Left Arm"]
- local RL = char["Right Leg"]
- local LL = char["Left Leg"]
- local Hum = char:FindFirstChildOfClass("Humanoid")
- local mouse = player:GetMouse()
- --game:service'InsertService':LoadAsset(14030252):children()[1].Parent=char
- --game:GetObjects("rbxassetid://857556803")[1].Parent=char
- for i = 5,1,-1 do
- if char:FindFirstChildOfClass("Accessory") ~= nil then char:FindFirstChildOfClass("Accessory"):remove()end
- end
- char:WaitForChild("Animate").walk.WalkAnim.AnimationId = "http://www.roblox.com/Asset?ID=252557606"
- ------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------
- --game:GetObjects("rbxassetid://857556803")[1].Parent=char
- ------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------
- local m = Instance.new("Model",char)
- local s1 = Instance.new("Sound",char)
- s1.SoundId = "rbxassetid://379250303"
- s1.Volume = 0.5
- s1.Looped = true
- s1:Play()
- if head:FindFirstChild("face")== nil then
- local d = Instance.new("Decal",head)
- d.Texture = "rbxassetid://664468442"
- d.Face = "Front"
- else
- head:FindFirstChild("face").Texture = "rbxassetid://664468442"
- end
- if char:FindFirstChildOfClass("Shirt")== nil then
- local s = Instance.new("Shirt",char)
- s.ShirtTemplate = "rbxassetid://762916834"
- else
- char:FindFirstChildOfClass("Shirt").ShirtTemplate = "rbxassetid://762916834"
- end
- if char:FindFirstChildOfClass("Pants")== nil then
- local s = Instance.new("Pants",char)
- s.PantsTemplate = "rbxassetid://843263078"
- else
- char:FindFirstChildOfClass("Pants").PantsTemplate = "rbxassetid://843263078"
- end
- char:WaitForChild("Body Colors").HeadColor = BrickColor.new("Pastel brown")
- char:WaitForChild("Body Colors").LeftArmColor = BrickColor.new("Pastel brown")
- char:WaitForChild("Body Colors").LeftLegColor = BrickColor.new("Pastel brown")
- char:WaitForChild("Body Colors").RightArmColor = BrickColor.new("Pastel brown")
- char:WaitForChild("Body Colors").RightLegColor = BrickColor.new("Pastel brown")
- char:WaitForChild("Body Colors").TorsoColor = BrickColor.new("Pastel brown")
- Hum.WalkSpeed = 100
- Hum.JumpPower = 100
- --[[
- head:WaitForChild("Jumping")
- head.Jumping.SoundId = "rbxassetid://151681170"
- head.Jumping.Volume = 3
- --]]
- local MousePart = Instance.new("Part",m)
- MousePart.CanCollide = false
- MousePart.BottomSurface = "Smooth"
- MousePart.TopSurface = "Smooth"
- MousePart.Size = Vector3.new(0.2, 0.2, 0.2)
- MousePart.Anchored = true
- function despawn1(part1,part2,length)
- for i = 10,1,-1 do
- part1.Transparency = part1.Transparency + 0.1
- part1.Size = part1.Size + Vector3.new(0.2,0.2,length)
- part1.Size = Vector3.new(part1.Size.X,part1.Size.Y,length)
- wait(0.01)
- end
- part1:remove()
- for i = 10,1,-1 do
- part2.Transparency = part2.Transparency + 0.1
- wait(0.01)
- end
- part2:remove()
- end
- function despawn2(part1,length)
- for i = 10,1,-1 do
- part1.Transparency = part1.Transparency + 0.1
- part1.Size = part1.Size + Vector3.new(0.2,0,length)
- part1.Size = Vector3.new(part1.Size.X,part1.Size.Y,length)
- wait(0.01)
- end
- part1:remove()
- end
- function snipe(T)
- local part = Instance.new("Part", m)
- part.Parent = m
- part.Name = "Sniper"
- part.BottomSurface = 0
- part.TopSurface = 0
- part.BrickColor = BrickColor.new("Shamrock")
- part.FormFactor = "Custom"
- part.Size = Vector3.new(1, 1, 3)
- part.Anchored = true
- part.Locked = true
- part.CanCollide = false
- part.Transparency = 0
- local S=part
- part.Position = char.Torso.Position + Vector3.new(math.random(-5,5),math.random(3,8),math.random(-5,5))
- part.CFrame = CFrame.new(part.Position,T.Position)
- obj = part
- local lastPos = obj.CFrame.p
- objC = obj:Clone()
- wait(0.05)
- objC.Parent = part
- objC.FormFactor = "Custom"
- objC.Anchored = true
- objC.BrickColor = BrickColor.new("New Yeller")
- local distance = (T.Position- obj.CFrame.p).magnitude
- objC.Size = Vector3.new(0.2,0.2,distance)
- objC.CFrame = CFrame.new(T.Position,obj.Position)*CFrame.new(0,0,-distance/2)
- local s = Instance.new("Sound",part)
- s.SoundId = "rbxassetid://441874008"
- s.Volume = 1
- s.TimePosition = math.random(15,30)
- s:Play()
- despawn1(objC,part,distance)
- if mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- mouse.Target.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(1,000,000)
- local PETemp = Instance.new("ParticleEmitter",mouse.Target) --HitMarkers
- PETemp.Texture = "rbxassetid://857586798"
- PETemp.Acceleration = Vector3.new(0,-10,0)
- PETemp.Lifetime = NumberRange.new(2,4)
- PETemp.Speed = NumberRange.new(8,10)
- PETemp.Rate = 100
- PETemp.VelocitySpread = 50
- PETemp.Rotation = NumberRange.new(50,50)
- PETemp.RotSpeed = NumberRange.new(200,200)
- PETemp.Enabled = true
- wait(0.1)
- PETemp.Enabled = false
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == "q" then
- MousePart.CFrame = CFrame.new(mouse.Hit.p)
- snipe(MousePart)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement