Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 V2 by Mokiros")
- local RealPlayer = RealPlayer
- script.Parent = RealPlayer.Character
- --Fake event to make stuff like Mouse.KeyDown work
- local Disconnect_Function = function(this)
- this[1].Functions[this[2]] = nil
- end
- local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
- local FakeEvent_Metatable = {__index={
- Connect = function(this,f)
- local i = tostring(math.random(0,10000))
- while this.Functions[i] do
- i = tostring(math.random(0,10000))
- end
- this.Functions[i] = f
- return setmetatable({this,i},Disconnect_Metatable)
- end
- }}
- FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
- local function fakeEvent()
- return setmetatable({Functions={}},FakeEvent_Metatable)
- end
- --Creating fake input objects with fake variables
- local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
- FakeMouse.keyUp = FakeMouse.KeyUp
- FakeMouse.keyDown = FakeMouse.KeyDown
- 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 TriggerEvent(self,ev,...)
- for _,f in pairs(self[ev].Functions) do
- f(...)
- end
- end
- FakeMouse.TriggerEvent = TriggerEvent
- UIS.TriggerEvent = TriggerEvent
- --Client communication
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=RealPlayer then return end
- FakeMouse.Target = io.Target
- FakeMouse.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return FakeMouse:TriggerEvent(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
- FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
- local Mouse = owner:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,RobloxHandled)
- if RobloxHandled 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 every second frame, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- local HB = game:GetService("RunService").Heartbeat
- while true 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
- --Wait 2 frames
- for i=1,2 do
- HB:Wait()
- end
- end]==],script)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local RealGame = game
- --Metatable for fake service
- local FakeService_Metatable = {
- __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 RealGame:GetService(RealService) or RealService
- return setmetatable(t,FakeService_Metatable)
- end
- --Fake game object
- local FakeGame = {
- GetService = function(self,s)
- return rawget(self,s) or RealGame:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = RealGame: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(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
- FakeGame.service = FakeGame.GetService
- FakeService(FakeGame,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = FakeGame,FakeGame.Players.LocalPlayer
- end
- --Script made by Pedrorb03
- growingList = {}
- degrowingList = {}
- torso = Instance.new("Part") torso.Size = Vector3.new(0,0,0) torso.CanCollide = false
- torso.Anchored = true
- local mesh = Instance.new("SpecialMesh",torso) mesh.MeshId = "rbxassetid://1198391230" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.01,0.01,0.01)
- arm = Instance.new("Part") arm.Size = Vector3.new(0,0,0) arm.CanCollide = false
- arm.Anchored = true
- local mesh = Instance.new("SpecialMesh",arm) mesh.MeshId = "rbxassetid://1198392540" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.02,0.02,0.02)
- leg1 = Instance.new("Part") leg1.Size = Vector3.new(0,0,0) leg1.CanCollide = false
- leg1.Anchored = true
- local mesh = Instance.new("SpecialMesh",leg1) mesh.MeshId = "rbxassetid://1198394446" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.01,0.01,0.01)
- leg2 = Instance.new("Part") leg2.Size = Vector3.new(0,0,0) leg2.CanCollide = false
- leg2.Anchored = true
- local mesh = Instance.new("SpecialMesh",leg2) mesh.MeshId = "rbxassetid://1198393506" mesh.TextureId = "rbxassetid://1198391349" mesh.Scale = Vector3.new(0.02,0.02,0.02)
- headd = Instance.new("Part") headd.Size = Vector3.new(1,1,1) headd.CanCollide = false
- local mesh = Instance.new("SpecialMesh",headd) mesh.Scale = Vector3.new(1.25,1.25,1.25) mesh.MeshType = Enum.MeshType.Head
- headd.BrickColor = BrickColor.new("Pastel brown")
- game:GetService("RunService").RenderStepped:connect(function()
- for _,grow in pairs(growingList) do
- local cframe = grow.CFrame
- grow.Size = grow.Size+Vector3.new(1,1,1)
- grow.Transparency = grow.Transparency+0.04
- end
- for _,degrow in pairs(degrowingList) do
- local cframe = degrow.CFrame
- degrow.Size = degrow.Size-Vector3.new(1,1,1)
- degrow.Transparency = degrow.Transparency+0.04
- end
- end)
- Basesong = Instance.new("Sound")
- hair = Instance.new("Part",game.Players.LocalPlayer.Character) hair.Size = Vector3.new(1,1,1) hair.CanCollide = false
- beforesong = Basesong:Clone()
- beforesong.Parent = game.Players.LocalPlayer.Character
- beforesong.Looped = true
- beforesong.Volume = 3
- beforesong.SoundId = "rbxassetid://1100971847"
- beforesong:Play()
- if game.Players.LocalPlayer.Character:FindFirstChild("Body Colors") then
- game.Players.LocalPlayer.Character["Body Colors"]:remove()
- end
- if game.Players.LocalPlayer.Character:FindFirstChild("Shirt Graphic") then
- game.Players.LocalPlayer.Character["Shirt Graphic"]:remove()
- end
- if game.Players.LocalPlayer.Character:FindFirstChild("Shirt") then
- game.Players.LocalPlayer.Character["Shirt"]:remove()
- end
- if game.Players.LocalPlayer.Character:FindFirstChild("Pants") then
- game.Players.LocalPlayer.Character["Pants"]:remove()
- end
- for i=1,5 do
- wait()
- for _,hat in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if hat.ClassName == "Accessory" then
- hat:remove()
- end
- if hat:IsA("BasePart") then
- hat.BrickColor = BrickColor.new("Pastel brown")
- end
- end
- end
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
- shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character)
- shirt.ShirtTemplate = "rbxassetid://804894303"
- pants = Instance.new("Pants",game.Players.LocalPlayer.Character)
- pants.PantsTemplate = "rbxassetid://189943600"
- game.Players.LocalPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=1142979747"
- wait(1)
- game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "This can go two ways punk", "Green")
- wait(3)
- game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "You walk away", "Green")
- wait(3)
- game:GetService("Chat"):Chat(game.Players.LocalPlayer.Character.Head, "Or I walk in your, face.", "Green")
- wait(3)
- local counter = 0
- local colorlist = {ColorSequenceKeypoint.new(0,Color3.fromRGB(0,255,255)),
- ColorSequenceKeypoint.new(0.148,Color3.fromRGB(0,255,255)),
- ColorSequenceKeypoint.new(0.193,Color3.fromRGB(72,0,255)),
- ColorSequenceKeypoint.new(0.366,Color3.fromRGB(72,0,255)),
- ColorSequenceKeypoint.new(0.4,Color3.fromRGB(0,255,255)),
- ColorSequenceKeypoint.new(0.63,Color3.fromRGB(0,255,255)),
- ColorSequenceKeypoint.new(0.8,Color3.fromRGB(72,0,255)),
- ColorSequenceKeypoint.new(1,Color3.fromRGB(0,0,255))
- }
- local uiParticle = Baseparticle:Clone()
- uiParticle.Color = ColorSequence.new(colorlist)
- uiParticle.LightEmission = 1
- uiParticle.Size = NumberSequence.new(0.8)
- uiParticle.LockedToPart = true
- uiParticle.Texture = "rbxassetid://1143059159"
- local transparencylist = { NumberSequenceKeypoint.new(0,1),
- NumberSequenceKeypoint.new(0.5,0.67),
- NumberSequenceKeypoint.new(1,1)
- }
- uiParticle.Transparency = NumberSequence.new(transparencylist)
- uiParticle.ZOffset = -1
- uiParticle.LockedToPart = true
- uiParticle.Lifetime = NumberRange.new(0.05,0.05)
- uiParticle.Speed = NumberRange.new(0,0)
- uiParticle.Rate = math.huge
- for _,hat in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if hat:IsA("BasePart") then
- if hat.Name ~= "Head" and hat.Name ~= "HumanoidRootPart" then
- uiParticle:Clone().Parent = hat
- end
- end
- end
- beforesong:Stop()
- mainsong = Basesong:Clone()
- mainsong.Parent = game.Players.LocalPlayer.Character
- mainsong.Looped = true
- mainsong.Volume = 3
- mainsong.SoundId = "rbxassetid://1106602456"
- mainsong:Play()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 80
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 150
- game.Players.LocalPlayer.Character.Humanoid.Name = "LolFakeHumanoid"
- afterimages = {}
- game.Players.LocalPlayer.Character.Head.face:Clone().Parent = headd
- game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
- end)
- amcounter = 0
- local PhysicsService = game:GetService("PhysicsService")
- for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if part:FindFirstChild("ParticleEmitter") then
- part.ParticleEmitter.Enabled = false
- end
- if part:IsA("BasePart") then
- part.Transparency = 1
- end
- end
- game.Players.LocalPlayer.Character.Head.face.Transparency = 1
- game:GetService("RunService").RenderStepped:connect(function()
- for _,image in pairs(afterimages) do
- for _,part in pairs(image:GetChildren()) do
- if part:IsA("BasePart") then
- part.Transparency = part.Transparency+0.1
- if part:FindFirstChild("face") then
- part.face.Transparency = part.face.Transparency+0.1
- end
- if part.Transparency > 0.9 then
- image:remove()
- end
- end
- end
- end
- local image = Instance.new("Model",game.Workspace)
- image.Name = "AfterImage"
- local head = headd:Clone()
- head.CFrame = game.Players.LocalPlayer.Character.Head.CFrame
- local hairc = hair:Clone()
- head.Anchored = true
- head.Transparency = 0
- head.face.Transparency = 0
- hairc.Transparency = 0
- hairc.Anchored = true
- hairc.Weld:remove()
- head.Parent = image
- hairc.Parent = image
- local torsoc = torso:Clone()
- torsoc.Parent = image
- torsoc.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame*CFrame.Angles(0,math.rad(-180),0)
- local armc = arm:Clone()
- armc.Parent = image
- armc.CFrame = game.Players.LocalPlayer.Character["Right Arm"].CFrame*CFrame.Angles(0,math.rad(180),0)
- local armc = arm:Clone()
- armc.Parent = image
- armc.CFrame = game.Players.LocalPlayer.Character["Left Arm"].CFrame*CFrame.Angles(0,math.rad(180),0)
- local legc = leg1:Clone()
- legc.Parent = image
- legc.CFrame = game.Players.LocalPlayer.Character["Left Leg"].CFrame*CFrame.Angles(0,math.rad(-180),0)
- local legc = leg2:Clone()
- legc.Parent = image
- legc.CFrame = game.Players.LocalPlayer.Character["Right Leg"].CFrame*CFrame.Angles(0,math.rad(-180),0)
- table.insert(afterimages,image)
- game.Players.LocalPlayer.Character.Parent = game.Workspace.CurrentCamera
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement