Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script has been converted to FE by iPxter
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- do
- print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
- script.Parent = Player.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,Connect=function(self,f)self.Function=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 and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- 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 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})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- 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)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- local Player = owner
- local Character = Player.Character
- local Torso = Character.Torso
- local Music = Instance.new("Sound")
- Music.Name = "Sound"
- Music.SoundId = "http://roblox.com/asset/?id=714974960"
- Music.Volume = 4
- Music.Looped = false
- Music.Parent = Character
- Music:play()
- GasMask = true
- if GasMask == true then
- o1 = Instance.new("Model")
- o2 = Instance.new("Part")
- o3 = Instance.new("SpecialMesh")
- o4 = Instance.new("Part")
- o5 = Instance.new("Part")
- o6 = Instance.new("Part")
- o7 = Instance.new("SpecialMesh")
- o8 = Instance.new("Part")
- o9 = Instance.new("Part")
- o10 = Instance.new("SpecialMesh")
- o11 = Instance.new("Part")
- o12 = Instance.new("Part")
- o13 = Instance.new("SpecialMesh")
- o14 = Instance.new("Part")
- o15 = Instance.new("Part")
- o16 = Instance.new("Part")
- o17 = Instance.new("Part")
- o1.Name = "MODEL"
- o2.Name = "Middle"
- o2.Parent = o1
- o2.BrickColor = BrickColor.new("Pastel brown")
- o2.Transparency = 1
- o2.Position = Vector3.new(-13.5356159, 3.71991396, 50.2649117)
- o2.Rotation = Vector3.new(-5.66336393, -89.7626114, -5.66246414)
- o2.Anchored = true
- o2.FormFactor = Enum.FormFactor.Custom
- o2.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- o2.CFrame = CFrame.new(-13.5356159, 3.71991396, 50.2649117, 1.75646369e-006, 1.74156298e-007, -0.999991417, -1.04150445e-007, 1, 1.60883403e-007, 0.999999762, 9.62157287e-008, 1.6223396e-006)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Color = Color3.new(1, 0.8, 0.6)
- o3.Parent = o2
- o3.Scale = Vector3.new(6.25, 6.25, 6.25)
- o3.MeshType = Enum.MeshType.FileMesh
- o4.Name = "Lense 1"
- o4.Parent = o1
- o4.Material = Enum.Material.Metal
- o4.Transparency = 0.050000011920929
- o4.Position = Vector3.new(-12.900528, 3.77991295, 50.5080605)
- o4.Rotation = Vector3.new(-180, 20.6807137, -179.999985)
- o4.Anchored = true
- o4.CanCollide = false
- o4.FormFactor = Enum.FormFactor.Custom
- o4.Shape = Enum.PartType.Cylinder
- o4.Size = Vector3.new(0.200000003, 0.320000023, 0.939999998)
- o4.CFrame = CFrame.new(-12.900528, 3.77991295, 50.5080605, -0.935553849, 3.06141374e-007, 0.353159934, 3.19927466e-007, 1, 2.01617603e-008, -0.353163034, 1.1997561e-007, -0.935561478)
- o4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.Name = "Lense2"
- o5.Parent = o1
- o5.Material = Enum.Material.Metal
- o5.Transparency = 0.050000011920929
- o5.Position = Vector3.new(-12.8961124, 3.77492094, 50.0302277)
- o5.Rotation = Vector3.new(-180, -23.8323021, -179.999985)
- o5.Anchored = true
- o5.CanCollide = false
- o5.FormFactor = Enum.FormFactor.Custom
- o5.Shape = Enum.PartType.Cylinder
- o5.Size = Vector3.new(0.200000003, 0.330000043, 0.99000001)
- o5.CFrame = CFrame.new(-12.8961124, 3.77492094, 50.0302277, -0.914722979, 2.85652249e-007, -0.404061079, 2.36339361e-007, 1, 1.37493373e-007, 0.404064298, 2.15865228e-008, -0.914730668)
- o5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o6.Name = "Handle"
- o6.Parent = o1
- o6.Material = Enum.Material.Metal
- o6.BrickColor = BrickColor.new("Really black")
- o6.Position = Vector3.new(-12.8799381, 3.69992495, 50.2599869)
- o6.Rotation = Vector3.new(-90, 9.97842108e-006, -89.9999008)
- o6.Anchored = true
- o6.CanCollide = false
- o6.FormFactor = Enum.FormFactor.Plate
- o6.Size = Vector3.new(1, 0.400000006, 1)
- o6.CFrame = CFrame.new(-12.8799381, 3.69992495, 50.2599869, 1.75646369e-006, 0.999991417, 1.74156298e-007, -1.04150445e-007, -1.60883403e-007, 1, 0.999999762, -1.6223396e-006, 9.62157287e-008)
- o6.BottomSurface = Enum.SurfaceType.Weld
- o6.TopSurface = Enum.SurfaceType.Smooth
- o6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o7.Parent = o6
- o7.MeshId = "http://www.roblox.com/asset/?id=5158270"
- o7.Scale = Vector3.new(0.140000001, 0.170000002, 0.100000001)
- o7.MeshType = Enum.MeshType.FileMesh
- o8.Name = "Straps"
- o8.Parent = o1
- o8.Material = Enum.Material.Fabric
- o8.BrickColor = BrickColor.new("Really black")
- o8.Position = Vector3.new(-13.5199518, 3.48991394, 50.2599869)
- o8.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, 89.9999924)
- o8.Anchored = true
- o8.CanCollide = false
- o8.FormFactor = Enum.FormFactor.Custom
- o8.Shape = Enum.PartType.Cylinder
- o8.Size = Vector3.new(0.200000003, 1.49000013, 1.25999999)
- o8.CFrame = CFrame.new(-13.5199518, 3.48991394, 50.2599869, 1.44325043e-007, -0.999991238, 1.75646369e-006, 0.999999881, 1.31081052e-007, -1.04150445e-007, 9.48765404e-008, 1.6242019e-006, 0.999999762)
- o8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o9.Name = "Ring2"
- o9.Parent = o1
- o9.BrickColor = BrickColor.new("Dark stone grey")
- o9.Position = Vector3.new(-12.8061161, 3.77991295, 49.9993477)
- o9.Rotation = Vector3.new(-1.48261315e-005, -66.1664276, -2.4695395e-005)
- o9.Anchored = true
- o9.CanCollide = false
- o9.FormFactor = Enum.FormFactor.Custom
- o9.Size = Vector3.new(0.600000024, 0.200000003, 1)
- o9.CFrame = CFrame.new(-12.8061161, 3.77991295, 49.9993477, 0.404059976, 1.74156298e-007, -0.914723039, -1.6136562e-007, 1, 1.0455733e-007, 0.914730787, 9.62157287e-008, 0.404063195)
- o9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o9.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o10.Parent = o9
- o10.MeshId = "http://www.roblox.com/asset/?id=3270017"
- o10.Scale = Vector3.new(0.340000004, 0.300000012, 0.300000012)
- o10.MeshType = Enum.MeshType.FileMesh
- o11.Name = "Straps"
- o11.Parent = o1
- o11.Material = Enum.Material.Fabric
- o11.BrickColor = BrickColor.new("Really black")
- o11.Position = Vector3.new(-13.5199518, 4.00991392, 50.2599869)
- o11.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, 89.9999924)
- o11.Anchored = true
- o11.CanCollide = false
- o11.FormFactor = Enum.FormFactor.Custom
- o11.Shape = Enum.PartType.Cylinder
- o11.Size = Vector3.new(0.200000003, 1.49000013, 1.25999999)
- o11.CFrame = CFrame.new(-13.5199518, 4.00991392, 50.2599869, 1.44325043e-007, -0.999991238, 1.75646369e-006, 0.999999881, 1.31081052e-007, -1.04150445e-007, 9.48765404e-008, 1.6242019e-006, 0.999999762)
- o11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o12.Name = "Ring1"
- o12.Parent = o1
- o12.BrickColor = BrickColor.new("Dark stone grey")
- o12.Position = Vector3.new(-12.7999144, 3.76992106, 50.5299988)
- o12.Rotation = Vector3.new(-179.999969, -69.3177338, -179.999985)
- o12.Anchored = true
- o12.CanCollide = false
- o12.FormFactor = Enum.FormFactor.Custom
- o12.Size = Vector3.new(0.600000024, 0.200000003, 1)
- o12.CFrame = CFrame.new(-12.7999144, 3.76992106, 50.5299988, -0.353160918, 1.74156298e-007, -0.935553372, -4.22077129e-008, 1, 1.87534141e-007, 0.935561061, 9.62157287e-008, -0.353164017)
- o12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o12.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o12.Color = Color3.new(0.388235, 0.372549, 0.384314)
- o13.Parent = o12
- o13.MeshId = "http://www.roblox.com/asset/?id=3270017"
- o13.Scale = Vector3.new(0.340000004, 0.300000012, 0.300000012)
- o13.MeshType = Enum.MeshType.FileMesh
- o14.Name = "Breather"
- o14.Parent = o1
- o14.Material = Enum.Material.Metal
- o14.BrickColor = BrickColor.new("Really black")
- o14.Position = Vector3.new(-12.7419596, 3.69627094, 50.2550011)
- o14.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, -39.5510521)
- o14.Anchored = true
- o14.CanCollide = false
- o14.FormFactor = Enum.FormFactor.Custom
- o14.Shape = Enum.PartType.Cylinder
- o14.Size = Vector3.new(0.600000024, 0.340000093, 0.25000003)
- o14.CFrame = CFrame.new(-12.7419596, 3.69627094, 50.2550011, 0.771050453, 0.636759639, 1.75646369e-006, -0.636765182, 0.771057129, -1.04150445e-007, -1.31184265e-006, -9.5997575e-007, 0.999999762)
- o14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o14.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o15.Name = "Breather"
- o15.Parent = o1
- o15.Material = Enum.Material.Metal
- o15.BrickColor = BrickColor.new("Really black")
- o15.Position = Vector3.new(-12.5337915, 3.51434994, 50.2550011)
- o15.Rotation = Vector3.new(5.96738209e-006, 0.000100637961, -39.5510521)
- o15.Anchored = true
- o15.CanCollide = false
- o15.FormFactor = Enum.FormFactor.Custom
- o15.Shape = Enum.PartType.Cylinder
- o15.Size = Vector3.new(0.200000003, 0.340000093, 0.350000024)
- o15.CFrame = CFrame.new(-12.5337915, 3.51434994, 50.2550011, 0.771050453, 0.636759639, 1.75646369e-006, -0.636765182, 0.771057129, -1.04150445e-007, -1.31184265e-006, -9.5997575e-007, 0.999999762)
- o15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o16.Name = "Breather"
- o16.Parent = o1
- o16.Material = Enum.Material.Metal
- o16.BrickColor = BrickColor.new("Really black")
- o16.Position = Vector3.new(-12.7920103, 3.39220095, 49.784256)
- o16.Rotation = Vector3.new(10.8745985, 48.2677155, -21.6106548)
- o16.Anchored = true
- o16.CanCollide = false
- o16.FormFactor = Enum.FormFactor.Custom
- o16.Shape = Enum.PartType.Cylinder
- o16.Size = Vector3.new(0.230000019, 0.540000081, 0.75)
- o16.CFrame = CFrame.new(-12.7920103, 3.39220095, 49.784256, 0.618847609, 0.24515225, 0.746263206, -0.230788618, 0.96486491, -0.125580132, -0.75083673, -0.0945150182, 0.653688967)
- o16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- o17.Name = "Breather"
- o17.Parent = o1
- o17.Material = Enum.Material.Metal
- o17.BrickColor = BrickColor.new("Really black")
- o17.Position = Vector3.new(-12.8723783, 3.42192006, 49.8816109)
- o17.Rotation = Vector3.new(10.8745985, 48.2677155, -21.6106548)
- o17.Anchored = true
- o17.CanCollide = false
- o17.FormFactor = Enum.FormFactor.Custom
- o17.Shape = Enum.PartType.Cylinder
- o17.Size = Vector3.new(0.370000005, 0.540000081, 0.310000002)
- o17.CFrame = CFrame.new(-12.8723783, 3.42192006, 49.8816109, 0.618847609, 0.24515225, 0.746263206, -0.230788618, 0.96486491, -0.125580132, -0.75083673, -0.0945150182, 0.653688967)
- o17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- o17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- o17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- o17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- o17.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- o17.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- o17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- function onTouched(hit)
- local d = hit.Parent:GetChildren()
- for i=1, #d do
- if (d[i].className == "Hat") then
- d[i]:remove()
- end
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Face") == nil then
- local g = o1:clone()
- g.Parent = hit.Parent
- local C = g:GetChildren()
- for i=1, #C do
- if C[i].className == "Part" then
- local W = Instance.new("Weld")
- W.Part0 = g.Middle
- W.Part1 = C[i]
- local CJ = CFrame.new(g.Middle.Position)
- local C0 = g.Middle.CFrame:inverse()*CJ
- local C1 = C[i].CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Parent = g.Middle
- g.Middle.Transparency = 1
- end
- local Y = Instance.new("Weld")
- Y.Part0 = hit.Parent.Head
- Y.Part1 = g.Middle
- Y.C0 = CFrame.new(0, 0, 0)
- Y.Parent = Y.Part0
- end
- local h = g:GetChildren()
- for i = 1, # h do
- h[i].Anchored = false
- h[i].CanCollide = false
- end
- end
- end
- onTouched(owner)
- end
- local Player = owner
- local chara = Player.Character
- shirt= Instance.new("Shirt", Character)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", Character)
- pants.Name = "Pants"
- chara.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=245656735"
- chara.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=245656766"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement