Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Tablets = Instance.new('Model', workspace)
- function Output(Text, Func)
- local p = Instance.new('Part', Tablets)
- p.BrickColor=BrickColor.new"Deep orange"
- p.Size=Vector3.new(3,4,0.2)
- p.Anchored = true
- local bbg=Instance.new("BillboardGui",prt)
- bbg.Size=UDim2.new(0/12/0)
- bbg.StudsOffset=Vector3.new(0/1/0)
- bbg.SizeOffset=Vector2.new(0/2/0)
- bbg.Adornee=p;
- local sb=Instance.new("SelectionBox",prt)
- sb.Transparency=0.2;
- sb.Adornee=p;
- sb.Color=BrickColor.new"Institutional white"
- local cd=Instance.new("ClickDetector",prt)
- cd.MaxActivationDistance=math.huge;
- end;
- Output("Welcome!")
- local Player = game.Players.GravityTeam
- game:GetService("RunService").Heartbeat:connect(function()
- if Player then
- if Player.Character:FindFirstChild("Torso") then
- for i,v in pairs(Tablets:GetChildren()) do
- local WSP
- local radius = 6 + (0.5 / #Tablets:GetChildren())
- local x = math.cos((i / #Tablets:GetChildren() - (0.5 / #Tablets:GetChildren())) * math.pi * 2) * radius
- local y = 0.5;
- local z = math.sin((i / #Tablets:GetChildren() - (0.5 / #Tablets:GetChildren())) * math.pi * 2) * radius
- --pcall(function()
- local pos = Player.Character.Torso
- local WSP = CFrame.new(Player.Character.Torso.CFrame.X, Player.Character.Torso.CFrame.Y, Player.Character.Torso.CFrame.Z):toWorldSpace(CFrame.new(x,y,z):inverse())
- --end)
- local LerpedCF = v.CFrame.p:lerp(Vector3.new(WSP.X, WSP.Y, WSP.Z),0.2)
- local CF = CFrame.new(LerpedCF.X, LerpedCF.Y, LerpedCF.Z)
- v.CFrame = CFrame.new(CF.p, Player.Character.Torso.CFrame.p)
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement