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,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
- function()
- local plr = game:GetService("Players").LocalPlayer
- local deb = false
- while not plr.Character do wait() end
- wait(0.1)
- warn("Timestop loaded. R to toggle time.")
- local tstab = {}
- local tsstab = {}
- local ignlist = {}
- local stab = {}
- function plrIgnore(char)
- for i,v in pairs(char:GetChildren()) do
- if #v:GetChildren() >= 1 then
- plrIgnore(v)
- end
- table.insert(ignlist,v)
- end
- end
- function timeStop(target)
- for i,v in pairs(target:GetChildren()) do
- if #v:GetChildren() >= 1 then
- timeStop(v)
- end
- local isinign = false
- for i,b in pairs(ignlist) do
- if b == v then
- isinign = true
- end
- end
- if isinign == false then
- if v:IsA("Part") or v:IsA("WedgePart") or v:IsA("UnionOperation") then
- if v.Anchored == false then
- table.insert(tstab,v)
- v.Anchored = true
- end
- end
- if v:IsA("Sound") then
- local isintab = false
- for i,b in pairs(stab) do
- if v == b[1] then
- isintab = true
- end
- end
- if isintab == false then
- table.insert(stab,{v,v.Pitch})
- end
- end
- --[[if v:IsA("Script") or v:IsA("LocalScript") then
- if v.Disabled == false then
- table.insert(tsstab,v)
- v.Disabled = true
- end
- end]]
- end
- end
- local isinign = false
- for i,b in pairs(ignlist) do
- if b == target then
- isinign = true
- end
- end
- if isinign == false then
- if target:IsA("Part") or target:IsA("WedgePart") or target:IsA("UnionOperation") then
- if target.Anchored == false then
- table.insert(tstab,target)
- target.Anchored = true
- end
- end
- if target:IsA("Sound") then
- table.insert(stab,{target,target.Pitch})
- end
- end
- end
- plr:GetMouse().KeyDown:connect(function(key)
- if key == "r" then
- if deb == true then
- deb = false
- else
- deb = true
- local cc = Instance.new("ColorCorrectionEffect",game:GetService("Lighting"))
- spawn(function()
- plr.Character.Humanoid.WalkSpeed = 0
- plr.Character.Humanoid.JumpPower = 0
- local p = Instance.new("Part",plr.Character)
- p.Transparency = 0.5
- p.BrickColor = BrickColor.new("Institutional white")
- p.Size = Vector3.new(0.2,0.2,0.2)
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = plr.Character.Torso.CFrame
- local m = Instance.new("SpecialMesh",p)
- m.MeshType = Enum.MeshType.Sphere
- local r = 255
- local g = 255
- local b = 255
- local contrast = 0
- for i=1,50 do
- m.Scale = m.Scale + Vector3.new(50,50,50)
- p.Transparency = p.Transparency + 0.5/50
- r = r - ((255-42)/50)
- g = g - ((255-0)/50)
- b = b - ((255-255)/50)
- contrast = contrast - 2/50
- --cc.TintColor = Color3.fromRGB(r,g,b)
- cc.Contrast = contrast
- for i,v in pairs(stab) do
- v[1].Pitch = v[1].Pitch - (v[2]/50)
- end
- wait()
- end
- p:Destroy()
- plr.Character.Humanoid.WalkSpeed = 16
- plr.Character.Humanoid.JumpPower = 50
- end)
- local aNew = game:GetService("Workspace").ChildAdded:connect(function(c)
- timeStop(c)
- end)
- for i,v in pairs(ignlist) do
- table.remove(ignlist,1)
- end
- plrIgnore(plr.Character)
- timeStop(game:GetService("Workspace"))
- while deb ~= false do wait() end
- --spawn(function()
- local r = 42
- local g = 0
- local b = 255
- local contrast = -2
- for i=1,50 do
- r = r + ((255-42)/50)
- g = g + ((255-0)/50)
- b = b + ((255-255)/50)
- contrast = contrast + 2/50
- --cc.TintColor = Color3.fromRGB(r,g,b)
- cc.Contrast = contrast
- for i,v in pairs(stab) do
- v[1].Pitch = v[1].Pitch + (v[2]/50)
- end
- wait()
- end
- cc:Destroy()
- --end)
- for i,v in pairs(tstab) do
- v.Anchored = false
- end
- for i,v in pairs(tstab) do
- table.remove(tstab,1)
- end
- --table.foreach(stab,print)
- for i,v in pairs(stab) do
- table.remove(stab,1)
- end
- --print("---------")
- --table.foreach(stab,print)
- --[[for i,v in pairs(tsstab) do
- v.Disabled = false
- end
- for i,v in pairs(tsstab) do
- table.remove(tsstab,1)
- end]]
- aNew:disconnect()
- deb = false
- end
- end
- end)
- end
- },
- {
- "Egg",
- function()
- wait(3)
- local plr = game:GetService("Players").LocalPlayer
- while not plr.Character do wait() end
- local char,jtab,ceqpt,bsy,isaim,cd,drawf,state = plr.Character,{},false,false,false,false,false,"loading"
- local hdp = Instance.new("Part",script.Parent)
- hdp.Name = "HandlePart"
- hdp.Size = Vector3.new(0.2,0.2,0.2)
- local meshTab = {
- {"rbxassetid://705224299","rbxassetid://705224727",Vector3.new(0.4,0.4,0.4)},
- {"rbxassetid://705216303","rbxassetid://705216927",Vector3.new(1.8,1.8,1.8)},
- {"rbxassetid://705209239","rbxassetid://705209459",Vector3.new(0.8,0.8,0.8)},
- {"rbxassetid://705247407","rbxassetid://705246950",Vector3.new(1,1,1)},
- {"rbxassetid://705242967","rbxassetid://705243300",Vector3.new(0.44,0.44,0.44)},
- {"rbxassetid://705197095","rbxassetid://705197292",Vector3.new(1.25,1.25,1.25)},
- {"rbxassetid://676836968","rbxassetid://676837441",Vector3.new(0.5,0.5,0.5)},
- {"rbxassetid://698838167","rbxassetid://698838688",Vector3.new(1.6,1.6,1.6)},
- {"rbxassetid://698827858","rbxassetid://698828143",Vector3.new(1.4,1.4,1.5)},
- {"rbxassetid://705202806","rbxassetid://705207716",Vector3.new(1,1,1)},
- {"rbxassetid://676840078","rbxassetid://676839351",Vector3.new(1.2,1.2,1.2)},
- {"rbxassetid://717179708","rbxassetid://705199414",Vector3.new(1,0.95,1.05)},
- {"rbxassetid://724420662","rbxassetid://705195915",Vector3.new(0.8,0.8,0.8)},
- {"rbxassetid://676841945","rbxassetid://676842522",Vector3.new(1.7,1.7,1.8)},
- {"rbxassetid://705315624","rbxassetid://705315897",Vector3.new(0.4,0.4,0.4)},
- {"rbxassetid://698835993","rbxassetid://698836260",Vector3.new(1,1,1)},
- {"rbxassetid://698813624","rbxassetid://698813905",Vector3.new(1.6,1.6,1.6)},
- {"rbxassetid://706712283","rbxassetid://705202233",Vector3.new(2.1,2.1,2.1)},
- {"rbxassetid://705208513","rbxassetid://705208760",Vector3.new(1.05,1.05,1.05)},
- {"rbxassetid://676843975","rbxassetid://676844191",Vector3.new(1.6,1.6,1.6)},
- {"rbxassetid://676846031","rbxassetid://676846800",Vector3.new(0.6,0.6,0.6)},
- {"rbxassetid://676848204","rbxassetid://676848680",Vector3.new(0.5,0.5,0.5)},
- {"rbxassetid://705217565","rbxassetid://705218075",Vector3.new(1,1,1)},
- {"rbxassetid://698829950","rbxassetid://698830608",Vector3.new(0.5,0.5,0.5)},
- {"rbxassetid://705200619","rbxassetid://705200948",Vector3.new(2,2,2)},
- {"rbxassetid://698816291","rbxassetid://698816601",Vector3.new(0.45,0.45,0.45)},
- {"rbxassetid://705245424","rbxassetid://705245604",Vector3.new(1,1,1)},
- {"rbxassetid://698839252","rbxassetid://698839539",Vector3.new(1.5,1.55,1.55)},
- {"rbxassetid://676850168","rbxassetid://676850427",Vector3.new(1,1,1)},
- {"rbxassetid://698836963","rbxassetid://698837211",Vector3.new(2.3,2,2)},
- {"rbxassetid://705219281","rbxassetid://705219747",Vector3.new(1.7,1.7,1.7)},
- {"rbxassetid://698822829","rbxassetid://698823375",Vector3.new(1.5,1.5,1.5)},
- {"rbxassetid://698824115","rbxassetid://698824851",Vector3.new(2.4,2.4,2.4)},
- {"rbxassetid://698825712","rbxassetid://698825959",Vector3.new(1.5,1.5,1.5)},
- {"rbxassetid://676851481","rbxassetid://676851716",Vector3.new(1,1,1)},
- {"rbxassetid://676854360","rbxassetid://676854795",Vector3.new(0.55,0.55,0.55)},
- {"rbxassetid://676856626","rbxassetid://676856930",Vector3.new(0.6,0.6,0.6)},
- {"rbxassetid://676858618","rbxassetid://676858897",Vector3.new(1.4,1.4,1.4)},
- {"rbxassetid://698835348","rbxassetid://698831630",Vector3.new(1.8,1.8,1.8)},
- {"rbxassetid://676859903","rbxassetid://676860203",Vector3.new(1.2,1.2,1.2)},
- {"rbxassetid://698829304","rbxassetid://698828946",Vector3.new(1.3,1.3,1.3)},
- {"rbxassetid://698811815","rbxassetid://698812183",Vector3.new(1,1,1)},
- {"rbxassetid://705225654","rbxassetid://705228740",Vector3.new(1,1,1)}
- }
- local mlgTab = {
- "rbxassetid://566672836",
- "rbxassetid://306356119",
- "rbxassetid://10524802",
- "rbxassetid://166285971",
- "rbxassetid://217185480",
- "rbxassetid://198329363",
- "rbxassetid://286279066",
- "rbxassetid://175843771",
- "rbxassetid://165053954",
- "rbxassetid://603718340",
- "rbxassetid://133727996"
- }
- local msh = Instance.new("SpecialMesh",script.Parent.HandlePart)
- msh.MeshType = Enum.MeshType.FileMesh
- local rnd = math.random(1,#meshTab)
- msh.MeshId = meshTab[rnd][1]
- msh.TextureId = meshTab[rnd][2]
- msh.Scale = meshTab[rnd][3]/2
- local gyro = Instance.new("BodyGyro",char:WaitForChild("HumanoidRootPart"))
- gyro.MaxTorque = Vector3.new(0,0,0)
- gyro.D = 0
- gyro.P = 100000000
- print(script.Parent.Name.." Loaded.")
- plr:GetMouse().KeyDown:connect(function(key)
- if key == "f" then
- if ceqpt == false then
- ceqpt = true
- bsy = false
- spawn(function()
- for i=1,10 do
- script.Parent.HandlePart.Transparency = script.Parent.HandlePart.Transparency - 0.1
- wait()
- end
- end)
- local rnd = math.random(1,#meshTab)
- msh.MeshId = meshTab[rnd][1]
- msh.TextureId = meshTab[rnd][2]
- msh.Scale = meshTab[rnd][3]/2
- print("Saving old joints")
- for i,v in pairs(char.Torso:GetChildren()) do
- if v:IsA("Motor6D") and v.Name ~= "Neck" then
- print(v.Name.." saved!")
- table.insert(jtab,v)
- end
- end
- local aWeld = Instance.new("Weld",char["Right Arm"])
- aWeld.Name = "aWeld"
- aWeld.Part0 = script.Parent.HandlePart
- aWeld.Part1 = char["Right Arm"]
- aWeld.C0 = CFrame.new(0,0,1)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0))
- local bWeld = Instance.new("Weld",char["Torso"])
- bWeld.Name = "bWeld"
- bWeld.Part0 = char["Torso"]
- bWeld.Part1 = char["Right Arm"]
- bWeld.C0 = CFrame.new(1.5,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- local cWeld = Instance.new("Weld",char["Torso"])
- cWeld.Name = "cWeld"
- cWeld.Part0 = char["Torso"]
- cWeld.Part1 = char["Left Arm"]
- cWeld.C0 = CFrame.new(-1.5,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
- else
- ceqpt = false
- spawn(function()
- for i=1,10 do
- script.Parent.HandlePart.Transparency = script.Parent.HandlePart.Transparency + 0.1
- wait()
- end
- end)
- for i,v in pairs(char.Torso:GetChildren()) do
- if v:IsA("Weld") or v:IsA("Motor6D") then
- if v.Name ~= "Neck" then
- v:Destroy()
- end
- end
- end
- for i,v in pairs(jtab) do
- v:Clone().Parent = char.Torso
- end
- for i,v in pairs(jtab) do
- table.remove(jtab,1)
- end
- char.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180))
- gyro.MaxTorque = Vector3.new(0,0,0)
- char.Torso.Neck.C0 = CFrame.new(0,1,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(180))
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement