Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
-- Objects local MoTG = Instance.new("ScreenGui") local Run = Instance.new("TextButton") local Page1 = Instance.new("Frame") local setamount = Instance.new("TextBox") local spawnitem = Instance.new("TextButton") local spawnanimal = Instance.new("TextButton") local setspeed = Instance.new("TextButton") local killanimals = Instance.new("TextButton") local destroyitem = Instance.new("TextButton") local printitems = Instance.new("TextButton") local printanimals = Instance.new("TextButton") local choptree = Instance.new("TextButton") local Pg2 = Instance.new("TextButton") local setitem = Instance.new("TextBox") local Page2 = Instance.new("Frame") local setplay = Instance.new("TextBox") local globval = Instance.new("TextBox") local Pg1 = Instance.new("TextButton") local tooltext = Instance.new("TextBox") local gamepas = Instance.new("TextButton") -- Properties MoTG.Name = "MoTG" MoTG.Parent = game.CoreGui Run.Name = "Run" Run.Parent = MoTG Run.BackgroundColor3 = Color3.new(0.290196, 0.741176, 0.67451) Run.BorderColor3 = Color3.new(0, 0, 0) Run.BorderSizePixel = 0 Run.Position = UDim2.new(0, 0, 0, 400) Run.Size = UDim2.new(0, 20, 0, 20) Run.ZIndex = 10 Run.Font = Enum.Font.SourceSansLight Run.FontSize = Enum.FontSize.Size18 Run.Text = ">" Run.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) Page1.Name = "Page1" Page1.Parent = MoTG Page1.Active = true Page1.BackgroundColor3 = Color3.new(0.290196, 0.741176, 0.67451) Page1.BorderSizePixel = 0 Page1.Draggable = true Page1.Position = UDim2.new(0, -200, 0, 100) Page1.Size = UDim2.new(0, 200, 0, 300) Page1.ZIndex = 7 setamount.Name = "setamount" setamount.Parent = Page1 setamount.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) setamount.BackgroundTransparency = 0.30000001192093 setamount.BorderColor3 = Color3.new(0.968628, 0.717647, 0.2) setamount.Position = UDim2.new(0, 15, 0, 45) setamount.Size = UDim2.new(0, 175, 0, 20) setamount.ZIndex = 10 setamount.Font = Enum.Font.SourceSansLight setamount.FontSize = Enum.FontSize.Size14 setamount.Text = "Amount" setamount.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) spawnitem.Name = "spawnitem" spawnitem.Parent = Page1 spawnitem.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) spawnitem.BackgroundTransparency = 0.30000001192093 spawnitem.BorderSizePixel = 0 spawnitem.Position = UDim2.new(0, 40, 0, 75) spawnitem.Size = UDim2.new(0, 125, 0, 20) spawnitem.ZIndex = 10 spawnitem.Font = Enum.Font.SourceSansLight spawnitem.FontSize = Enum.FontSize.Size14 spawnitem.Text = "Spawn Item" spawnitem.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) spawnanimal.Name = "spawnanimal" spawnanimal.Parent = Page1 spawnanimal.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) spawnanimal.BackgroundTransparency = 0.30000001192093 spawnanimal.BorderSizePixel = 0 spawnanimal.Position = UDim2.new(0, 40, 0, 100) spawnanimal.Size = UDim2.new(0, 125, 0, 20) spawnanimal.ZIndex = 10 spawnanimal.Font = Enum.Font.SourceSansLight spawnanimal.FontSize = Enum.FontSize.Size14 spawnanimal.Text = "Spawn Animal" spawnanimal.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) setspeed.Name = "setspeed" setspeed.Parent = Page1 setspeed.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) setspeed.BackgroundTransparency = 0.30000001192093 setspeed.BorderSizePixel = 0 setspeed.Position = UDim2.new(0, 40, 0, 125) setspeed.Size = UDim2.new(0, 125, 0, 20) setspeed.ZIndex = 10 setspeed.Font = Enum.Font.SourceSansLight setspeed.FontSize = Enum.FontSize.Size14 setspeed.Text = "Set Walkspeed" setspeed.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) killanimals.Name = "killanimals" killanimals.Parent = Page1 killanimals.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) killanimals.BackgroundTransparency = 0.30000001192093 killanimals.BorderSizePixel = 0 killanimals.Position = UDim2.new(0, 40, 0, 150) killanimals.Size = UDim2.new(0, 125, 0, 20) killanimals.ZIndex = 10 killanimals.Font = Enum.Font.SourceSansLight killanimals.FontSize = Enum.FontSize.Size14 killanimals.Text = "Kill All Named Animals" killanimals.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) destroyitem.Name = "destroyitem" destroyitem.Parent = Page1 destroyitem.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) destroyitem.BackgroundTransparency = 0.30000001192093 destroyitem.BorderSizePixel = 0 destroyitem.Position = UDim2.new(0, 40, 0, 175) destroyitem.Size = UDim2.new(0, 125, 0, 20) destroyitem.ZIndex = 10 destroyitem.Font = Enum.Font.SourceSansLight destroyitem.FontSize = Enum.FontSize.Size14 destroyitem.Text = "Destroy Named Items" destroyitem.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) printitems.Name = "printitems" printitems.Parent = Page1 printitems.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) printitems.BackgroundTransparency = 0.30000001192093 printitems.BorderSizePixel = 0 printitems.Position = UDim2.new(0, 40, 0, 200) printitems.Size = UDim2.new(0, 125, 0, 20) printitems.ZIndex = 10 printitems.Font = Enum.Font.SourceSansLight printitems.FontSize = Enum.FontSize.Size14 printitems.Text = "Print Item Names (F9)" printitems.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) printanimals.Name = "printanimals" printanimals.Parent = Page1 printanimals.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) printanimals.BackgroundTransparency = 0.30000001192093 printanimals.BorderSizePixel = 0 printanimals.Position = UDim2.new(0, 40, 0, 225) printanimals.Size = UDim2.new(0, 125, 0, 20) printanimals.ZIndex = 10 printanimals.Font = Enum.Font.SourceSansLight printanimals.FontSize = Enum.FontSize.Size14 printanimals.Text = "Print Animal Names (F9)" printanimals.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) choptree.Name = "choptree" choptree.Parent = Page1 choptree.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) choptree.BackgroundTransparency = 0.30000001192093 choptree.BorderSizePixel = 0 choptree.Position = UDim2.new(0, 40, 0, 250) choptree.Size = UDim2.new(0, 125, 0, 20) choptree.ZIndex = 10 choptree.Font = Enum.Font.SourceSansLight choptree.FontSize = Enum.FontSize.Size14 choptree.Text = "Chop Named Trees" choptree.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) Pg2.Name = "Pg2" Pg2.Parent = Page1 Pg2.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) Pg2.BackgroundTransparency = 0.30000001192093 Pg2.BorderColor3 = Color3.new(0, 0, 0) Pg2.BorderSizePixel = 0 Pg2.Position = UDim2.new(0, 175, 0, 275) Pg2.Size = UDim2.new(0, 20, 0, 20) Pg2.ZIndex = 10 Pg2.Font = Enum.Font.SourceSansLight Pg2.FontSize = Enum.FontSize.Size18 Pg2.Text = ">" Pg2.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) setitem.Name = "setitem" setitem.Parent = Page1 setitem.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) setitem.BackgroundTransparency = 0.30000001192093 setitem.BorderColor3 = Color3.new(0.968628, 0.717647, 0.2) setitem.Position = UDim2.new(0, 5, 0, 10) setitem.Size = UDim2.new(0, 190, 0, 30) setitem.ZIndex = 10 setitem.Font = Enum.Font.SourceSansLight setitem.FontSize = Enum.FontSize.Size18 setitem.Text = "Item" setitem.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) Page2.Name = "Page2" Page2.Parent = MoTG Page2.Active = true Page2.BackgroundColor3 = Color3.new(0.290196, 0.741176, 0.67451) Page2.BorderSizePixel = 0 Page2.Draggable = true Page2.Position = UDim2.new(0, -200, 0, 100) Page2.Size = UDim2.new(0, 200, 0, 300) Page2.ZIndex = 7 setplay.Name = "setplay" setplay.Parent = Page2 setplay.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) setplay.BackgroundTransparency = 0.30000001192093 setplay.BorderColor3 = Color3.new(0.968628, 0.717647, 0.2) setplay.Position = UDim2.new(0, 5, 0, 10) setplay.Size = UDim2.new(0, 190, 0, 30) setplay.ZIndex = 10 setplay.Font = Enum.Font.SourceSansLight setplay.FontSize = Enum.FontSize.Size18 setplay.Text = "Player" setplay.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) globval.Name = "globval" globval.Parent = Page2 globval.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) globval.BackgroundTransparency = 0.30000001192093 globval.BorderColor3 = Color3.new(0.968628, 0.717647, 0.2) globval.Position = UDim2.new(0, 15, 0, 45) globval.Size = UDim2.new(0, 175, 0, 20) globval.ZIndex = 10 globval.Font = Enum.Font.SourceSansLight globval.FontSize = Enum.FontSize.Size14 globval.Text = "Global Value" globval.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) Pg1.Name = "Pg1" Pg1.Parent = Page2 Pg1.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) Pg1.BackgroundTransparency = 0.30000001192093 Pg1.BorderColor3 = Color3.new(0, 0, 0) Pg1.BorderSizePixel = 0 Pg1.Position = UDim2.new(0, 5, 0, 275) Pg1.Size = UDim2.new(0, 20, 0, 20) Pg1.ZIndex = 10 Pg1.Font = Enum.Font.SourceSansLight Pg1.FontSize = Enum.FontSize.Size18 Pg1.Text = "<" Pg1.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) tooltext.Name = "tooltext" tooltext.Parent = Page2 tooltext.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) tooltext.BackgroundTransparency = 0.30000001192093 tooltext.BorderSizePixel = 0 tooltext.Position = UDim2.new(0, 40, 0, 75) tooltext.Size = UDim2.new(0, 125, 0, 20) tooltext.ZIndex = 10 tooltext.Font = Enum.Font.SourceSansLight tooltext.FontSize = Enum.FontSize.Size14 tooltext.Text = "Tool" tooltext.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) gamepas.Name = "gamepas" gamepas.Parent = Page2 gamepas.BackgroundColor3 = Color3.new(0.211765, 0.662745, 0.596078) gamepas.BackgroundTransparency = 0.30000001192093 gamepas.BorderSizePixel = 0 gamepas.Position = UDim2.new(0, 40, 0, 100) gamepas.Size = UDim2.new(0, 125, 0, 20) gamepas.ZIndex = 10 gamepas.Font = Enum.Font.SourceSansLight gamepas.FontSize = Enum.FontSize.Size14 gamepas.Text = "OP THE TOOL" gamepas.TextColor3 = Color3.new(0.87451, 0.862745, 0.890196) --[[END OF GUI CREATION]] local opened = false local disablebuttons = false local player33 = "" local gloval33 = 0 local page = 1 local rs = game:GetService("RunService").RenderStepped LerpProperty = function(obj,prop,start,finish,time) local t = tick() obj[prop] = start while true do rs:wait() -- using RenderStepped cuz smooth lookin' local p = (tick()-t)/time -- progressed time in % if p >= 1 then break end -- more than 'time' seconds passed -- can transform p to math.sin or some other lerp: p = p * p * (3 - 2*p) -- stole that formula from some site on google (link below code) obj[prop] = start:Lerp(finish,p) end obj[prop] = finish end spawntheitem = function() for i = 1, gloval do rs:wait() game.ReplicatedStorage.Resources.Remotes.MakeItem:FireServer(player33, game.Players.LocalPlayer.Character.UpperTorso.Position + Vector3.new(0, 3, 0)) end end spawncreature = function() for i = 1, gloval do rs:wait() game.ReplicatedStorage.Resources.Remotes.MakeAnimal:FireServer(player33, game.Players.LocalPlayer.Character.UpperTorso.Position + Vector3.new(0, 2, 0)) end end gofast = function() game.ReplicatedStorage.Resources.Remotes.SetWalkspeed:FireServer(tonumber(gloval)) end killanimal = function() for _, v in pairs (workspace.Animals:GetChildren()) do if player33 == "all" then game.ReplicatedStorage.Resources.Remotes.DamageAnimal:FireServer(v, 20000) elseif player33 ~= "all" and v.Name == player33 then game.ReplicatedStorage.Resources.Remotes.DamageAnimal:FireServer(v, 20000) end end end destroyit = function() for _, v in pairs (workspace.Items:GetChildren()) do if player33 == "all" then game.ReplicatedStorage.Resources.Remotes.DestroyItem:FireServer(v) elseif v.Name == player33 then game.ReplicatedStorage.Resources.Remotes.DestroyItem:FireServer(v) end end end printitem = function() for i, v in pairs (game.ReplicatedStorage.Resources.Items:GetChildren()) do print("["..i.."] ", v.Name) end end printanimal = function() for i, v in pairs (game.ReplicatedStorage.Resources.Animals:GetChildren()) do print("["..i.."] ", v.Name) end end choptrees = function() for _, v in pairs (workspace.Plants:GetChildren()) do if player33 == "all" then game.ReplicatedStorage.Resources.Remotes.ChopTree:FireServer(v) elseif v.Name == player33 then game.ReplicatedStorage.Resources.Remotes.ChopTree:FireServer(v) end end end openclose = function() if opened == false and disablebuttons == false then if page == 1 then disablebuttons = true LerpProperty(Page1, "Position", Page1.Position, UDim2.new(0, 500, 0, 100), 0.5) Run.Text = "<" opened = true disablebuttons = false elseif page == 2 then disablebuttons = true LerpProperty(Page2, "Position", Page2.Position, UDim2.new(0, 500, 0, 100), 0.5) Run.Text = "<" opened = true disablebuttons = false end elseif opened == true and disablebuttons == false then if page == 1 then disablebuttons = true LerpProperty(Page1, "Position", Page1.Position, UDim2.new(0, -200, 0, 100), 0.5) Run.Text = ">" opened = false disablebuttons = false elseif page == 2 then disablebuttons = true LerpProperty(Page2, "Position", Page2.Position, UDim2.new(0, -200, 0, 100), 0.5) Run.Text = ">" opened = false disablebuttons = false end end end switchpage = function() if page == 1 and disablebuttons == false then disablebuttons = true LerpProperty(Page1, "Position", Page1.Position, UDim2.new(0, -200, 0, 100), 0.25) wait(1/3) LerpProperty(Page2, "Position", Page2.Position, UDim2.new(0, 500, 0, 100), 0.25) page = 2 disablebuttons = false elseif page == 2 and disablebuttons == false then disablebuttons = true LerpProperty(Page2, "Position", Page2.Position, UDim2.new(0, -200, 0, 100), 0.25) wait(1/3) LerpProperty(Page1, "Position", Page1.Position, UDim2.new(0, 500, 0, 100), 0.25) page = 1 disablebuttons = false end end connected = function(location, functionz) location.MouseButton1Down:connect(functionz) end coroutine.resume(coroutine.create(function() while true do rs:wait() if page == 1 then player33 = setitem.Text gloval = setamount.Text elseif page == 2 then player33 = setitem.Text gloval = setamount.Text end end end)) connected(Pg1, switchpage) connected(Pg2, switchpage) connected(Run, openclose) connected(spawnitem, spawntheitem) connected(spawnanimal, spawncreature) connected(setspeed, gofast) connected(killanimals, killanimal) connected(destroyitem, destroyit) connected(printitems, printitem) connected(printanimals, printanimal) connected(choptree, choptrees)
Optional Paste Settings
Category:
None
Cryptocurrency
Cybersecurity
Fixit
Food
Gaming
Haiku
Help
History
Housing
Jokes
Legal
Money
Movies
Music
Pets
Photo
Science
Software
Source Code
Spirit
Sports
Travel
TV
Writing
Tags:
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
Untitled
15 hours ago | 2.28 KB
GSA NS
19 hours ago | 1.37 KB
WaterFul.m
MatLab | 21 hours ago | 0.42 KB
WaterEmpty.m
MatLab | 21 hours ago | 0.54 KB
Spinning.m
MatLab | 21 hours ago | 0.53 KB
Drying.m
MatLab | 21 hours ago | 0.48 KB
DoorCls.m
MatLab | 21 hours ago | 0.55 KB
Washing.m
MatLab | 21 hours ago | 0.45 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!