Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function notif(title,text)
- if text then
- game:GetService("StarterGui"):SetCore("SendNotification",{tostring(title),tostring(text)})
- else
- game:GetService("StarterGui"):SetCore("SendNotification",{tostring(title),tostring(title)})
- end
- end
- local notdestroyed = true
- local localplr = game.Players.LocalPlayer
- if getgenv().cframegui then
- getgenv().cframegui:Destroy()
- end
- getgenv().cframegui = Instance.new("ScreenGui")
- cframegui.Parent = game.CoreGui
- local mainframe = Instance.new("Frame")
- mainframe.Parent = cframegui
- mainframe.Size = UDim2.new(.2,0,.15,0)
- mainframe.Position = UDim2.new(.4,0,.435)
- mainframe.Active = true
- mainframe.Draggable = true
- mainframe.BackgroundColor3 = Color3.fromRGB(40,40,40)
- local credits = Instance.new("TextLabel")
- credits.Parent = mainframe
- credits.Size = UDim2.new(1,0,.3)
- credits.Text = "Original by Jmuse, Remake by 2AreYouMental110"
- credits.BackgroundColor3 = Color3.fromRGB(50,50,50)
- credits.TextColor3 = Color3.fromRGB(255,255,255)
- credits.TextScaled = true
- local copycframe = Instance.new("TextButton")
- copycframe.Parent = mainframe
- copycframe.Size = UDim2.new(1,0,.7)
- copycframe.Position = UDim2.new(0,0,0.3)
- copycframe.BackgroundColor3 = Color3.fromRGB(60,60,60)
- copycframe.TextColor3 = Color3.fromRGB(255,255,255)
- copycframe.TextScaled = true
- copycframe.Text = "Click To Copy"
- local a = copycframe.MouseButton1Click:Connect(function()
- if localplr.Character ~= nil and localplr.Character:FindFirstChild("HumanoidRootPart") then
- setclipboard("CFrame.new("..tostring(localplr.Character.HumanoidRootPart.CFrame)..")")
- copycframe.Text = "Copied!"
- notif("Copied!")
- else
- copycframe.Text = "Can't find character or humanoidrootpart!"
- end
- end)
- local b = cframegui.Destroying:Connect(function()
- notdestroyed = false
- end)
- wait(4)
- while notdestroyed do
- wait(1)
- if localplr.Character ~= nil and localplr.Character:FindFirstChild("HumanoidRootPart") then
- copycframe.Text = tostring(localplr.Character.HumanoidRootPart.CFrame)
- else
- copycframe.Text = "Can't find character or humanoidrootpart!"
- end
- end
- a:Disconnect()
- b:Disconnect()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement