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
- local char = game.Players.LocalPlayer.Character
- local player = game.Players.LocalPlayer
- repeat wait() until player.Character.Humanoid
- local humanoid = player.Character.Humanoid
- local mouse = player:GetMouse()
- local p = Instance.new("ForceField")
- p.Parent = game.Players.LocalPlayer.Character
- for i,v in pairs(char.Torso:GetChildren()) do
- if v.ClassName == 'Decal' then
- v:Destroy()
- end
- end
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == 'Hat' then
- v:Destroy()
- end
- end
- for i,v in pairs(char.Head:GetChildren()) do
- if v.ClassName == 'Decal' then
- v:Destroy()
- end
- end
- char.Humanoid.JumpPower = 200
- char.Humanoid.Jump = true
- local plane = Instance.new('SpecialMesh', char.Torso)
- plane.MeshType = 'FileMesh'
- plane.MeshId = 'http://www.roblox.com/asset/?id=441716520'
- plane.TextureId = 'http://www.roblox.com/asset/?id=441716524'
- plane.Scale = Vector3.new(2, 2, 2)
- local uzi = Instance.new('SpecialMesh', char.Head)
- uzi.MeshType = 'FileMesh'
- uzi.MeshId = 'http://www.roblox.com/asset/?id=72012794'
- uzi.TextureId = 'http://www.roblox.com/asset/?id=72012761'
- uzi.Scale = Vector3.new(4, 4, 4)
- planesound=Instance.new('Sound', char.Torso)
- planesound.SoundId = 'rbxassetid://439771510'
- planesound.Volume = 7
- planesound.Looped = true
- char['Left Arm'].Transparency = 1
- char['Right Arm'].Transparency = 1
- char['Left Leg'].Transparency = 1
- char['Right Leg'].Transparency = 1
- local player = game.Players.LocalPlayer
- local character = player.Character
- repeat wait() character = player.Character until character
- local mouse = player:GetMouse()
- local tool = Instance.new("Tool",player.Backpack)
- tool.Name = "UZI"
- tool.GripForward = Vector3.new(0, 0, 0)
- tool.GripPos = Vector3.new(0, -0.3, 0)
- tool.GripRight = Vector3.new(0, 0, 0)
- tool.GripUp = Vector3.new(0, 0, 1)
- local handle = Instance.new("Part",tool)
- handle.Name = "Handle"
- handle.Size = Vector3.new(0.2, 1.7, 1.4)
- local mesh = Instance.new("SpecialMesh",handle)
- mesh.MeshId = "http://www.roblox.com/asset/?id=72012794"
- mesh.Scale = Vector3.new(0.6, 0.6, 0.6)
- mesh.TextureId = "http://www.roblox.com/asset/?id=72012761"
- local sound = Instance.new("Sound",handle)
- sound.SoundId = "http://www.roblox.com/asset/?id=132373574"
- sound.Volume = 1
- local mouseDown = false
- local equipped = false
- function auto()
- while equipped and mouseDown and wait(0.1) do
- local current = sound:Clone()
- current.Parent = handle
- current:Play()
- game.Debris:AddItem(current,1)
- local ray = Ray.new(handle.CFrame.p,(mouse.Hit.p - handle.CFrame.p).unit*900)
- local hit,pos = workspace:FindPartOnRay(ray,character)
- local beam = Instance.new("Part", character)
- beam.BrickColor = BrickColor.new("Bright yellow")
- beam.FormFactor = "Custom"
- beam.Material = "Neon"
- beam.Transparency = 0.25
- beam.Anchored = true
- beam.Locked = true
- beam.CanCollide = false
- local distance = (tool.Handle.CFrame.p - pos).magnitude
- beam.Size = Vector3.new(0.1, 0.1, distance)
- beam.CFrame = CFrame.new(tool.Handle.CFrame.p, pos) * CFrame.new(0, 0, -distance / 2)
- game:GetService("Debris"):AddItem(beam, 0.1)
- if hit and hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent.Humanoid:TakeDamage(100)
- end
- end
- end
- mouse.Button1Down:connect(function()
- mouseDown = true
- auto()
- end)
- mouse.Button1Up:connect(function()
- mouseDown = false
- end)
- tool.Equipped:connect(function()
- equipped = true
- end)
- tool.Unequipped:connect(function()
- equipped = false
- end)
- function giant(p, size)
- local pchar = p.Character
- if pchar then
- local function scale(chr,scl)
- for _,v in pairs(pchar:GetChildren()) do
- if v:IsA("Hat") then
- v:Clone()
- v.Parent = game.Lighting
- end
- end
- local Head = chr['Head']
- local Torso = chr['Torso']
- local LA = chr['Left Arm']
- local RA = chr['Right Arm']
- local LL = chr['Left Leg']
- local RL = chr['Right Leg']
- local HRP = chr['HumanoidRootPart']
- wait(0.1)
- Head.formFactor = 3
- Torso.formFactor = 3
- LA.formFactor = 3
- RA.formFactor = 3
- LL.formFactor = 3
- RL.formFactor = 3
- HRP.formFactor = 3
- Head.Size = Vector3.new(scl * 2, scl, scl)
- Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
- LA.Size = Vector3.new(scl, scl * 2, scl)
- RA.Size = Vector3.new(scl, scl * 2, scl)
- LL.Size = Vector3.new(scl, scl * 2, scl)
- RL.Size = Vector3.new(scl, scl * 2, scl)
- HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
- local Motor1 = Instance.new('Motor6D', Torso)
- Motor1.Part0 = Torso
- Motor1.Part1 = Head
- Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
- Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
- Motor1.Name = "Neck"
- local Motor2 = Instance.new('Motor6D', Torso)
- Motor2.Part0 = Torso
- Motor2.Part1 = LA
- Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor2.Name = "Left Shoulder"
- local Motor3 = Instance.new('Motor6D', Torso)
- Motor3.Part0 = Torso
- Motor3.Part1 = RA
- Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor3.Name = "Right Shoulder"
- local Motor4 = Instance.new('Motor6D', Torso)
- Motor4.Part0 = Torso
- Motor4.Part1 = LL
- Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
- Motor4.Name = "Left Hip"
- local Motor5 = Instance.new('Motor6D', Torso)
- Motor5.Part0 = Torso
- Motor5.Part1 = RL
- Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
- Motor5.Name = "Right Hip"
- local Motor6 = Instance.new('Motor6D', HRP)
- Motor6.Part0 = HRP
- Motor6.Part1 = Torso
- Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
- Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
- end
- scale(pchar, size)
- pchar.Humanoid.WalkSpeed = 15 * size
- for _,v in pairs(game.Lighting:GetChildren()) do
- if v:IsA("Hat") then
- v.Parent = pchar
- end
- end
- end
- end
- local plr = game.Players.LocalPlayer
- giant(plr,1)
- local csize = 1
- local sgui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
- local base = Instance.new("Frame", sgui)
- base.BackgroundTransparency = 1
- base.Size = UDim2.new(0, 110, 0, 200)
- base.Position = UDim2.new(1, -120, 1, -180)
- local indicator = Instance.new("TextLabel", base)
- indicator.Size = UDim2.new(1, 0, 0, 25)
- indicator.TextColor3 = Color3.new(1, 1, 1)
- indicator.BackgroundTransparency = 0
- indicator.FontSize = Enum.FontSize.Size18
- indicator.Font = Enum.Font.SourceSans
- indicator.Text = "Current Size: 3"
- local PlusOne = Instance.new("TextButton", base)
- PlusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
- PlusOne.Position = UDim2.new(0, 0, 0, 40)
- PlusOne.Size = UDim2.new(1, 0, 0.5, -50)
- PlusOne.BorderSizePixel = 2
- PlusOne.Font = Enum.Font.SourceSansBold
- PlusOne.FontSize = Enum.FontSize.Size24
- PlusOne.Text = "+.1 Size"
- local MinusOne = Instance.new("TextButton", base)
- MinusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
- MinusOne.Position = UDim2.new(0, 0, 0.5, 10)
- MinusOne.Size = UDim2.new(1, 0, 0.5, -50)
- MinusOne.Text = "-.1 Size"
- MinusOne.BorderSizePixel = 2
- MinusOne.Font = Enum.Font.SourceSansBold
- MinusOne.FontSize = Enum.FontSize.Size24
- PlusOne.MouseButton1Down:connect(function()
- csize = csize + .1
- giant(plr, csize)
- indicator.Text = "Current Size: "..tostring(csize)
- end)
- MinusOne.MouseButton1Down:connect(function()
- csize = csize - .1
- giant(plr, csize)
- indicator.Text = "Current Size: "..tostring(csize)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement