Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3.2
- -- Instances:
- local ZayasPositionGui = Instance.new("ScreenGui")
- local TextBox = Instance.new("TextBox")
- local TextLabel = Instance.new("TextLabel")
- --Properties:
- if game.Players.LocalPlayer.PlayerGui:FindFirstChild("Zaya's Position Gui") then
- game.Players.LocalPlayer.PlayerGui["Zaya's Position Gui"]:Destroy()
- end
- ZayasPositionGui.Name = "Zaya's Position Gui"
- ZayasPositionGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- TextBox.Parent = ZayasPositionGui
- TextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.BackgroundTransparency = 1.000
- TextBox.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextBox.BorderSizePixel = 0
- TextBox.Position = UDim2.new(0, 0, 0.150000006, 0)
- TextBox.Size = UDim2.new(0.150000006, 0, 0, 50)
- TextBox.ClearTextOnFocus = false
- TextBox.Font = Enum.Font.GothamMedium
- TextBox.Text = "0,0,0"
- TextBox.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextBox.TextScaled = true
- TextBox.TextSize = 14.000
- TextBox.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- TextBox.TextStrokeTransparency = 0.000
- TextBox.TextWrapped = true
- TextLabel.Parent = ZayasPositionGui
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.BorderSizePixel = 0
- TextLabel.Position = UDim2.new(0.170000002, 0, 0.150000006, 0)
- TextLabel.Size = UDim2.new(0.150000006, 0, 0, 50)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "InfoGoesHere"
- TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.TextStrokeTransparency = 0.000
- TextLabel.TextWrapped = true
- -- Scripts:
- local function RDJKK_fake_script() -- ZayasPositionGui.Main
- local script = Instance.new('LocalScript', ZayasPositionGui)
- local uis = game:GetService("UserInputService")
- local tb = script.Parent:WaitForChild("TextBox")
- local plr = game.Players.LocalPlayer
- local char = plr.Character or plr.CharacterAdded:Wait()
- local ToggleGui = Enum.KeyCode.F2
- local DeleteGui = Enum.KeyCode.F1
- local function ShortenMath(Number)
- if Number == math.floor(Number) then
- return tostring(Number)
- else
- return string.format("%.2f", Number)
- end
- end
- uis.InputBegan:Connect(function(input,chat)
- if chat then return end
- if input.KeyCode == DeleteGui then
- script.Parent:Destroy()
- elseif input.KeyCode == ToggleGui then
- script.Parent.Enabled = not script.Parent.Enabled
- end
- end)
- while true do
- wait()
- script.Parent.TextLabel.Text = "Press "..ToggleGui.Name.." to toggle this GUI.\nPress "..DeleteGui.Name.." to delete this GUI."
- char = plr.Character or plr.CharacterAdded:Wait()
- local root = char.PrimaryPart or char:FindFirstChildWhichIsA("Humanoid").RootPart or char:FindFirstChild("Head")
- if root then
- local x, y, z = root.Position.X, root.Position.Y, root.Position.Z
- tb.Text = "Position (X,Y,Z):\n"..ShortenMath(x)..", "..ShortenMath(y)..", "..ShortenMath(z)
- end
- end
- end
- coroutine.wrap(RDJKK_fake_script)()
Add Comment
Please, Sign In to add comment