#💬 holetalovescookiesʹs Feedback
1 messages · Page 1 of 1 (latest)
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
not sure
lemme see the event calls
uh im not very good at optimization wtf is that
oh
it spikes when the player gets attack
lemme get it
how to i format code again
sh sh sh
🥀
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```
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
😔
that isnt good
damn actually
yes 😭😭
i write my code like that normally 😔
yeye i'll explain
or am i beyond helping
can u vc lowk bro it's so much easier