I dont really understand while this take error

local clockcoming= tweensv:Create(clock.PrimaryPart,TweenInfo.new(2,Enum.EasingStyle.Linear),{CFrame = stand.HumanoidRootPart.CFrame:ToWorldSpace(CFrame.new(0,0,-3) * CFrame.Angles(math.rad(90,0,0)) ) })

This part is wrong.

`local clockcoming= tweensv:Create(clock.PrimaryPart,TweenInfo.new(2,Enum.EasingStyle.Linear),{CFrame = stand.HumanoidRootPart.CFrame:ToWorldSpace(CFrame.new(0,0,-3) * CFrame.Angles(math.rad(90),0,0))})`

1 Like

kexy123
(kexy123)
#3
The `math.rad()`

function only accepts and returns one number. You inputted three, which caused an error.

To solve this, you must use 3 `math.rad()`

functions. But since two of them are zero, you only have to use one.

Therefore, your code should be:

```
local clockcoming= tweensv:Create(clock.PrimaryPart,TweenInfo.new(2,Enum.EasingStyle.Linear),{CFrame = stand.HumanoidRootPart.CFrame:ToWorldSpace(CFrame.new(0,0,-3) * CFrame.Angles(math.rad(90),0,0) ) })
```

1 Like

oh ok i think i understand that is math.rad() just for only 1 value right?

kexy123
(kexy123)
#5
Yes. It only accepts one value.

system
(system)
Closed
#6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.