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 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 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
- Basepart = Instance.new("Part")
- Baseparticle = Instance.new("ParticleEmitter")
- Basemesh = Instance.new("SpecialMesh")
- local mesh = Basemesh:Clone()
- mesh.Parent = hair
- mesh.MeshId = "rbxassetid://1143041061"
- Baseweld = Instance.new("Weld")
- local weld = Baseweld:Clone()
- weld.Part0 = hair
- weld.Part1 = game.Players.LocalPlayer.Character.Head
- hair.Color = Color3.fromRGB(153, 125, 61)
- weld.C0 = CFrame.new(0,-0.25,0)*CFrame.Angles(0,math.rad(180),0)
- weld.Parent = hair
- 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
- for i=1,200 do
- wait()
- counter = counter+1
- if counter > 2 then
- counter = 0
- local part = Basepart:Clone()
- part.Color = Color3.fromRGB(255,175,0)
- part.Shape = Enum.PartType.Cylinder
- part.Anchored = true
- part.CanCollide = false
- part.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- part.Parent = game.Workspace
- part.Material = Enum.Material.Neon
- part.Size = Vector3.new(1000000000,6,6)
- game:GetService("Debris"):AddItem(part,1)
- table.insert(degrowingList,part)
- local part = Basepart:Clone()
- part.Color = Color3.fromRGB(255,175,0)
- part.Shape = Enum.PartType.Ball
- part.Anchored = true
- part.CanCollide = false
- part.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- part.Parent = game.Workspace
- part.Material = Enum.Material.Neon
- part.Size = Vector3.new(1,1,1)
- game:GetService("Debris"):AddItem(part,3)
- table.insert(growingList,part)
- end
- for _,player in pairs(game.Workspace:GetChildren()) do
- if player:FindFirstChild("Humanoid") then
- player.Humanoid.CameraOffset = Vector3.new(math.random(-2,2),math.random(-2,2),0)
- end
- end
- end
- counter = counter+1
- for _,player in pairs(game.Workspace:GetChildren()) do
- if player:FindFirstChild("Humanoid") then
- player.Humanoid.CameraOffset = Vector3.new(0,0,0)
- end
- end
- 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