Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local b=Instance.new("ScreenGui")local c=Instance.new("Frame")local f=Instance.new("TextLabel")local g=Instance.new("Frame")local h=Instance.new("Frame")local i=Instance.new("TextButton")local j=Instance.new("TextBox")local k=Instance.new("TextLabel")local l=Instance.new("TextLabel")local m=Instance.new("TextButton")local n=Instance.new("TextButton")local o=Instance.new("TextLabel")local p=Instance.new("TextButton")local r=Instance.new("TextButton")local t=Instance.new("TextButton")local u=Instance.new("TextButton")local v=Instance.new("TextButton")local x=Instance.new("Frame")local y=Instance.new("TextLabel")local z=Instance.new("TextButton")local A=Instance.new("TextButton")b.Name="GhostMode"b.Parent=game.Players.LocalPlayer.PlayerGui;b.ZIndexBehavior=Enum.ZIndexBehavior.Sibling;b.ResetOnSpawn=false;c.Name="Normal"c.Parent=b;c.Active=true;c.BackgroundColor3=Color3.fromRGB(231,231,231)c.BackgroundTransparency=0.300;c.BorderColor3=Color3.fromRGB(197,197,197)c.BorderSizePixel=2;c.Draggable=true;c.Position=UDim2.new(0.509818196,-307,0.36855036,-147)c.Size=UDim2.new(0,530,0,40)f.Name="Title"f.Parent=c;f.BackgroundColor3=Color3.fromRGB(255,255,255)f.BackgroundTransparency=1.000;f.Size=UDim2.new(0,31,0,40)f.Font=Enum.Font.Gotham;f.Text="Ghost Mode"f.TextColor3=Color3.fromRGB(0,0,0)f.TextSize=14.000;f.TextXAlignment=Enum.TextXAlignment.Left;g.Name="Inside"g.Parent=c;g.BackgroundColor3=Color3.fromRGB(185,185,185)g.BackgroundTransparency=0.400;g.BorderColor3=Color3.fromRGB(197,197,197)g.BorderSizePixel=2;g.Position=UDim2.new(0,0,1,0)g.Size=UDim2.new(0,530,0,262)h.Name="Home"h.Parent=g;h.BackgroundColor3=Color3.fromRGB(255,255,255)h.BackgroundTransparency=1.000;h.Size=UDim2.new(0,630,0,262)i.Name="TP"i.Parent=h;i.BackgroundColor3=Color3.fromRGB(231,231,231)i.BorderColor3=Color3.fromRGB(197,197,197)i.BorderSizePixel=2;i.Position=UDim2.new(0.0142857134,0,0.472302914,0)i.Size=UDim2.new(0,121,0,51)i.Font=Enum.Font.Gotham;i.Text="Teleport to Player"i.TextColor3=Color3.fromRGB(0,0,0)i.TextSize=14.000;i.TextWrapped=true;j.Name="Player"j.Parent=i;j.BackgroundColor3=Color3.fromRGB(231,231,231)j.BorderColor3=Color3.fromRGB(197,197,197)j.BorderSizePixel=2;j.Position=UDim2.new(0,0,1,0)j.Size=UDim2.new(0,121,0,28)j.ClearTextOnFocus=false;j.Font=Enum.Font.Gotham;j.Text=""j.TextColor3=Color3.fromRGB(0,0,0)j.TextSize=14.000;j.TextWrapped=true;k.Name="Info"k.Parent=h;k.BackgroundColor3=Color3.fromRGB(255,255,255)k.BackgroundTransparency=1.000;k.Position=UDim2.new(0,0,0.0351786725,0)k.Size=UDim2.new(0,248,0,78)k.Font=Enum.Font.GothamBlack;k.Text="Ghost Mode Control Panel"k.TextColor3=Color3.fromRGB(129,129,129)k.TextScaled=true;k.TextSize=14.000;k.TextWrapped=true;l.Parent=k;l.BackgroundColor3=Color3.fromRGB(255,255,255)l.BackgroundTransparency=1.000;l.Position=UDim2.new(1.03187406,0,0,0)l.Size=UDim2.new(0,294,0,78)l.Font=Enum.Font.Gotham;l.Text="These buttons change the settings of Ghost Mode."l.TextColor3=Color3.fromRGB(129,129,129)l.TextScaled=true;l.TextSize=14.000;l.TextWrapped=true;m.Name="Activate"m.Parent=h;m.BackgroundColor3=Color3.fromRGB(231,231,231)m.BorderColor3=Color3.fromRGB(197,197,197)m.BorderSizePixel=2;m.Position=UDim2.new(0.236507952,0,0.472302914,0)m.Size=UDim2.new(0,121,0,79)m.Font=Enum.Font.Gotham;m.Text="Toggle (or press R)"m.TextColor3=Color3.fromRGB(0,0,0)m.TextSize=14.000;m.TextWrapped=true;n.Name="Speed"n.Parent=h;n.BackgroundColor3=Color3.fromRGB(231,231,231)n.BorderColor3=Color3.fromRGB(197,197,197)n.BorderSizePixel=2;n.Position=UDim2.new(0.45714286,0,0.456816196,0)n.Size=UDim2.new(0,80,0,30)n.Font=Enum.Font.Gotham;n.Text="Speed"n.TextColor3=Color3.fromRGB(0,0,0)n.TextSize=14.000;n.TextWrapped=true;o.Parent=n;o.BackgroundColor3=Color3.fromRGB(231,231,231)o.BorderColor3=Color3.fromRGB(197,197,197)o.BorderSizePixel=2;o.Position=UDim2.new(0.00826446246,0,1,0)o.Size=UDim2.new(0,80,0,56)o.Font=Enum.Font.Gotham;o.Text="--"o.TextColor3=Color3.fromRGB(0,0,0)o.TextScaled=true;o.TextSize=14.000;o.TextWrapped=true;p.Name="Faster"p.Parent=n;p.BackgroundColor3=Color3.fromRGB(231,231,231)p.BorderColor3=Color3.fromRGB(197,197,197)p.BorderSizePixel=2;p.Position=UDim2.new(0.99736321,0,0.962678313,0)p.Size=UDim2.new(0,40,0,28)p.Font=Enum.Font.Gotham;p.Text="Faster"p.TextColor3=Color3.fromRGB(0,0,0)p.TextSize=14.000;p.TextWrapped=true;r.Name="Slower"r.Parent=n;r.BackgroundColor3=Color3.fromRGB(231,231,231)r.BorderColor3=Color3.fromRGB(197,197,197)r.BorderSizePixel=2;r.Position=UDim2.new(0.99736321,0,1.9134028,0)r.Size=UDim2.new(0,40,0,28)r.Font=Enum.Font.Gotham;r.Text="Slower"r.TextColor3=Color3.fromRGB(0,0,0)r.TextScaled=true;r.TextSize=14.000;r.TextWrapped=true;t.Name="Reset"t.Parent=n;t.BackgroundColor3=Color3.fromRGB(231,231,231)t.BorderColor3=Color3.fromRGB(197,197,197)t.BorderSizePixel=2;t.Position=UDim2.new(0.99736321,0,-0.0213796645,0)t.Size=UDim2.new(0,40,0,28)t.Font=Enum.Font.Gotham;t.Text="Reset"t.TextColor3=Color3.fromRGB(0,0,0)t.TextSize=14.000;t.TextWrapped=true;u.Name="Close"u.Parent=c;u.BackgroundColor3=Color3.fromRGB(255,255,255)u.BackgroundTransparency=0.200;u.BorderColor3=Color3.fromRGB(0,209,108)u.BorderSizePixel=0;u.Position=UDim2.new(0.923300385,0,0,0)u.Size=UDim2.new(0,40,0,40)u.AutoButtonColor=false;u.Font=Enum.Font.Gotham;u.Text="X"u.TextColor3=Color3.fromRGB(0,0,0)u.TextSize=25.000;v.Name="Minimize"v.Parent=c;v.BackgroundColor3=Color3.fromRGB(255,255,255)v.BackgroundTransparency=0.200;v.BorderColor3=Color3.fromRGB(0,209,108)v.BorderSizePixel=0;v.Position=UDim2.new(0.846600771,0,0,0)v.Size=UDim2.new(0,40,0,40)v.AutoButtonColor=false;v.Font=Enum.Font.Gotham;v.Text="-"v.TextColor3=Color3.fromRGB(0,0,0)v.TextSize=25.000;x.Name="Minimized"x.Parent=b;x.Active=true;x.BackgroundColor3=Color3.fromRGB(231,231,231)x.BackgroundTransparency=0.500;x.BorderColor3=Color3.fromRGB(197,197,197)x.BorderSizePixel=2;x.Draggable=true;x.Position=UDim2.new(0.0778181851,-107,1.07125306,-98)x.Size=UDim2.new(0,214,0,40)x.Visible=false;y.Name="Title"y.Parent=x;y.BackgroundColor3=Color3.fromRGB(255,255,255)y.BackgroundTransparency=1.000;y.Size=UDim2.new(0,31,0,40)y.Font=Enum.Font.Gotham;y.Text="Ghost Mode"y.TextColor3=Color3.fromRGB(0,0,0)y.TextSize=14.000;y.TextXAlignment=Enum.TextXAlignment.Left;z.Name="Close"z.Parent=x;z.BackgroundColor3=Color3.fromRGB(255,255,255)z.BackgroundTransparency=0.400;z.BorderColor3=Color3.fromRGB(0,209,108)z.BorderSizePixel=0;z.Position=UDim2.new(0.810339689,0,0,0)z.Size=UDim2.new(0,40,0,40)z.AutoButtonColor=false;z.Font=Enum.Font.Gotham;z.Text="X"z.TextColor3=Color3.fromRGB(0,0,0)z.TextSize=25.000;A.Name="Maximize"A.Parent=x;A.BackgroundColor3=Color3.fromRGB(255,255,255)A.BackgroundTransparency=0.400;A.BorderColor3=Color3.fromRGB(0,209,108)A.BorderSizePixel=0;A.Position=UDim2.new(0.620679438,0,0,0)A.Size=UDim2.new(0,40,0,40)A.AutoButtonColor=false;A.Font=Enum.Font.Gotham;A.Text="+"A.TextColor3=Color3.fromRGB(0,0,0)A.TextSize=25.000;local function B()local C=Instance.new('LocalScript',j)C.Parent.Text=game.Players.LocalPlayer.Name;C.Parent.Parent.MouseButton1Click:Connect(function()workspace.CurrentCamera.CFrame=game.Players[C.Parent.Text].Character.Head.CFrame end)end;coroutine.wrap(B)()local function D()local C=Instance.new('LocalScript',h)wait(1)UserInputService=game:GetService("UserInputService")w=0;s=0;a=0;d=0;q=0;e=0;Active=false;IsEquipped=false;DefaultIcon=game.Players.LocalPlayer:GetMouse().Icon;local E=game.Workspace.CurrentCamera;WheelClicks=0;PitchRange=1.4;Sensitivity=0.01;_G.Speed=0.5;pitch=0;yaw=0;local function F()local G=game.Players:GetPlayerFromCharacter(C.Parent.Parent)E=game.Workspace.CurrentCamera;E.CameraType=Enum.CameraType.Scriptable;game.Players.LocalPlayer.Character.Head.Anchored=true;Active=true end;local function H()w=0;s=0;a=0;d=0;game.Players.LocalPlayer.Character.Head.Anchored=false;game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame=CFrame.new(E.CoordinateFrame.p+E.CoordinateFrame.lookVector*1)game.Workspace.CurrentCamera.CameraType="Custom"Active=false end;mousedown=false;UserInputService.InputChanged:connect(function(I)if not Active then return end;if I.UserInputType==Enum.UserInputType.MouseMovement then if not mousedown then return end;yaw=yaw+I.Delta.X*Sensitivity;pitch=math.max(-PitchRange,math.min(PitchRange,pitch-I.Delta.Y*Sensitivity))end;if I.UserInputType==Enum.UserInputType.MouseWheel then WheelClicks=WheelClicks+I.Position.Z end end)UserInputService.InputBegan:connect(function(I)if I.UserInputType==Enum.UserInputType.Keyboard then if I.KeyCode==Enum.KeyCode.W then w=1 elseif I.KeyCode==Enum.KeyCode.S then s=1 elseif I.KeyCode==Enum.KeyCode.A then a=1 elseif I.KeyCode==Enum.KeyCode.D then d=1 elseif I.KeyCode==Enum.KeyCode.Q then q=1 elseif I.KeyCode==Enum.KeyCode.E then e=1 end;if I.KeyCode==Enum.KeyCode.LeftShift then _G.Speed=_G.Speed/4 end;if I.KeyCode==Enum.KeyCode.R then IsEquipped=not IsEquipped;if IsEquipped==true then F()else H()end end;if I.KeyCode==Enum.KeyCode.Down then _G.Speed=_G.Speed-0.1 end;if I.KeyCode==Enum.KeyCode.Up then _G.Speed=_G.Speed+0.1 end end;if I.UserInputType==Enum.UserInputType.MouseButton2 then mousedown=true;UserInputService.MouseBehavior=Enum.MouseBehavior.LockCurrentPosition end end)UserInputService.InputEnded:connect(function(I)if I.UserInputType==Enum.UserInputType.Keyboard then if I.KeyCode==Enum.KeyCode.W then w=0 elseif I.KeyCode==Enum.KeyCode.S then s=0 elseif I.KeyCode==Enum.KeyCode.A then a=0 elseif I.KeyCode==Enum.KeyCode.D then d=0 elseif I.KeyCode==Enum.KeyCode.Q then q=0 elseif I.KeyCode==Enum.KeyCode.E then e=0 end;if I.KeyCode==Enum.KeyCode.LeftShift then _G.Speed=_G.Speed*4 end end;if I.UserInputType==Enum.UserInputType.MouseButton2 then mousedown=false;UserInputService.MouseBehavior=Enum.MouseBehavior.Default end end)local J=nil;C.Parent.Activate.MouseButton1Click:Connect(function()IsEquipped=not IsEquipped;if IsEquipped==true then F()else H()end end)RunService=game:GetService("RunService")RunService.RenderStepped:connect(function()if Active and E then local K=Vector3.new(d-a,e-q,s-w).unit*_G.Speed;E.CoordinateFrame=E.CoordinateFrame*CFrame.new(K)E.CoordinateFrame=CFrame.new(E.CoordinateFrame.p,E.CoordinateFrame.p+Vector3.new(math.cos(yaw),math.tan(pitch),math.sin(yaw)).unit)if WheelClicks~=0 then E.CoordinateFrame=E.CoordinateFrame*CFrame.new(0,0,-_G.Speed*WheelClicks*8)WheelClicks=0 end end end)end;coroutine.wrap(D)()local function L()local C=Instance.new('LocalScript',o)wait(1)while wait()do C.Parent.Text=tostring(_G.Speed)end end;coroutine.wrap(L)()local function M()local C=Instance.new('LocalScript',p)C.Parent.MouseButton1Click:Connect(function()_G.Speed=_G.Speed+0.1 end)end;coroutine.wrap(M)()local function N()local C=Instance.new('LocalScript',r)C.Parent.MouseButton1Click:Connect(function()_G.Speed=_G.Speed-0.1 end)end;coroutine.wrap(N)()local function O()local C=Instance.new('LocalScript',t)C.Parent.MouseButton1Click:Connect(function()_G.Speed=0.5 end)end;coroutine.wrap(O)()local function P()local C=Instance.new('LocalScript',u)C.Parent.MouseEnter:Connect(function()C.Parent.BackgroundColor3=Color3.fromRGB(255,0,0)end)C.Parent.MouseLeave:Connect(function()C.Parent.BackgroundColor3=Color3.fromRGB(255,255,255)end)C.Parent.MouseButton1Click:Connect(function()C.Parent.Parent.Parent:Destroy()end)end;coroutine.wrap(P)()local function Q()local C=Instance.new('LocalScript',v)C.Parent.MouseButton1Click:Connect(function()C.Parent.Parent.Parent.Minimized.Visible=true;C.Parent.Parent.Visible=false end)end;coroutine.wrap(Q)()local function R()local C=Instance.new('LocalScript',z)C.Parent.MouseEnter:Connect(function()C.Parent.BackgroundColor3=Color3.fromRGB(255,0,0)end)C.Parent.MouseLeave:Connect(function()C.Parent.BackgroundColor3=Color3.fromRGB(255,255,255)end)C.Parent.MouseButton1Click:Connect(function()C.Parent.Parent.Parent:Destroy()end)end;coroutine.wrap(R)()local function S()local C=Instance.new('LocalScript',A)C.Parent.MouseButton1Click:Connect(function()C.Parent.Parent.Parent.Normal.Visible=true;C.Parent.Parent.Visible=false end)end;coroutine.wrap(S)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement