Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

CFraming Tablets?

Asked by 9 years ago

I have a error on [Player] (Line 5) How would I correct it? All I can think to do is (Player)

function UpdateTablets(Player)
pcall(function()
Rot=Rot+RotValue/100                
for i=1,#Tablets do
local pos =[Player].Character.Torso.CFrame
local m=(i/#Tablets-(.8/#Tablets)+(Tablets/(#Tablets/5)))*math.pi*2
local rad=(#Tablets*.6)+5
local x=math.sin(m)*(rad)
local y=math.sin(time()/5)
local z=math.cos(m)*rad
local arot=Vector3.new(x,y,z)+pos.p
local brot=Tablets[i].P.CFrame.p
local crot=arot*.1+brot *.9
local d=math.rad((Rot*800)*math.pi)
Tablets[i].P.CFrame=CFrame.new(crot,pos.p)*CFrame.Angles(math.rad(15),d,0)
end
end)
end
0
Just remove the brackets around the word Player and see what happens. Discern 1007 — 9y
0
It CFrames to game.Players.Player character torso :/ MessorAdmin 598 — 9y

Answer this question