Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- 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;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
- mouse = game.Players.LocalPlayer:GetMouse()
- game.Players.LocalPlayer.Character.Torso.Neck.C1 = CFrame.new(0,-0.7,0)
- local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
- rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
- rhandweld.C1 = CFrame.new(0,1,0)
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Weld2 = Instance.new("Weld")
- Weld3 = Instance.new("Weld")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- ParticleEmitter6 = Instance.new("ParticleEmitter")
- Sound7 = Instance.new("Sound")
- Part8 = Instance.new("Part")
- Model0.Name = "faking huge can"
- Model0.Parent = mas
- Part1.Parent = Model0
- Part1.Rotation = Vector3.new(90, 0, -180)
- Part1.Shape = Enum.PartType.Cylinder
- Part1.Size = Vector3.new(1.63530481, 0.735886931, 0.695004463)
- Part1.CFrame = CFrame.new(-37.7083321, 1.37305737, 43.55299, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Position = Vector3.new(-37.7083321, 1.37305737, 43.55299)
- Part1.Orientation = Vector3.new(90, 180, 0)
- Weld2.Parent = Part1
- Weld2.C0 = CFrame.new(-1.12427211, 0.0102203041, -0.102206148, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld2.Part0 = Part1
- Weld2.Part1 = Part5
- Weld3.Parent = Part1
- Weld3.C0 = CFrame.new(-0.807440341, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Weld3.Part0 = Part1
- Weld3.Part1 = Part4
- Part4.Parent = Model0
- Part4.Rotation = Vector3.new(90, 0, -180)
- Part4.Shape = Enum.PartType.Ball
- Part4.Size = Vector3.new(0.674563348, 0.674563348, 0.674563348)
- Part4.CFrame = CFrame.new(-36.9008904, 1.37305737, 43.55299, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.Position = Vector3.new(-36.9008904, 1.37305737, 43.55299)
- Part4.Orientation = Vector3.new(90, 180, 0)
- Part5.Parent = Model0
- Part5.BrickColor = BrickColor.new("Really black")
- Part5.Rotation = Vector3.new(90, 0, -180)
- Part5.Shape = Enum.PartType.Cylinder
- Part5.Size = Vector3.new(0.490591407, 0.143089026, 0.0817651823)
- Part5.CFrame = CFrame.new(-36.5840607, 1.47526348, 43.5427704, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.Color = Color3.new(0, 0, 0)
- Part5.Position = Vector3.new(-36.5840607, 1.47526348, 43.5427704)
- Part5.Orientation = Vector3.new(90, 180, 0)
- Part5.Color = Color3.new(0, 0, 0)
- ParticleEmitter6.Parent = Part5
- ParticleEmitter6.Transparency = NumberSequence.new(0.8,1)
- ParticleEmitter6.Size = NumberSequence.new(8,18)
- ParticleEmitter6.Color = ColorSequence.new(Color3.new(1, 0.447059, 0.0784314),Color3.new(1, 0.447059, 0.0784314))
- ParticleEmitter6.Texture = "rbxassetid://31727915"
- ParticleEmitter6.Lifetime = NumberRange.new(10, 10)
- ParticleEmitter6.Rate = 0
- ParticleEmitter6.RotSpeed = NumberRange.new(10, 10)
- ParticleEmitter6.Speed = NumberRange.new(5, 12)
- ParticleEmitter6.VelocitySpread = 500
- ParticleEmitter6.Color = ColorSequence.new(Color3.new(1, 0.447059, 0.0784314),Color3.new(1, 0.447059, 0.0784314))
- Sound7.Name = "garlic bread"
- Sound7.Parent = Model0
- Sound7.SoundId = "rbxassetid://843338638"
- Sound7.Volume = 8
- Sound7.Looped = true
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Character
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- Part1.CanCollide = false
- Part5.CanCollide = false
- Part4.CanCollide = false
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Part00 = Instance.new("Part")
- SpecialMesh1 = Instance.new("SpecialMesh")
- Part00.Parent = mas
- Part00.Size = Vector3.new(2.5, 1.29999983, 1.05000019)
- Part00.CFrame = CFrame.new(-1.3499999, 1.40000379, -8.82500172, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part00.BottomSurface = Enum.SurfaceType.Smooth
- Part00.TopSurface = Enum.SurfaceType.Smooth
- Part00.Position = Vector3.new(-1.3499999, 1.40000379, -8.82500172)
- SpecialMesh1.Parent = Part00
- SpecialMesh1.MeshId = "rbxassetid://497613846"
- SpecialMesh1.Scale = Vector3.new(0.349999994, 0.349999994, 0.349999994)
- SpecialMesh1.TextureId = "rbxassetid://497613952"
- SpecialMesh1.MeshType = Enum.MeshType.FileMesh
- SpecialMesh1.Scale = Vector3.new(0.349999994, 0.349999994, 0.349999994)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Character
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
- weldbottle = Instance.new("Weld", Part1)
- weldbottle.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
- weldbottle.Part1 = Part1
- weldbottle.C0 = CFrame.new(0.0999984741, -1.72502387, -0.375068665, -4.49431016e-21, -1, -4.72251821e-22, 6.79972604e-22, 4.72250306e-22, -0.999996424, 1, -4.49431016e-21, 6.79974927e-22) * CFrame.new(0,0,-0.5)
- weldhat = Instance.new("Weld", game.Players.LocalPlayer.Character.Head)
- weldhat.Part0 = game.Players.LocalPlayer.Character.Head
- weldhat.Part1 = Part00
- weldhat.C0 = CFrame.new(0,0,-0.3)
- Part00.CanCollide = false
- gassing = false
- cangas = false
- function keydown()
- cangas = true
- Part8 = Instance.new("Part", workspace)
- Part8.Transparency = 1
- Part8.Rotation = Vector3.new(0, 0, -90)
- Part8.CanCollide = false
- Part8.Size = Vector3.new(25, 25, 25)
- Part8.CFrame = CFrame.new(-37.3749924, 0.0750039667, 44.1749916, 0, 1, -0, -1, 0, 0, 0, 0, 1)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.Position = Vector3.new(-37.3749924, 0.0750039667, 44.1749916)
- Part8.Orientation = Vector3.new(0, 0, -90)
- ParticleEmitter6.Rate = 100
- Part8.CanCollide = false
- Part8.Name = "Gas"
- local function gasppl(part)
- local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
- if cangas then
- if humanoid then
- if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
- else
- if humanoid.Health <= 2 then
- humanoid.JumpPower = 0
- local humpart = humanoid.Parent:findFirstChild("HumanoidRootPart")
- if humpart then
- humpart:destroy()
- end
- for i,v in pairs(humanoid.Parent:GetChildren()) do
- if v.ClassName == "Script" or v.ClassName == "LocalScript" then
- v:Remove()
- end
- end
- humanoid.PlatformStand = true
- humanoid.WalkSpeed = 0
- humanoid.Name = "getgassedboi"
- local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
- if findlefthip then
- findlefthip:Remove()
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Left Leg"]
- glue.Name = "Left leg"
- local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Left Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- end
- --
- local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
- if findrighthip then
- findrighthip:Remove()
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Right Leg"]
- glue.Name = "Right leg"
- local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Right Leg"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- collider.Transparency = 1
- end
- --
- local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
- if findrightshoulder then
- findrightshoulder:Remove()
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Right Arm"]
- glue.Name = "Right arm"
- local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Right Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- collider.Transparency = 1
- end
- --
- local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
- if findleftshoulder then
- findleftshoulder:Remove()
- local glue = Instance.new("Glue", humanoid.Parent.Torso)
- glue.Part0 = humanoid.Parent.Torso
- glue.Part1 = humanoid.Parent["Left Arm"]
- glue.Name = "Left arm"
- local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
- collider.Position = Vector3.new(0,999,0)
- collider.Size = Vector3.new(1.5, 1, 1)
- collider.Shape = "Cylinder"
- local weld = Instance.new("Weld", collider)
- weld.Part0 = humanoid.Parent["Left Arm"]
- weld.Part1 = collider
- weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
- collider.TopSurface = "Smooth"
- collider.BottomSurface = "Smooth"
- collider.formFactor = "Symmetric"
- glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- collider.Transparency = 1
- end
- local findhead = humanoid.Parent:findFirstChild("Head")
- if findhead then
- local attachment = Instance.new("Attachment", humanoid.Parent.Head)
- attachment.Position = Vector3.new(0, -0.5, 0)
- attachment.Name = "lol"
- attachment.Visible = false
- humanoid.Parent.Torso.NeckAttachment.Visible = false
- humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
- local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
- ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
- ball.Attachment1 = attachment
- ball.LimitsEnabled = true
- ball.TwistLimitsEnabled = true
- ball.UpperAngle = 90
- ball.Restitution = 0.5
- ball.TwistUpperAngle = 90
- ball.TwistLowerAngle = -90
- local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
- collidepartofleftleg.Name = "Bone"
- collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
- collidepartofleftleg.Transparency = 1
- collidepartofleftleg:BreakJoints()
- local weeld = Instance.new("Weld", collidepartofleftleg)
- weeld.Part0 = collidepartofleftleg
- weeld.Part1 = humanoid.Parent["Head"]
- if humanoid.Parent.Torso:findFirstChild("Neck") then
- humanoid.Parent.Torso.Neck:destroy()
- end
- end
- wait(10)
- humanoid.Parent.Anchivable = true
- humanoid.Parent:Clone()
- humanoid.Parent:destroy()
- else
- humanoid.Health = humanoid.Health - 5
- humanoid.WalkSpeed = humanoid.WalkSpeed - 0.002
- end
- end
- end
- end
- end
- Part8.Touched:connect(gasppl)
- Sound7:Play()
- end
- function keyup()
- cangas = false
- Part8:destroy()
- ParticleEmitter6.Rate = 0
- Sound7:Stop()
- end
- mouse.Button1Down:connect(keydown)
- mouse.Button1Up:connect(keyup)
- while true do
- game:GetService("RunService").RenderStepped:wait()
- if Sound7.Parent == nil then
- Sound7.Parent = workspace
- end
- Part8.CFrame = Part1.CFrame
- game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position,Vector3.new(mouse.Hit.p.x,game.Players.LocalPlayer.Character.Torso.Position.y,mouse.Hit.p.z))
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = CFrame.new(0,0.8,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0)
- rhandweld.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0) * CFrame.Angles(1.5,0,0)
- end
Advertisement
Add Comment
Please, Sign In to add comment