Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- owner.Character.Head.face.Texture = ""
- owner.Character["Body Colors"]:Destroy()
- owner.Character.Humanoid.WalkSpeed = 30
- wait(0.1)
- for i,v in pairs(owner.Character:GetChildren()) do
- if v.ClassName == "CharacterMesh" then
- v:Destroy()
- end
- if v.ClassName == "Shirt" then
- v:Destroy()
- end
- if v.ClassName == "Part" then
- if not(v.Name == "HumanoidRootPart") then
- v.BrickColor = BrickColor.new("Really black")
- v.Transparency = 0.982
- if v.Name == "Head" then
- local new = Instance.new("Part", owner.Character)
- new.BrickColor = BrickColor.new("Really black")
- new.Name = "fakehead"
- new.Size = v.Size
- local mesh = v.Mesh:Clone()
- mesh.Parent = new
- new.Transparency = 0.982
- v.Transparency = 1
- local wel = Instance.new("Weld", owner.Character)
- wel.Part0 = v
- wel.Part1 = new
- end
- end
- end
- if v.ClassName == "MeshPart" then
- v.BrickColor = BrickColor.new("Really black")
- v.Transparency = 0.982
- end
- if v.ClassName == "Pants" then
- v:Destroy()
- end
- if v.ClassName == "ShirtGraphic" then
- v:Destroy()
- end
- if v.ClassName == "Accessory" then
- v:Destroy()
- end
- if v.ClassName == "Hat" then
- v:Destroy()
- end
- end
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code by Mokiros")
- local rp = RealPlayer
- script.Parent = rp.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return m:TrigEvent(b and "Button2Down" or "Button2Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local Mouse = Player:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return rawget(self,s) or _rg:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- FakeService(g,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- script.Parent = workspace.CurrentCamera
- local plr = game:GetService("Players").LocalPlayer
- local tool = Instance.new("Tool",plr:WaitForChild("Backpack"))
- tool.GripUp = Vector3.new(0, 1, 0)
- tool.GripPos = Vector3.new(0, -0.8, 0)
- tool.Name = "bluE"
- local part = Instance.new("Part",tool)
- part.Name = "Handle"
- part.Size = Vector3.new(4,6,4)
- part.TopSurface = "Smooth"
- part.BottomSurface = "Smooth"
- part.CanCollide = false
- part:BreakJoints()
- local mesh = Instance.new("SpecialMesh",part)
- mesh.MeshId = "rbxassetid://121944778" --mesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
- mesh.TextureId = "rbxassetid://121944805" --"http://www.roblox.com/asset/?id=121944805"
- mesh.Scale = Vector3.new(1,1,1)
- local sound = Instance.new("Sound",part)
- sound.SoundId = "rbxassetid://186311262"
- sound.Volume = 10
- local sound2 = Instance.new("Sound",part)
- sound2.SoundId = ""
- sound2.Volume = 5
- local sound3 = Instance.new("Sound",part)
- sound3.SoundId = ""
- sound3.Volume = 10
- local sound4 = Instance.new("Sound",part)
- sound4.SoundId = ""
- sound4.Volume = 10
- local sound5 = Instance.new("Sound",part)
- sound5.SoundId = ""
- sound5.Volume = 10
- local sound6 = Instance.new("Sound",part)
- sound6.SoundId = ""
- sound6.Volume = 10
- sound6.TimePosition = 2
- function firstHum(target)
- for i,v in pairs(target:GetChildren()) do
- if v:IsA("Humanoid") then
- return v
- end
- end
- return nil
- end
- local slap = false
- local cd = false
- plr:GetMouse().Button1Down:connect(function()
- if tool.Parent == plr.Character then
- if slap == false then
- slap = true
- sound2:Play()
- local str = Instance.new("StringValue")
- str.Name = "toolanim"
- str.Value = "Slash"
- str.Parent = tool
- wait(1)
- slap = false
- end
- end
- end)
- part.Touched:connect(function(hit)
- if slap == true then
- if cd == false then
- wait(0.1)
- if not hit:IsDescendantOf(plr.Character) then
- if hit.Parent:IsA("Model") then
- local fhum = firstHum(hit.Parent)
- if fhum then
- cd = true
- fhum.PlatformStand = true
- sound:Play()
- local con1
- con1 = game:GetService("RunService").Heartbeat:connect(function()
- fhum.PlatformStand = true
- end)
- wait(0.1)
- if fhum.RigType == Enum.HumanoidRigType.R6 then
- for i,v in pairs(fhum.Parent:GetChildren()) do
- if v.Name == "lol" then
- v:Destroy()
- end
- if v.ClassName == "Glue" then
- v:Destroy()
- end
- end
- fhum.Parent.Torso["Left Hip"].Part1 = nil
- fhum.Parent.Torso["Left Shoulder"].Part1 = nil
- fhum.Parent.Torso["Right Hip"].Part1 = nil
- fhum.Parent.Torso["Right Shoulder"].Part1 = nil
- local c1 = Instance.new("Part", fhum.Parent)
- c1.Size = Vector3.new(1, 1 , 1)
- c1.Transparency = 1
- c1.Name = "lol"
- local c2 = Instance.new("Part", fhum.Parent)
- c2.Size = Vector3.new(1, 1 , 1)
- c2.Transparency = 1
- c2.Name = "lol"
- local c3 = Instance.new("Part", fhum.Parent)
- c3.Size = Vector3.new(1, 1 , 1)
- c3.Transparency = 1
- c3.Name = "lol"
- local c4 = Instance.new("Part", fhum.Parent)
- c4.Size = Vector3.new(1, 1 , 1)
- c4.Transparency = 1
- c4.Name = "lol"
- local weld1 = Instance.new("Weld", fhum.Parent)
- weld1.Part0 = fhum.Parent["Left Arm"]
- weld1.Part1 = c1
- local weld2 = Instance.new("Weld", fhum.Parent)
- weld2.Part0 = fhum.Parent["Left Leg"]
- weld2.Part1 = c2
- local weld3 = Instance.new("Weld", fhum.Parent)
- weld3.Part0 = fhum.Parent["Right Arm"]
- weld3.Part1 = c3
- local weld4 = Instance.new("Weld", fhum.Parent)
- weld4.Part0 = fhum.Parent["Right Leg"]
- weld4.Part1 = c4
- local j1 = Instance.new("Glue", fhum.Parent)
- j1.Part0 = fhum.Parent.Torso
- j1.Part1 = fhum.Parent["Right Arm"]
- j1.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- j1.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- local j2 = Instance.new("Glue", fhum.Parent)
- j2.Part0 = fhum.Parent.Torso
- j2.Part1 = fhum.Parent["Right Leg"]
- j2.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- j2.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- local j3 = Instance.new("Glue", fhum.Parent)
- j3.Part0 = fhum.Parent.Torso
- j3.Part1 = fhum.Parent["Left Arm"]
- j3.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- j3.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- local j4 = Instance.new("Glue", fhum.Parent)
- j4.Part0 = fhum.Parent.Torso
- j4.Part1 = fhum.Parent["Left Leg"]
- j4.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- j4.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- wait(1)
- fhum:Destroy()
- end
- if fhum.RigType == Enum.HumanoidRigType.R15 then
- for i,v in pairs(fhum.Parent:GetChildren()) do
- if v.Name == "lol" then
- v:Destroy()
- end
- if v.ClassName == "Glue" then
- v:Destroy()
- end
- end
- fhum.Parent.LeftUpperLeg.LeftHip.Part1 = nil
- fhum.Parent.LeftUpperArm.LeftShoulder.Part1 = nil
- fhum.Parent.RightUpperLeg.RightHip.Part1 = nil
- fhum.Parent.RightUpperArm.RightShoulder.Part1 = nil
- local c1 = Instance.new("Part", fhum.Parent)
- c1.Size = Vector3.new(1, 1 , 1)
- c1.Transparency = 1
- c1.Name = "lol"
- local c2 = Instance.new("Part", fhum.Parent)
- c2.Size = Vector3.new(1, 1 , 1)
- c2.Transparency = 1
- c2.Name = "lol"
- local c3 = Instance.new("Part", fhum.Parent)
- c3.Size = Vector3.new(1, 1 , 1)
- c3.Transparency = 1
- c3.Name = "lol"
- local c4 = Instance.new("Part", fhum.Parent)
- c4.Size = Vector3.new(1, 1 , 1)
- c4.Transparency = 1
- c4.Name = "lol"
- local weld1 = Instance.new("Weld", fhum.Parent)
- weld1.Part0 = fhum.Parent.LeftLowerArm
- weld1.Part1 = c1
- local weld2 = Instance.new("Weld", fhum.Parent)
- weld2.Part0 = fhum.Parent.LeftLowerLeg
- weld2.Part1 = c2
- local weld3 = Instance.new("Weld", fhum.Parent)
- weld3.Part0 = fhum.Parent.RightLowerArm
- weld3.Part1 = c3
- local weld4 = Instance.new("Weld", fhum.Parent)
- weld4.Part0 = fhum.Parent.RightLowerLeg
- weld4.Part1 = c4
- local j1 = Instance.new("Glue", fhum.Parent)
- j1.Part0 = fhum.Parent. UpperTorso
- j1.Part1 = fhum.Parent.RightUpperArm
- j1.C0 = fhum.Parent.RightUpperArm.RightShoulder.C0
- j1.C1 = fhum.Parent.RightUpperArm.RightShoulder.C1
- local j2 = Instance.new("Glue", fhum.Parent)
- j2.Part0 = fhum.Parent.LowerTorso
- j2.Part1 = fhum.Parent.RightUpperLeg
- j2.C0 = fhum.Parent.RightUpperLeg.RightHip.C0
- j2.C1 = fhum.Parent.RightUpperLeg.RightHip.C1
- local j3 = Instance.new("Glue", fhum.Parent)
- j3.Part0 = fhum.Parent.UpperTorso
- j3.Part1 = fhum.Parent.LeftUpperArm
- j3.C0 = fhum.Parent.LeftUpperArm.LeftShoulder.C0
- j3.C1 = fhum.Parent.LeftUpperArm.LeftShoulder.C1
- local j4 = Instance.new("Glue", fhum.Parent)
- j4.Part0 = fhum.Parent.LowerTorso
- j4.Part1 = fhum.Parent.LeftUpperLeg
- j4.C0 = fhum.Parent.LeftUpperLeg.LeftHip.C0
- j1.C1 = fhum.Parent.LeftUpperLeg.LeftHip.C1
- wait(0.0000000000000000001)
- fhum:Destroy()
- end
- wait(1)
- cd = false
- end
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement