Advertisement
Axprotss

fixed Size script

Jan 17th, 2023
1,277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 10.98 KB | Gaming | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
  2. do
  3.     script.Parent = owner.Character
  4.     local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
  5.     local function NewFakeEvent()
  6.         local Bind = Instance.new("BindableEvent")
  7.         local Fake;Fake = {Connections = {},
  8.         fakeEvent=true;
  9.         Connect=function(self,Func)
  10.             Bind.Event:connect(Func)
  11.             self.Connections[Bind] = true
  12.             return setmetatable({Connected = true},{
  13.             __index = function (self,Index)
  14.                 if Index:lower() == "disconnect" then
  15.                     return function() Fake.Connections[Bind] = false;self.Connected = false end
  16.                 end
  17.                 return Fake[Index]
  18.             end;
  19.             __tostring = function() return "Connection" end;
  20.         })
  21.         end}
  22.         Fake.connect = Fake.Connect;return Fake;
  23.     end
  24.     local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
  25.     local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
  26.     local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
  27.         self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
  28.     end};ContextActionService.UnBindAction = ContextActionService.BindAction
  29.     local function TriggerEvent(self,Event,...)
  30.         local Trigger = Mouse[Event]
  31.         if Trigger and Trigger.fakeEvent and Trigger.Connections then
  32.             for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
  33.         end
  34.     end
  35.     Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
  36.     Event.OnServerEvent:Connect(function(FiredBy,Input)
  37.         if FiredBy.Name ~= owner.Name then return end
  38.         if Input.MouseEvent then
  39.             Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
  40.         else
  41.             local Begin = Input.UserInputState == Enum.UserInputState.Begin
  42.             if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
  43.             for _,Action in pairs(ContextActionService.Actions) do
  44.                 for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
  45.             end
  46.             Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
  47.             UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
  48.         end
  49.     end)
  50.     InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
  51.     Event.Parent = NLS([[
  52.         local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
  53.         local Input = function(Input,gameProcessedEvent)
  54.             if gameProcessedEvent then return end
  55.             Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
  56.         end
  57.         UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
  58.         local Hit,Target
  59.         while wait(1/30) do
  60.             if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
  61.                 Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
  62.             end
  63.         end
  64.     ]],owner.Character)
  65. end
  66. RealGame = game;game = setmetatable({},{
  67.     __index = function (self,Index)
  68.         local Sandbox = function (Thing)
  69.             if Thing:IsA("Player") then
  70.                 local RealPlayer = Thing
  71.                 return setmetatable({},{
  72.                     __index = function (self,Index)
  73.                         local Type = type(RealPlayer[Index])
  74.                         if Type == "function" then
  75.                             if Index:lower() == "getmouse" or Index:lower() == "mouse" then
  76.                                 return function (self)return InternalData["Mouse"] end
  77.                             end
  78.                             return function (self,...)return RealPlayer[Index](RealPlayer,...) end
  79.                         end
  80.                         return RealPlayer[Index]
  81.                     end;
  82.                     __tostring = function(self) return RealPlayer.Name end
  83.                 })
  84.             end
  85.         end
  86.         if RealGame[Index] then
  87.             local Type = type(RealGame[Index])
  88.             if Type == "function" then
  89.                 if Index:lower() == "getservice" or Index:lower() == "service" then
  90.                     return function (self,Service)
  91.                         local FakeServices = {
  92.                             ["players"] = function()
  93.                                 return setmetatable({},{
  94.                                     __index = function (self2,Index2)
  95.                                         local RealService = RealGame:GetService(Service)
  96.                                         local Type2 = type(Index2)
  97.                                         if Type2 == "function" then
  98.                                             return function (self,...) return RealService[Index2](RealService,...)end
  99.                                         else
  100.                                             if Index2:lower() == "localplayer" then return Sandbox(owner) end
  101.                                             return RealService[Index2]
  102.                                         end
  103.                                     end;
  104.                                     __tostring = function(self) return RealGame:GetService(Service).Name end
  105.                                 })
  106.                             end;
  107.                             ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
  108.                             ["userinputservice"] = function() return InternalData["UserInputService"] end;
  109.                             ["runservice"] = function()
  110.                                 return setmetatable({},{
  111.                                     __index = function(self2,Index2)
  112.                                         local RealService = RealGame:GetService(Service)
  113.                                         local Type2 = type(Index2)
  114.                                         if Type2 == "function" then
  115.                                             return function (self,...) return RealService[Index2](RealService,...) end
  116.                                         else
  117.                                             local RunServices = {
  118.                                                 ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
  119.                                                 ["renderstepped"] = function() return RealService["Stepped"] end
  120.                                             }
  121.                                             if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
  122.                                             return RealService[Index2]
  123.                                         end
  124.                                     end
  125.                                 })
  126.                             end
  127.                         }
  128.                         if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
  129.                         return RealGame:GetService(Service)
  130.                     end
  131.                 end
  132.                 return function (self,...) return RealGame[Index](RealGame,...) end
  133.             else
  134.                 if game:GetService(Index) then return game:GetService(Index) end
  135.                 return RealGame[Index]
  136.             end
  137.         end
  138.         return nil
  139.     end
  140. });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
  141.  
  142. function giant(p, size)
  143.     local pchar = p.Character
  144.     if pchar then
  145.         local function scale(chr,scl)
  146.        
  147.             for _,v in pairs(pchar:GetChildren()) do
  148.                 if v:IsA("Hat") then
  149.                     v:Clone()
  150.                     v.Parent = game.Lighting
  151.                 end
  152.             end
  153.                
  154.             local Head = chr['Head']
  155.             local Torso = chr['Torso']
  156.             local LA = chr['Left Arm']
  157.             local RA = chr['Right Arm']
  158.             local LL = chr['Left Leg']
  159.             local RL = chr['Right Leg']
  160.             local HRP = chr['HumanoidRootPart']
  161.        
  162.             wait(0.1)
  163.            
  164.             Head.formFactor = 3
  165.             Torso.formFactor = 3
  166.             LA.formFactor = 3
  167.             RA.formFactor = 3
  168.             LL.formFactor = 3
  169.             RL.formFactor = 3
  170.             HRP.formFactor = 3
  171.            
  172.             Head.Size = Vector3.new(scl * 2, scl, scl)
  173.             Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
  174.             LA.Size = Vector3.new(scl, scl * 2, scl)
  175.             RA.Size = Vector3.new(scl, scl * 2, scl)
  176.             LL.Size = Vector3.new(scl, scl * 2, scl)
  177.             RL.Size = Vector3.new(scl, scl * 2, scl)
  178.             HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
  179.            
  180.             local Motor1 = Instance.new('Motor6D', Torso)
  181.             Motor1.Part0 = Torso
  182.             Motor1.Part1 = Head
  183.             Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  184.             Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  185.             Motor1.Name = "Neck"
  186.                    
  187.             local Motor2 = Instance.new('Motor6D', Torso)
  188.             Motor2.Part0 = Torso
  189.             Motor2.Part1 = LA
  190.             Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  191.             Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  192.             Motor2.Name = "Left Shoulder"
  193.            
  194.             local Motor3 = Instance.new('Motor6D', Torso)
  195.             Motor3.Part0 = Torso
  196.             Motor3.Part1 = RA
  197.             Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  198.             Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  199.             Motor3.Name = "Right Shoulder"
  200.            
  201.             local Motor4 = Instance.new('Motor6D', Torso)
  202.             Motor4.Part0 = Torso
  203.             Motor4.Part1 = LL
  204.             Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  205.             Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  206.             Motor4.Name = "Left Hip"
  207.            
  208.             local Motor5 = Instance.new('Motor6D', Torso)
  209.             Motor5.Part0 = Torso
  210.             Motor5.Part1 = RL
  211.             Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  212.             Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  213.             Motor5.Name = "Right Hip"
  214.            
  215.             local Motor6 = Instance.new('Motor6D', HRP)
  216.             Motor6.Part0 = HRP
  217.             Motor6.Part1 = Torso
  218.             Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  219.             Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  220.                
  221.         end
  222.        
  223.         scale(pchar, size)
  224.         pchar.Humanoid.WalkSpeed = 15 * size
  225.    
  226.         for _,v in pairs(game.Lighting:GetChildren()) do
  227.             if v:IsA("Hat") then
  228.                 v.Parent = pchar
  229.             end
  230.         end
  231.     end
  232. end
  233.  
  234. local plr = game.Players.LocalPlayer
  235. giant(plr,1)
  236.  
  237. --[[--                                                    !NO!!!!!!!!!!NO!!!!!!!!!!NO!
  238. plr.Character.Torso.Touched:Connect(function(part)
  239.     part.Anchored = false
  240. part:BreakJoints() 
  241. end)
  242. ]]
  243.  
  244. local csize = 1
  245.  
  246. local sgui = Instance.new("ScreenGui", game.Players.LocalPlayer.PlayerGui)
  247. local base = Instance.new("Frame", sgui)
  248. base.BackgroundTransparency = 1
  249. base.Size = UDim2.new(0, 110, 0, 200)
  250. base.Position = UDim2.new(1, -120, 1, -180)
  251. local indicator = Instance.new("TextLabel", base)
  252. indicator.Size = UDim2.new(1, 0, 0, 25)
  253. indicator.TextColor3 = Color3.new(1, 1, 1)
  254. indicator.BackgroundTransparency = 0
  255. indicator.FontSize = Enum.FontSize.Size18
  256. indicator.Font = Enum.Font.SourceSans
  257. indicator.Text = "Current Size: 3"
  258. local PlusOne = Instance.new("TextButton", base)
  259. PlusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
  260. PlusOne.Position = UDim2.new(0, 0, 0, 40)
  261. PlusOne.Size = UDim2.new(1, 0, 0.5, -50)
  262. PlusOne.BorderSizePixel = 2
  263. PlusOne.Font = Enum.Font.SourceSansBold
  264. PlusOne.FontSize = Enum.FontSize.Size24
  265. PlusOne.Text = "+.1 Size"
  266. local MinusOne = Instance.new("TextButton", base)
  267. MinusOne.BackgroundColor3 = Color3.new(214/255, 214/255, 214/255)
  268. MinusOne.Position = UDim2.new(0, 0, 0.5, 10)
  269. MinusOne.Size = UDim2.new(1, 0, 0.5, -50)
  270. MinusOne.Text = "-.1 Size"
  271. MinusOne.BorderSizePixel = 2
  272. MinusOne.Font = Enum.Font.SourceSansBold
  273. MinusOne.FontSize = Enum.FontSize.Size24
  274.  
  275. PlusOne.MouseButton1Down:connect(function()
  276.     csize = csize + .1
  277.     giant(plr, csize)
  278.     indicator.Text = "Current Size: "..tostring(csize)
  279. end)
  280.  
  281. MinusOne.MouseButton1Down:connect(function()
  282.     csize = csize - .1
  283.     giant(plr, csize)
  284.     indicator.Text = "Current Size: "..tostring(csize)
  285. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement