Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local rplr = owner
- local Faker = NLS ([=[
- local plr = game.Players.LocalPlayer
- local m = plr:GetMouse()
- local remote = Instance.new("RemoteEvent",script)
- remote.Name = "Server"
- Server = remote
- m.KeyDown:Connect(function(k)
- remote:FireServer('KeyDown',k)
- end)
- m.KeyUp:Connect(function(k)
- remote:FireServer('KeyUp',k)
- end)
- m.Button1Down:Connect(function()
- remote:FireServer('Button1Down')
- end)
- m.Button1Up:Connect(function()
- remote:FireServer('Button1Up')
- end)
- m.Button2Down:Connect(function()
- remote:FireServer('Button2Down')
- end)
- m.Button2Up:Connect(function()
- remote:FireServer('Button2Up')
- end)
- game:GetService("UserInputService").InputBegan:Connect(function(input)
- remote:FireServer('UISBegan',{KeyCode=input.KeyCode,UserInputType=input.UserInputType,UserInputState=input.UserInputState})
- end)
- game:GetService("UserInputService").InputEnded:Connect(function(input)
- remote:FireServer('UISEnded',{KeyCode=input.KeyCode,UserInputType=input.UserInputType,UserInputState=input.UserInputState})
- end)
- local hit = m.Hit
- local target = m.Target
- local cframecam = game.Workspace.CurrentCamera.CFrame
- local UIS = game:GetService("UserInputService")
- script.Parent.Server:FireServer('UIS',{UIS=game:GetService("UserInputService")})
- while wait(1/30)do
- if hit~=m.Hit or target~=m.Target then
- script.Parent.Server:FireServer('Hit',{Hit = m.Hit})
- script.Parent.Server:FireServer('Target',{Target = m.Target})
- hit = m.Hit
- target = m.Target
- end
- end
- ]=], owner.Character)
- local plr = rplr
- local char = plr.Character
- char.Archivable = true
- local cam = workspace:WaitForChild("Camera")
- local fakechar = char:Clone()
- fakechar.Head.face.Texture = ""
- fakechar.Parent = workspace
- local FakeArm1 = Instance.new("Weld",rplr.Character.Torso)
- FakeArm1.Name = "Left Shoulder"
- local FakeArm2 = Instance.new("Weld",rplr.Character.Torso)
- FakeArm2.Name = "Right Shoulder"
- local FakeAnimator = Instance.new("LocalScript",rplr.Character.Humanoid)
- FakeAnimator.Name = "Animator"
- local FakeAnimate = Instance.new("Script",rplr.Character)
- FakeAnimate.Name = "Animate"
- local Everything = Instance.new("RemoteEvent",game.ReplicatedStorage)
- Everything.Name = math.random(100000,1000000000)
- local WeldRemote = Instance.new("RemoteEvent",game.ReplicatedStorage)
- WeldRemote.Name = math.random(100000,1000000000)
- local Damage = Instance.new("RemoteEvent",game.ReplicatedStorage)
- Damage.Name = math.random(100000,1000000000)
- local Settings = Instance.new("Folder",game.ReplicatedStorage)
- Settings.Name = math.random(100000,1000000000)
- local Equipped = Instance.new("BoolValue",Settings)
- Equipped.Name = "Equipped"
- Equipped.Value = false
- --Nebula's thing that prevents arms falling off.
- NewInstance = function(instance,parent,properties)
- local inst = Instance.new(instance)
- inst.Parent = parent
- if(properties)then
- for i,v in next, properties do
- pcall(function() inst[i] = v end)
- end
- end
- return inst;
- end
- local CF={N=CFrame.new,A=CFrame.Angles}
- local Head = rplr.Character:WaitForChild'Head'
- local Torso = rplr.Character:WaitForChild'Torso'
- local LArm = rplr.Character:WaitForChild'Left Arm'
- local RArm = rplr.Character:WaitForChild'Right Arm'
- local LLeg = rplr.Character:WaitForChild'Left Leg'
- local RLeg = rplr.Character:WaitForChild'Right Leg'
- local Root = rplr.Character:WaitForChild'HumanoidRootPart'
- local function newMotor(P0,P1,C0,C1)
- return NewInstance('Motor',P0,{Part0=P0,Part1=P1,C0=C0,C1=C1})
- end
- local welds = {}
- --
- table.insert(welds,newMotor(Torso,RArm,CF.N(1.5,.5,0),CF.N(0,.5,0)))
- table.insert(welds,newMotor(Torso,LArm,CF.N(-1.5,.5,0),CF.N(0,.5,0)))
- --[[table.insert(welds,newMotor(Torso,Head,CF.N(0,1.5,0),CF.N()))
- table.insert(welds,newMotor(Root,Torso,CF.N(),CF.N()))
- table.insert(welds,newMotor(Torso,RLeg,CF.N(.5, -2, 0),CF.N(0,0,0)))
- table.insert(welds,newMotor(Torso,RArm,CF.N(1.5, 0, 0),CF.N(0,0,0)))
- table.insert(welds,newMotor(Torso,LLeg,CF.N(-.5, -2, 0),CF.N(0,0,0)))
- table.insert(welds,newMotor(Torso,LArm,CF.N(-1.5, 0, 0),CF.N(0,0,0)))
- ]]
- --end
- WeldRemote:FireAllClients(welds)
- local reqq = nil
- local keyy = nil
- function CreateGui(currentplr)
- local Gui = Instance.new("ScreenGui",currentplr.PlayerGui)
- Gui.Name = "Rep"
- local DamageValue = Instance.new("StringValue")
- DamageValue.Name = "DamageRemoteName"
- DamageValue.Parent = Gui
- local FolderValue = Instance.new("StringValue")
- FolderValue.Name = "FolderName"
- FolderValue.Parent = Gui
- local PlayerValue = Instance.new("ObjectValue")
- PlayerValue.Name = "Player"
- PlayerValue.Parent = Gui
- local RemoteValue = Instance.new("StringValue")
- RemoteValue.Name = "DRemoteName"
- RemoteValue.Parent = Gui
- local WeldValue = Instance.new("StringValue")
- WeldValue.Name = "WeldRemoteName"
- WeldValue.Parent = Gui
- return Gui
- end
- Server.OnServerEvent:Connect(function(nothing,request,key)
- if request == 'KeyDown' then
- Everything:FireAllClients(request,key)
- elseif request == 'KeyUp' then
- Everything:FireAllClients(request,key)
- elseif request == 'Button1Down' then
- Everything:FireAllClients(request)
- elseif request == 'Button1Up' then
- Everything:FireAllClients(request)
- elseif request == 'Button2Down' then
- Everything:FireAllClients(request)
- elseif request == 'Button2Up' then
- Everything:FireAllClients(request)
- elseif request == 'Hit' then
- Everything:FireAllClients(request,key.Hit)
- elseif request == 'Target' then
- Everything:FireAllClients(request,key.Target)
- elseif request == 'UISBegan' then
- Everything:FireAllClients(request,key)
- elseif request == 'UISEnded' then
- Everything:FireAllClients(request,key)
- end
- end)
- Everything.OnServerEvent:Connect(function(plr, req, aaa)
- if req == "Equipper" then
- if plr == rplr then
- Equipped.Value = aaa
- end
- end
- end)
- local RepFolder = script.Rep
- for i,v in pairs(game.Players:GetPlayers())do
- CurrentGui = CreateGui(v)
- CurrentGui.RemoteName.Value = Everything.Name
- CurrentGui.WeldRemoteName.Value = WeldRemote.Name
- CurrentGui.FolderName.Value = Settings.Name
- CurrentGui.DamageRemoteName.Value = Damage.Name
- NLS ([=[
- local rplr = script.Parent.Player.Value
- local RepStorage = game.ReplicatedStorage
- local Remote = RepStorage:WaitForChild(script.Parent.RemoteName.Value)
- local lplr = game.Players.LocalPlayer
- local ms = lplr:GetMouse()
- local WeldRemote = RepStorage:WaitForChild(script.Parent.WeldRemoteName.Value)
- local welds = nil
- local damageremote = game.ReplicatedStorage[script.Parent.DamageRemoteName.Value]
- WeldRemote.OnClientEvent:connect(function(aaa)
- welds=aaa
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- if rplr ~= lplr then return end
- workspace.CurrentCamera.CameraSubject = rplr.Character
- end)
- function LoadLibrary(thing)
- if thing=="RbxGui" then
- return require(script.LoadLibrary.RbxGui)
- elseif thing=="RbxStamper" then
- return require(script.LoadLibrary.RbxStamper)
- elseif thing=="RbxUtility" then
- return require(script.LoadLibrary.RbxUtility)
- end
- end
- local Settings = game.ReplicatedStorage[script.Parent.FolderName.Value]
- --[[saver
- coroutine.resume(coroutine.create(function()
- local AutoEquipper=Saver:InvokeServer("AcquireData")
- if AutoEquipper then
- for _, gotteninfo in pairs(AutoEquipper)do
- equipped = gotteninfo.Equipped
- end
- end
- if equipped == true then
- weaponweld.Part0 = rarm
- weaponweld.C1=clerp(weaponweld.C1,cf(0,1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- equipped = true
- else
- equipped = false
- weaponweld.C1=clerp(weaponweld.C1,cf(-3,0,-0.5)*angles(math.rad(0),math.rad(0),math.rad(-40)),.5)
- weaponweld.Part0 = tors
- end
- end))
- --]]
- if lplr ~= rplr then
- local PlayerGui = Instance.new("Folder",rplr)
- PlayerGui.Name = "PlayerGui"
- end
- local UISB = Instance.new("BindableEvent")
- local UISE = Instance.new("BindableEvent")
- local KD = Instance.new("BindableEvent")
- local KU = Instance.new("BindableEvent")
- local B1D = Instance.new("BindableEvent")
- local B1U = Instance.new("BindableEvent")
- local B2D = Instance.new("BindableEvent")
- local B2U = Instance.new("BindableEvent")
- local Ht = Instance.new("BindableEvent")
- local Trg = Instance.new("BindableEvent")
- local mouse = {}
- UserInputService = {InputBegan=UISB.Event,InputEnded=UISE.Event}
- mouse.KeyDown = KD.Event
- mouse.KeyUp = KU.Event
- mouse.Button1Down = B1D.Event
- mouse.Button1Up = B1U.Event
- mouse.Button2Down = B2D.Event
- mouse.Button2Up = B2U.Event
- mouse.Hit = Ht
- mouse.Target = nil
- Remote.OnClientEvent:Connect(function(request,key)
- if request == 'KeyDown' then
- KD:Fire(key)
- elseif request == 'KeyUp' then
- KU:Fire(key)
- elseif request == 'Button1Down' then
- B1D:Fire()
- elseif request == 'Button1Up' then
- B1U:Fire()
- elseif request == 'Button2Down' then
- B2D:Fire()
- elseif request == 'Button2Up' then
- B2U:Fire()
- elseif request == 'Hit' then
- mouse.Hit = key
- elseif request == 'Target' then
- mouse.Target = key
- elseif request == 'UISBegan' then
- UISB:Fire(key)
- elseif request == 'UISEnded' then
- UISE:Fire(key)
- end
- end)
- wait(0.2)
- ]=], CurrentGui);
- WeldRemote:FireAllClients(welds)
- end
- Damage.OnServerEvent:Connect(function(plr,hum,value)
- hum.Health = value
- end)
- game.Players.PlayerAdded:Connect(function(plr)
- ---repeat wait() until plr.PlayerGui
- ---local RepEveryone = rplr.PlayerGui.Rep:Clone()
- ---RepEveryone.Parent = plr.PlayerGui
- ---RepEveryone.Player.Value = rplr
- ---RepEveryone.Main.Disabled = false
- CurrentGui = CreateGui(plr)
- CurrentGui.RemoteName.Value = Everything.Name
- CurrentGui.WeldRemoteName.Value = WeldRemote.Name
- CurrentGui.FolderName.Value = Settings.Name
- CurrentGui.DamageRemoteName.Value = Damage.Name
- NLS ([=[
- local rplr = script.Parent.Player.Value
- local RepStorage = game.ReplicatedStorage
- local Remote = RepStorage:WaitForChild(script.Parent.RemoteName.Value)
- local lplr = game.Players.LocalPlayer
- local ms = lplr:GetMouse()
- local WeldRemote = RepStorage:WaitForChild(script.Parent.WeldRemoteName.Value)
- local welds = nil
- local damageremote = game.ReplicatedStorage[script.Parent.DamageRemoteName.Value]
- WeldRemote.OnClientEvent:connect(function(aaa)
- welds=aaa
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- if rplr ~= lplr then return end
- workspace.CurrentCamera.CameraSubject = rplr.Character
- end)
- function LoadLibrary(thing)
- if thing=="RbxGui" then
- return require(script.LoadLibrary.RbxGui)
- elseif thing=="RbxStamper" then
- return require(script.LoadLibrary.RbxStamper)
- elseif thing=="RbxUtility" then
- return require(script.LoadLibrary.RbxUtility)
- end
- end
- local Settings = game.ReplicatedStorage[script.Parent.FolderName.Value]
- --[[saver
- coroutine.resume(coroutine.create(function()
- local AutoEquipper=Saver:InvokeServer("AcquireData")
- if AutoEquipper then
- for _, gotteninfo in pairs(AutoEquipper)do
- equipped = gotteninfo.Equipped
- end
- end
- if equipped == true then
- weaponweld.Part0 = rarm
- weaponweld.C1=clerp(weaponweld.C1,cf(0,1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- equipped = true
- else
- equipped = false
- weaponweld.C1=clerp(weaponweld.C1,cf(-3,0,-0.5)*angles(math.rad(0),math.rad(0),math.rad(-40)),.5)
- weaponweld.Part0 = tors
- end
- end))
- --]]
- if lplr ~= rplr then
- local PlayerGui = Instance.new("Folder",rplr)
- PlayerGui.Name = "PlayerGui"
- end
- local UISB = Instance.new("BindableEvent")
- local UISE = Instance.new("BindableEvent")
- local KD = Instance.new("BindableEvent")
- local KU = Instance.new("BindableEvent")
- local B1D = Instance.new("BindableEvent")
- local B1U = Instance.new("BindableEvent")
- local B2D = Instance.new("BindableEvent")
- local B2U = Instance.new("BindableEvent")
- local Ht = Instance.new("BindableEvent")
- local Trg = Instance.new("BindableEvent")
- local mouse = {}
- UserInputService = {InputBegan=UISB.Event,InputEnded=UISE.Event}
- mouse.KeyDown = KD.Event
- mouse.KeyUp = KU.Event
- mouse.Button1Down = B1D.Event
- mouse.Button1Up = B1U.Event
- mouse.Button2Down = B2D.Event
- mouse.Button2Up = B2U.Event
- mouse.Hit = Ht
- mouse.Target = nil
- Remote.OnClientEvent:Connect(function(request,key)
- if request == 'KeyDown' then
- KD:Fire(key)
- elseif request == 'KeyUp' then
- KU:Fire(key)
- elseif request == 'Button1Down' then
- B1D:Fire()
- elseif request == 'Button1Up' then
- B1U:Fire()
- elseif request == 'Button2Down' then
- B2D:Fire()
- elseif request == 'Button2Up' then
- B2U:Fire()
- elseif request == 'Hit' then
- mouse.Hit = key
- elseif request == 'Target' then
- mouse.Target = key
- elseif request == 'UISBegan' then
- UISB:Fire(key)
- elseif request == 'UISEnded' then
- UISE:Fire(key)
- end
- end)
- wait(0.2)
- ]=], CurrentGui);
- WeldRemote:FireAllClients(welds)
- end)
- rplr.CharacterAdded:Connect(function()
- for i,v in pairs(game.Players:GetPlayers())do
- if v.PlayerGui:FindFirstChild("Rep") then
- v.PlayerGui.Rep:Destroy()
- end
- script:Destroy()
- end
- end)
- fakechar:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement