#💬 holetalovescookiesʹs Feedback

1 messages · Page 1 of 1 (latest)

junior surgeBOT
severe veldt
#

holy 😭

#

dude how did it spike to 86 at the last couple seconds 😭

#

@fathom frigate you should get into the practice of sending data in bulk

#

instead of one by one

severe veldt
fathom frigate
#

uh im not very good at optimization wtf is that

severe veldt
#

😭

#

fireserver

#

or fireclient

#

whatever you're doing

fathom frigate
#

oh

#

it spikes when the player gets attack

#

lemme get it

#

how to i format code again

severe veldt
#

lua"

#

😭

fathom frigate
#

sh sh sh

severe veldt
#

🥀

fathom frigate
#

oh i see

#

wrong thing

#

oops

severe veldt
#

backtick

fathom frigate
#
        local lookatTarget = GetTarget(45, model:GetPivot().Position)
        if lookatTarget then
            -- only turn y toward player
            local lookat = CFrame.new(model.HumanoidRootPart.Position, lookatTarget.HumanoidRootPart.Position)
            local goals = {
                Value = lookat
            }
            local info = TweenInfo.new(0.3,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
            local tween = game:GetService("TweenService"):Create(newVal,info,goals)
            tween:Play()
            --model.HumanoidRootPart.CFrame:Lerp(lookat, 0.1)
        end
        local targets = GetTarget(10, model:GetPivot().Position)
        if targets then
            LoadedIdle:Stop()
        
            
            loadedBite:Play(0.1, 1, 1)
            model.HumanoidRootPart.Bite:Play()
            if targets:FindFirstChild("Humanoid") then
                targets.Humanoid.Health -= 10
            end
            coroutine.wrap(VFX)(model)
            wait(0.9)
            loadedBite:Stop()
            LoadedIdle:Play(0.1, 1, 1)
            
            wait(3)
        end
    end```
severe veldt
#

gang

#

😭

#
while wait() do
        local lookatTarget = GetTarget(45, model:GetPivot().Position)
        if lookatTarget then
            -- only turn y toward player
            local lookat = CFrame.new(model.HumanoidRootPart.Position, lookatTarget.HumanoidRootPart.Position)
            local goals = {
                Value = lookat
            }
            local info = TweenInfo.new(0.3,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0)
            local tween = game:GetService("TweenService"):Create(newVal,info,goals)
            tween:Play()
            --model.HumanoidRootPart.CFrame:Lerp(lookat, 0.1)
        end
        local targets = GetTarget(10, model:GetPivot().Position)
        if targets then
            LoadedIdle:Stop()
        
            
            loadedBite:Play(0.1, 1, 1)
            model.HumanoidRootPart.Bite:Play()
            if targets:FindFirstChild("Humanoid") then
                targets.Humanoid.Health -= 10
            end
            coroutine.wrap(VFX)(model)
            wait(0.9)
            loadedBite:Stop()
            LoadedIdle:Play(0.1, 1, 1)
            
            wait(3)
        end
    end```
#

while wait() do

#

okay

#

lemme read

#

😔

fathom frigate
#

that isnt good

severe veldt
#

i don't think so either

#

wait is this on the server

fathom frigate
#

yes

#

so im assuming its the while waits right

severe veldt
#

it's like

#

everything

fathom frigate
#

damn actually

severe veldt
#

yes 😭😭

fathom frigate
#

i write my code like that normally 😔

fathom frigate
#

ok so uh

#

how would i optomize

severe veldt
#

yeye i'll explain

fathom frigate
#

or am i beyond helping

severe veldt
#

can u vc lowk bro it's so much easier

fathom frigate
#

ye ye but uh im not comfortable using voice so ima mute

#

i can screenshar