Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local remote = Instance.new("RemoteEvent")
- remote.Name = "cam"
- remote.Parent = owner.PlayerGui
- NLS([[
- local cam = workspace.CurrentCamera
- local remote = owner.PlayerGui:FindFirstChild("cam")
- game:GetService("RunService").PreRender:Connect(function()
- remote:FireServer(cam.CFrame)
- end)
- ]])
- local camCF = CFrame.new()
- remote.OnServerEvent:Connect(function(plr, cf)
- camCF = cf
- end)
- local part = Instance.new("Part")
- local decal = Instance.new("Decal", part)
- decal.Texture = "rbxassetid://11346388439"
- part.Anchored = true
- part.CanCollide = false
- part.Parent = script
- part.Size = Vector3.new(3, 3, 3)
- local Billboard = Instance.new("BillboardGui", part)
- local textLabel = Instance.new("TextLabel", Billboard)
- Billboard.StudsOffset = Vector3.new(0, 6, 0)
- Billboard.MaxDistance = math.huge
- Billboard.Size = UDim2.new(0, 200, 0, 50)
- textLabel.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- textLabel.TextStrokeTransparency = 0 textLabel.BackgroundTransparency = 1
- textLabel.TextScaled = true
- textLabel.Text = owner.DisplayName .. "'s (@".. owner.Name ..")".. " camera"
- textLabel.Size = UDim2.new(1, 0, 1, 0)
- Billboard.LightInfluence = 0
- local billboard = Instance.new("BillboardGui", part)
- local textLabel = Instance.new("TextBox", billboard)
- textLabel.Visible = false
- textLabel.Size = UDim2.new(5, 0, 1, 0)
- textLabel.BackgroundTransparency = 0
- textLabel.Font = Enum.Font.Arcade
- textLabel.TextScaled = true
- textLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- textLabel.BorderSizePixel = 5
- textLabel.BorderColor3 = Color3.new(1, 1, 1)
- textLabel.TextColor3 = Color3.new(0, 0, 0)
- billboard.Adornee = part
- billboard.Size = UDim2.new(2, 0, 2, 0)
- billboard.StudsOffset = Vector3.new(-4, 5, 0)
- billboard.ExtentsOffset = Vector3.new(0,3,0)
- billboard.LightInfluence = 0
- owner.Chatted:Connect(function(msg)
- textLabel.Visible = true
- for txt = 1, #msg do
- textLabel.Text = string.sub(msg, 1, txt)
- end
- wait(20)
- textLabel.Visible = false
- end)
- game:GetService("RunService").Heartbeat:Connect(function()
- part.CFrame = camCF
- if part then
- else
- local part = Instance.new("Part")
- local decal = Instance.new("Decal", part)
- decal.Texture = "rbxassetid://11346388439"
- part.Anchored = true
- part.CanCollide = false
- part.Parent = script
- part.Size = Vector3.new(3, 3, 3)
- local Billboard = Instance.new("BillboardGui", part)
- local textLabel = Instance.new("TextLabel", Billboard)
- Billboard.StudsOffset = Vector3.new(0, 6, 0)
- Billboard.MaxDistance = math.huge
- Billboard.Size = UDim2.new(0, 200, 0, 50)
- textLabel.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- textLabel.TextStrokeTransparency = 0 textLabel.BackgroundTransparency = 1
- textLabel.TextScaled = true
- textLabel.Text = owner.DisplayName .. "'s (@".. owner.Name ..")".. " camera"
- textLabel.Size = UDim2.new(1, 0, 1, 0)
- Billboard.LightInfluence = 0
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement