#random beams in shotgun
1 messages · Page 1 of 1 (latest)
cilent
local bullet = Instance.new("Part")
local direction = (endpos - starpos).unit
local ray = Ray.new(starpos, direction * dist)
local hit, pos = workspace:FindPartOnRay(ray)
if not pos then
pos = endpos
end
bullet.Size = Vector3.new(0.1, 0.1, dist)
bullet.CFrame = CFrame.new(starpos, pos)
bullet.CFrame = bullet.CFrame * CFrame.new(0, 0, -dist / 2)
bullet.Material = Enum.Material.Neon
bullet.CanCollide = false
bullet.BrickColor = BrickColor.new("White")
bullet.Transparency = 0.5
bullet.Parent = workspace
local transparency_tween = game:GetService("TweenService"):Create(bullet, TweenInfo.new(0.1), {Transparency = 1})
transparency_tween:Play()
game.Debris:AddItem(bullet, 0.1)
if hit then
local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
if humanoid then
if hit.Parent.Name ~= player.Name then
if hit.Name == "Head" then
humanoid:TakeDamage(dmg * headshot)
else
humanoid:TakeDamage(dmg)
end
end
end
end
end)```
server
spread usually happens on angles instead of an offset of the hitpos since distance from the origin to the hitpos will change how much spread there is. that's where i would start
i dont think the promblem in a spread. because when i turn it off, that happens again
so your spread doesn't work, but the problem isn't with the spread? golly that makes an awful lot of sense. i think you got this covered 
i mean
when it enabled it does not work at all, the rays going straight. and sometimes couple of rays goes in random direction
when it disabled nothing changes
i like saying things just for the sake of saying things when responding to someone's question, y'know i just enjoy stringing random words together, like here's another random string of words that is absolutely not related to anything at all whatsoever: "use angles to do bullet spread instead of a random offset from the hitpos for the second time". saying stuff for the sake of saying stuff is fun 
let me literally draw you a picture
use the correct method
how you "realise" that? uh, idk, google's ai defines "how to realise" as:
To "realise" something, whether it's an idea, a goal, or a potential, requires setting clear goals, taking action, and persevering through challenges
ai gave another one
To "realize" something means to become aware of or understand a situation, sometimes suddenly, or to achieve something you planned to do or hoped for
idk how you "do" that exactly, you just kinda do it?
You just changed uk spelling to us spelling lol
To realize something, whether a goal, an understanding, or a potential, requires a combination of reflection, action, and a growth mindset. Think about your experiences, set clear goals, and take small, consistent steps towards them.
understandable
this is probably the closest to what you meant to say
okay
this is second closest
i will know
realize = achieve (something desired or anticipated); fulfil.
So it was a fine word to use
this will probably point you in the right direction https://create.roblox.com/docs/reference/engine/datatypes/CFrame#LookVector
local bullet = Instance.new("Part")
local direction = (endpos - starpos).unit
local ray = Ray.new(starpos, direction * dist)
local hit, pos = workspace:FindPartOnRay(ray)
if not pos then
pos = endpos
end
bullet.Size = Vector3.new(0.1, 0.1, dist)
local bulletCFrame = CFrame.new(starpos, pos)
bullet.CFrame = bulletCFrame * CFrame.new(0, 0, -dist / 2)
bullet.Material = Enum.Material.Neon
bullet.CanCollide = false
bullet.BrickColor = BrickColor.new("White")
bullet.Transparency = 0.5
bullet.Parent = workspace
local transparency_tween = game:GetService("TweenService"):Create(bullet, TweenInfo.new(0.1), {Transparency = 1})
transparency_tween:Play()
game.Debris:AddItem(bullet, 0.1)
if hit then
local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
if humanoid then
if hit.Parent.Name ~= player.Name then
if hit.Name == "Head" then
humanoid:TakeDamage(dmg * headshot)
else
humanoid:TakeDamage(dmg)
end
end
end
end
end)```
something like that?
the problem is before the function even starts
starpos, endpos,
should be starpos, direction
and then the server checks where the ray hits
you already have half of it at the top lua local direction = (endpos - starpos).unit local ray = Ray.new(starpos, direction * dist) local hit, pos = workspace:FindPartOnRay(ray)
just send the direction instead of endpos
ye u doing some crazy stuff, add prints, do at least even the most remote super beginner newbie braindead debugging steps and i'm sure you can figure out more than "it not work plz halp!"
you're not more braindead than a super beginner newbie braindead skiddie are you? surely you can take some basic debugging steps?
i’ve tried
when i checked mouse positions, it worked perfectly on client
but randomly on server it breaks
is that to you say you've taken beginner basic braindead beginner newbie debugging steps?
asplain it to me like i dont know code at all
(that helps more than you think, just trust the process 👍 )
print(pos)
okay you trying to print(pos) and then what's wrong with that?
where is print(angle)?
you mean that
but also where is print(hitted_pos)?
well
look code aint hard you either know the math or you dont ;o
бля завали ебало честно
твоя помощь как говна лопату
go fuck yourself 
GOOGLE TRANSLATE:
fuck shut the fuck up honestly
your help is like a shovel of shit
thanks
racism🤨
go back to your.. na you aint worth it
man, back in my day, 99% of ruskidskies were hackers/exploiters, i banned so many of them it's crazy
but oh how the times change
everyone ≠ 99%
still skids, better ai-generated hacks... still zero skill. how sad
an entire continent with less than a skibbidi of skill. lol
i dont need to waste my time on this, and neither does anyone else.
still nice to know roblox's slaughter of russian skiddies still reels to this day. go back to your cave, ruskie.
the world don't need more russian hackers. skid.
@charred raft иди сосать лох мингликер
братан считает что каждый второй читер, я могу тоже самое сказать, американцы это быдло которое при любой возможности начинают тебя засирать за национальность без вязкой на то причины, тебе такое будет приятно?
p.s i'm not american, dumbwit
oh wait hang on you dont speak english hang on
мингликер 😭😭😭 (такого слова у нас даже нет)
y'all just stop
спасибо
he pissed me off
Я не американец, ты что, тупой?
я очень рад
haha okay
i'm outa this ruskies thread 👍
if you want to help this skiddie hacker be their guest 
флаг вам в руки
All im trying rn is to get you guys to stop talking to eachother
ye i don't know why but ruskies always seem to be skiddie hackers, idk what it is
either that or they are disrespectul, it's always one of the 2
я промолчу
никого не волнует, детка, иди на хуй
щас удалит полюбому
i would hope this kid learns a lesson of respect but, yea, not a chance of that. they're set in their ruskidie ways.
anyway i'ma head off before some ruskie wastes any more of my time. peace ☮️
какой респект, ты меня обосрал с ног до головы как мол я тупой и не могу понять какой то простой ошибки, а ему еще и уважение нужно, и ты же так хотел уйти отсюда, че не уходишь?
talk shit get hit, skid.
@quaint ember @coarse cradle @runic maple can someone calm this down?
а вот это правда
agreed, i really don't appreciate people calling me, what was it...
бля завали ебало честно
твоя помощь как говна лопату
#1356891727620735126 message
and i 100% agree something should be done about the cross-language barrier when people tell me, quote:
бля завали ебало честно
твоя помощь как говна лопату
translation:
fuck shut the fuck up honestly
your help is like a shovel of shit
i think those people should show some respect
all i told this ruskie was, well actually i'm not sure what took this skids offence but they were really butthurt by it
не забываем
не забываем
Genuinely just stop speaking in here
please
Its not worth it
Dont even respond to this
its not necessary
лишь скажу что для меня было это провокацией.
всем спокойной ночи или что то в этом роде, в зависимости сколько у вас времени
sometimes i think it is but you're right, some random ruskie skid isn't worth it. thanks for reminding me of that 🫡
I don't even understand what they r saying so uh
started here