Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script has convert to FE by who i don't know?
- -----------------------------------------------------
- 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 | Showcase by Bacon Hair!")
- 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()}
- 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
- 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 s[k] end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end,
- __call = function(self,...)
- local s = rawget(self,"_RealService")
- if s then return s(...) 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 self[s]
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- g.RunService = FakeService({
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- setmetatable(g,{
- __index=function(self,s)
- return _rg:GetService(s) or typeof(_rg[s])=="function"
- and function(_,...)return _rg[s](_rg,...)end or _rg[s]
- end,
- __newindex = fsmt.__newindex,
- __call = fsmt.__call
- })
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- --Made by Trry
- wait(3)
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character
- local rightarm = char["Right Arm"]
- local torso = char.Torso
- local leftarm = char["Left Arm"]
- local leftleg = char["Left Leg"]
- local rightleg = char["Right Leg"]
- local Hed = char.Head
- rightarm.Transparency = 1
- leftarm.Transparency = 1
- torso.Transparency = 1
- Hed.Transparency = 1
- rightleg.Transparency = 1
- leftleg.Transparency = 1
- char.Humanoid.MaxHealth = "10000"
- char.Humanoid.Health = "10000"
- if char.Humanoid.Jump == true
- then char.Sit = true
- end
- char.Humanoid.WalkSpeed = 30
- Hed.face:Remove()
- blade = Instance.new("Part",rightarm)
- blade.Anchored = true
- blade.Size = Vector3.new(2, 1 ,1)
- blade.BrickColor = BrickColor.new("Black")
- blade.Material = "Neon"
- blade.Name = "RA"
- blade.Rotation = Vector3.new(0, 0, 90)
- blade.CanCollide = false
- blade.Transparency = 0.8
- print("loaded Right Arm")
- local i = 1
- blade2 = Instance.new("Part",leftarm)
- blade2.Anchored = true
- blade2.Size = Vector3.new(2, 1 ,1)
- blade2.BrickColor = BrickColor.new("Black")
- blade2.Material = "Neon"
- blade2.Name = "LA"
- blade2.Rotation = Vector3.new(0, 0, 90)
- blade2.CanCollide = false
- blade2.Transparency = 0.8
- print("loaded Left Arm")
- local i = 1
- blade3 = Instance.new("Part",leftleg)
- blade3.Anchored = true
- blade3.Size = Vector3.new(2, 1 ,1)
- blade3.BrickColor = BrickColor.new("Quill Grey")
- blade3.Material = "Neon"
- blade3.Name = "LL"
- blade3.Rotation = Vector3.new(0, 0, 90)
- blade3.CanCollide = false
- blade3.Transparency = 0.8
- print("loaded Left Leg")
- local i = 1
- blade4 = Instance.new("Part",rightleg)
- blade4.Anchored = true
- blade4.Size = Vector3.new(2, 1 ,1)
- blade4.BrickColor = BrickColor.new("Black")
- blade4.Material = "Neon"
- blade4.Name = "RL"
- blade4.Rotation = Vector3.new(0, 0, 90)
- blade4.CanCollide = false
- blade4.Transparency = 0.8
- print("loaded Right Leg")
- local i = 1
- blade5 = Instance.new("Part",torso)
- blade5.Anchored = true
- blade5.Size = Vector3.new(2, 2 ,1)
- blade5.BrickColor = BrickColor.new("Black")
- blade5.Material = "Neon"
- blade5.Name = "TORSO"
- blade5.Rotation = Vector3.new(0, 0, 90)
- blade5.CanCollide = false
- blade5.Transparency = 0.8
- print("loaded Torso")
- local i = 1
- blade6 = Instance.new("Part",Hed)
- meshed = Instance.new("SpecialMesh", blade6)
- blade6.Anchored = true
- blade6.Size = Vector3.new(1, 1 ,1)
- blade6.BrickColor = BrickColor.new("Black")
- blade6.Material = "Neon"
- blade6.Name = "TORSO"
- blade6.Rotation = Vector3.new(0, 0, 0)
- blade6.CanCollide = false
- blade6.Transparency = 0.8
- meshed.MeshType = "Head"
- meshed.Scale = Vector3.new(1.25, 1.25, 1.25)
- meshed.VertexColor = Vector3.new(1, 1, 1)
- print("loaded Head")
- local i = 1
- repeat
- blade2.Position = leftarm.Position
- blade.Position = rightarm.Position
- blade.Rotation = leftarm.Rotation + Vector3.new(0, 0, 90)
- blade2.Rotation = rightarm.Rotation + Vector3.new(0, 0, 90)
- blade3.Position = leftleg.Position
- blade3.Rotation = leftleg.Rotation + Vector3.new(0, 0, 90)
- blade4.Position = rightleg.Position
- blade4.Rotation = rightleg.Rotation + Vector3.new(0, 0, 90)
- blade5.Position = torso.Position
- blade5.Rotation = torso.Rotation + Vector3.new(0, 0, 90)
- blade6.Position = Hed.Position
- blade6.Rotation = Hed.Rotation + Vector3.new(0, 0, 0)
- i = i + 0
- wait(0.0001)
- until i==3
- print("loaded second")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement