Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
- print("FE Compatibility: by WaverlyCole & Mokiros")
- InternalData = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput"
- local function NewFakeEvent()
- local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
- return Fake
- end
- local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
- local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- local function TriggerEvent(self,Event,...)
- local Trigger = Mouse[Event]
- if Trigger and Trigger.fakeEvent and Trigger.Function then
- Trigger.Function(...)
- end
- end
- Mouse.TrigEvent = TriggerEvent
- UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then end
- if Input.MouseEvent then
- Mouse.Target = Input.Target
- Mouse.Hit = Input.Hit
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then
- return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
- end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do
- if Key==Input.KeyCode then
- Action.Function(Action.Name,Input.UserInputState,Input)
- end
- end
- end
- Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
- UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse
- InternalData["ContextActionService"] = ContextActionService
- InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner
- local Event = script:WaitForChild("UserInput")
- local UserInputService = game:GetService("UserInputService")
- local Mouse = Player:GetMouse()
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- UserInputService.InputBegan:Connect(Input)
- UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit,Target = Mouse.Hit,Mouse.Target
- Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],owner.Character)
- end
- RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- local Sandbox = function (Thing)
- if Thing:IsA("Player") then
- local RealPlayer = Thing
- return setmetatable({},{
- __index = function (self,Index)
- local Type = type(RealPlayer[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)
- return InternalData["Mouse"]
- end
- end
- return function (self,...)
- return RealPlayer[Index](RealPlayer,...)
- end
- else
- return RealPlayer[Index]
- end
- end;
- __tostring = function(self)
- return RealPlayer.Name
- end
- })
- end
- end
- if RealGame[Index] then
- local Type = type(RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- if Service:lower() == "players" then
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...)
- return RealService[Index2](RealService,...)
- end
- else
- if Index2:lower() == "localplayer" then
- return Sandbox(owner)
- end
- return RealService[Index2]
- end
- end;
- __tostring = function(self)
- return RealGame:GetService(Service).Name
- end
- })
- elseif Service:lower() == "contextactionservice" then
- return InternalData["ContextActionService"]
- elseif Service:lower() == "contextactionservice" then
- return InternalData["UserInputService"]
- elseif Service:lower() == "runservice" then
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...)
- return RealService[Index2](RealService,...)
- end
- else
- if Index2:lower() == "bindtorenderstep" then
- return function (self,Name,Priority,Function)
- return RealGame:GetService("RunService").Stepped:Connect(Function)
- end
- end
- if Index2:lower() == "renderstepped" then
- return RealService["Stepped"]
- end
- return RealService[Index2]
- end
- end
- })
- else
- return RealGame:GetService(Service)
- end
- end
- end
- return function (self,...)
- return RealGame[Index](RealGame,...)
- end
- else
- if game:GetService(Index) then
- return game:GetService(Index)
- end
- return RealGame[Index]
- end
- else
- return nil
- end
- end
- });Game = game;owner = game:GetService("Players").LocalPlayer
- print("Complete! Running...")
- warn("original by snyfort remade by retrojooooono")
- warn("edited by zach_rookie_editor3 ")
- lp = owner
- char = lp.Character
- hum = char:FindFirstChildOfClass("Humanoid")
- bp = lp.Backpack
- head = char.Head
- tool = Instance.new("Tool",bp)
- tool.Name = "Sny-Soda"
- tool.CanBeDropped = false
- handle = Instance.new("Part",tool)
- handle.Name = "Handle"
- handle.Size = Vector3.new(1,1,1)
- mesh = Instance.new("SpecialMesh",handle)
- mesh.MeshType = Enum.MeshType.FileMesh
- mesh.MeshId = "http://www.roblox.com/asset/?id=10470609"
- mesh.Scale = Vector3.new(1.2,1.2,1.2)
- decal = Instance.new("Decal",handle)
- decal.Face = Enum.NormalId.Right
- decal.Texture = "http://www.roblox.com/asset/?id=278162610"
- explosion = Instance.new("Sound",head)
- explosion.SoundId = "http://www.roblox.com/asset/?id=165969964"
- explosion.Volume = 5
- music = Instance.new("Sound",head)
- music.Volume = 5
- music.SoundId = "http://www.roblox.com/asset/?id=800064337"
- slurp = Instance.new("Sound",head)
- slurp.Volume = 5
- slurp.SoundId = "http://www.roblox.com/asset/?id=10722059"
- th = Instance.new("Sound",head)
- th.SoundId = "http://www.roblox.com/asset/?id=2167611163"
- th.Volume = 5
- hit = Instance.new("Sound",handle)
- hit.SoundId = "http://www.roblox.com/asset/?id=250697400"
- hit.Volume = 5
- debounce = false
- tool.Activated:connect(function()
- if debounce == false then
- debounce = true
- hum.WalkSpeed = 20
- slurp:Play()
- tool.GripForward = Vector3.new(0,-.759,-.651)
- tool.GripPos = Vector3.new(1.5,-.5,.3)
- tool.GripRight = Vector3.new(1,0,0)
- tool.GripUp = Vector3.new(0,.651,-.759)
- wait(slurp.TimeLength)
- wait(1)
- handle.Parent = workspace
- handle.CanCollide = false
- hit:Play()
- wait(1)
- gm = head:FindFirstChildOfClass("SpecialMesh")
- th:Play()
- for i=1, 10 do
- wait(0.05)
- gm.Scale = gm.Scale + Vector3.new(0,0,0)
- end
- wait(2)
- hum.WalkSpeed = 50
- music:Play()
- pr = Instance.new("ParticleEmitter",head)
- pr.Lifetime = NumberRange.new(5)
- pr.Speed = NumberRange.new(10)
- pr.Texture = "http://www.roblox.com/asset/?id=118129065"
- pr.Color = ColorSequence.new(Color3.new(1,0,0))
- pr.Acceleration = Vector3.new(0,-5,0)
- pr.Rate = 20
- pr.SpreadAngle = Vector2.new(10,10)
- pg = Instance.new("ParticleEmitter",head)
- pg.Lifetime = NumberRange.new(5)
- pg.Speed = NumberRange.new(10)
- pg.Texture = "http://www.roblox.com/asset/?id=118129065"
- pg.Color = ColorSequence.new(Color3.new(0,1,0))
- pg.Acceleration = Vector3.new(0,-5,0)
- pg.Rate = 20
- pg.SpreadAngle = Vector2.new(10,10)
- pb = Instance.new("ParticleEmitter",head)
- pb.Lifetime = NumberRange.new(5)
- pb.Speed = NumberRange.new(10)
- pb.Texture = "http://www.roblox.com/asset/?id=118129065"
- pb.Color = ColorSequence.new(Color3.new(0,0,1))
- pb.Acceleration = Vector3.new(0,-5,0)
- pb.Rate = 20
- pb.SpreadAngle = Vector2.new(10,10)
- wait(music.TimeLength)
- music:Stop()
- owner.Character:FindFirstChildOfClass("Humanoid").Health = owner.Character:FindFirstChildOfClass("Humanoid").Health + 999
- wait(0.1)
- hum.WalkSpeed = 20
- pr.Rate = 0
- wait(0.1)
- pg.Rate = 0
- wait(0.1)
- pb.Rate = 0
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement