Hi everyone, this is the second post about this game (idk if you can do this but the first one seems like no one sees it) anyway here comes the Alpha 0.1.0 of INCEPTER
Sadly the level is laggy, maybe caused by the moving parts (if anyone knows some fix would be great)
But hey! Version 0.0.1 was literally nothing compared to this!
if anyone wants to figure the twitching bug here is the script.
while true do
script.Parent:SetPrimaryPartCFrame(script.Parent.Center.CFrame * CFrame.fromEulerAnglesYXZ(0,0,-.005))
wait()
end
Yes, i’m working on multiple levels but if the game ends up to all levels so laggy idk if make them basic like tower of hell or more complex like this one
Aw frick that’s not good, i’ll try to make the game better and avoid vertigo
local model = -- Model here
while true do
wait()
model.CFrame = model.CFrame + CFrame.Angles(math.rad(1), 0, 0)
end
You could put
local RS = game:GetService("RunService")
local model = -- Model here
RS:BindToRenderStep(function()
model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame + CFrame.Angles(math.rad(1), 0, 0))
end)
This is much better, because while loops can run a maximum of every 0.03 seconds (I think) and :BindToRenderStep() runs on every frame that the server renders, So it will update at the same speed that the game runs at.
You may have to lower how far it rotates as it may rotate too fast.
local RS = game:GetService("RunService")
local model = script.Parent-- Model here
--this one RS:BindToRenderStep(function()
model:SetPrimaryPartCFrame(model.PrimaryPart.CFrame + CFrame.Angles(math.rad(-0.005), 0, 0))
end)