So I’ve been trying to create a rotating entity for a good day or two now, and I can’t seem to get it to rotate. I’ve tried using other scripts as resources but I still can’t figure out what is wrong.
Here is what I have so far:
function SpawnEnts( )
local bubble = ents.Create( “entity1” )
bubble:SetPos( Vector( 1019.322815, 439.279907, 50.031250 ) )
hook.Add( “InitPostEntity”, “SpawnEntities”, SpawnEnts )
for k,v in pairs(bubble) do
if (v:IsValid()) then
v:SetAngles(v:GetAngles() + Angle(0,3,0))
I’m clueless now, so if someone could please help, that would be very appreciated.