Professional Documents
Culture Documents
game.Workspace:WaitForChild("Live", 10)
game.Workspace.Live:WaitForChild(game.Players.LocalPlayer.Name)
players.PlayerRemoving:Connect(function(player)
if player == lplr and REJOIN == true then
teles:Teleport(game.PlaceId)
end
end)
local ms = game:GetService("ReplicatedStorage").Remotes.Mission
local ws = game:GetService("Workspace")
local board = ws.Corkboard.Board["Color this to paint the board"].ClickDetector
local ts = game:GetService("TweenService")
local plr = game:GetService("Players").LocalPlayer
local charr = plr.Character or ws.Live:WaitForChild(plr.Name)
local hrp = charr:WaitForChild("HumanoidRootPart")
local deliverytp = false
local dirt = ws:WaitForChild("Dirt")
local posters = ws:WaitForChild("Posters")
local Speed = 50
function GetTime(Distance, Speed)
-- Time = Distance / Speed
local Time = Distance / Speed
return Time
end
local part = dirt.Part
local Distance = (hrp.Position - part.Position).magnitude
local Time = GetTime(Distance, Speed)
local vu = game:GetService("VirtualUser")
game:GetService("Players").LocalPlayer.Idled:connect(function()
vu:Button2Down(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
wait(1)
vu:Button2Up(Vector2.new(0,0),workspace.CurrentCamera.CFrame)
end)
local vars = {}
vars.CFrame = CFrame.new(-1608.09998, 96.5562973, -154.587006, -0.993263364, -
7.50754658e-09, -0.115878858, 8.58404459e-09, 1, -1.38366602e-07, 0.115878858, -
1.38429186e-07, -0.993263364)
local vars2 = {}
vars2.CFrame = CFrame.new(-1921.56787, 94.5563507, 192.469452, 0.998828292, 0, -
0.0483949557, 0, 1, 0, 0.0483949557, 0, 0.998828292)
charr.Status.ChildAdded:Connect(function(sts)
if sts.Name == "KO" then
charr.Status:WaitForChild(sts, 0.1)
sts:Destroy()
end
end)
tpdelivery.Completed:Connect(function()
deliverytp = false
end)
tp.Completed:Connect(function()
if not plr:FindFirstChild("Mission") then
boardtp = false
end
end)
getboard()