SaveText.Ru

Без имени
  1. function Script()
  2. while toggled == true do wait()
  3. if game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - Vector3.new(-7142.0078125, 274.75933837891, 2771.7163085938)).magnitude <= 500 then wait(0.4)
  4. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-7142.0078125, 274.75933837891, 2771.7163085938) wait(0.15)
  5. fireclickdetector(game:GetService("Workspace").NPCs.Ferryman.ClickDetector) wait()
  6. game:GetService("ReplicatedStorage").Requests:FindFirstChild("Sell"):FireServer({["choice"] = "New Character" .. "n" .. "(free)"}) wait(0.1)
  7. game:GetService("ReplicatedStorage").Requests:FindFirstChild("Sell"):FireServer({["choice"] = "My son."})
  8. wait(2)
  9. elseif game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and game.Players.LocalPlayer.Character.Humanoid.Health >= 8 and not game.Players.LocalPlayer.Character:FindFirstChild("BeingExecuted") and (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - Vector3.new(-7142.0078125, 274.75933837891, 2771.7163085938)).magnitude >= 500 then wait(0.2)
  10. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1693.4748535156, 236, 1353.9038085938) wait()
  11. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1693.4748535156, 376, 1353.9038085938)
  12. wait(0.4)
  13. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(1693.4748535156, 236, 1353.9038085938)
  14. wait(5.5)
  15. end
  16. end end
  17. local function CreateInstance(cls,props)
  18. local inst = Instance.new(cls)
  19. for i,v in pairs(props) do
  20.     inst[i] = v
  21. end
  22. return inst
  23. end
  24.    
  25. local Toggler = CreateInstance('ScreenGui',{DisplayOrder=0,Enabled=true,ResetOnSpawn=true,Name='Toggler', Parent=game.CoreGui})
  26. local ToggleFrame = CreateInstance('Frame',{Style=Enum.FrameStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(0, 0, 0),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.566065907, 0, 0.512962878, 0),Rotation=0,Selectable=false,Size=UDim2.new(0, 255, 0, 114),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name = 'ToggleFrame',Parent = Toggler, Active = true, Draggable = true})
  27. local Main = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='OFF',TextColor3=Color3.new(1, 0, 0),TextScaled=true,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=true,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(0.294118, 0.294118, 0.294118),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0, 0, 0.271659195, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 255, 0, 82),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='Main',Parent = ToggleFrame})
  28. local Exit = CreateInstance('TextButton',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='X',TextColor3=Color3.new(0, 0, 0),TextScaled=true,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=true,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 0, 0),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.90196079, 0, 0, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 25, 0, 30),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='Exit',Parent = ToggleFrame})
  29. local Text = CreateInstance('TextLabel',{Font=Enum.Font.SourceSans,FontSize=Enum.FontSize.Size14,Text='ToggleGui',TextColor3=Color3.new(0.807843, 0.807843, 0.807843),TextScaled=true,TextSize=14,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=true,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,Active=false,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(0, 0, 0),BackgroundTransparency=0,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0, 0, 0, 0),Rotation=0,Selectable=false,Size=UDim2.new(0, 230, 0, 30),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=1,Name='Text',Parent = ToggleFrame})
  30.  
  31. --script
  32. toggled = false
  33. Exit.MouseButton1Click:Connect(function()
  34. if toggled ~= true then
  35. Toggler:Destroy()
  36. end
  37. end)
  38. Main.MouseButton1Click:Connect(function()
  39. if Main.Text == "OFF" then
  40. toggled = true
  41.     Main.Text = "ON"
  42.     Main.TextColor3 = Color3.new(0, 255, 0)
  43. Doneonce = false
  44. Script()
  45. elseif Main.Text == "ON" then
  46.     toggled = false
  47.     Main.Text = "OFF"
  48.     Main.TextColor3 = Color3.new(255, 0, 0)
  49. end end)

Share with your friends:

Print