#view Model Fix
259 messages · Page 1 of 1 (latest)
real
;-;
Um
are u using viewport
no i used a script from yt
i did everything like him
i just used a different first person camera cuz his one doesn't match my game
here is the script
yea?
do i send link to the pastebin that he used?
How use pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
im harmless
yes
i don't even know what that is
Finds what city they live in
do i send the vid?
u can use it for any tool
I gave up when I saw sin
Its a script to make viewbobing for FPS viewmodels
me don't even know what sin is
i just now SOH CAH TOA and this? nah
sin gives a very nice smooth curve. Used it for pet floating before.
im using it for a horror game but when i hold it its fine when i move it start glitching and moving around (i have it anchored)
ur so smart
wow
Okay well to be fair I googled the solution but understood its use
so the problome is in sin cuz the moving isn't very smooth
** You are now Level 3! **
no
u guys are forgeting the part about helping me
lol
does anyone have a vid that has a view model that works better than this one? that would be great
a video would help
ill give
one sec
This is how you can make first person viewmodels for your Roblox game!
This is a smooth, dynamic system that will add polish and a premium feel to your game!
roblox studio scripting tutorial
CODE IS HERE: (still recommend watching, so you know how to set items up)
https://pastebin.com/NigfPSFB
🎥YOUTUBE🎥
😊Subscribe ➜ https://www.you...
his flashlight was moving smoothly but my crowbar was very glitchy and not anchored even i set it at anchored
No like a vid of your issue
why is he using tick
tick gives time. sin gives a range of [-1, 1] that repeats. So essentially it gives a way to query the curve at some point in time
why dont you apply for s1
i got a vid
Because I'm an anxious fella
send
I see..
Even I could make it to s1 you'd definitely make it
** You are now Level 19! **
This isn't related to sin I don't think.
You followed a tutorial, yes? How is your tool setup compared to the tutorial
You’ll prob get s2 or 3
Configuration would matter too if values are odd
That's very kind of you but I gotta focus on helping first
almost the same at the start of the vid he said that he used a first person camera from his last video but i have a diffrent one and i don't think its the problome
S1 isn’t a commitment
Make u seem professional
"almost the same"?
only i have a diffrent first person camera
Right. Are the configuration variables the same as the tutorial? What have you changed viewmodel wise?
The viewbobbing doesn't move the camera
he said to put the handle in a model and to name it as the tool and to anchor and set colision off and i did that
and i put it in replicted storage
yeah he said to do it
That's odd. The viewbobbing script you sent me checks for tools, not models...
so what do i do exactly?
change the model into a tool? i guess
the tool still works the model just acts as the view model
Oh sorry I see it now. I misread.
ima try it anyway
yea it just missed it up
Is the PrimaryPart of the model set to the meshPart?
or rather the mesh
yea i did that too
its set to the meshpart which is named handle
So you have "Handle" and then another part in that called "Handle"?
no no just a meshpart called handle
I see one BasePart called "Handle". Can you take a screenshot of what's under Handle by expanding it
** You are now Level 4! **
its just a mesh for the handle
Oh you updated it since your last screenshot
yea i changed to a meshpart instead of a part cuz he used a meshpart
nvm ill change back to a part cuz when i changed to a meshpart it just became a block instead of a crowbar and the glitching is still happening
i noticed that the glitching start happening when im walking or running but when im standing still it doesn't glitch
Okay, what if you disabled the first person script you're using and, while playing, just zoomed in until you're in first person. See if the glitch happens then.
yea i did
and the same problome when i run it glitches
so the problome is not in the first person script
Which is a good thing to figure out.
Try reducing the multi variables by say, half, and see what happens.
alr
multi variables in the tool hold script right?
i can't find it
in the viewmodel code, up top, under "settings"
local smooth = 50
local bobSpeed = 1.5
local bobDistance = .1
local bobWalkMulti = 3
local walkVeloThreshold = 9
local swaySpeed = 1.1
local swayDistance = .07
local swayWalkMulti = 2
those?
the two "multi" ones. Reduce those by half
alr
it still does it
i set them to half then to 0.1
still glitches
i tried to ask the youtuber that made the vid for help but he ain't responding
If you equipped the tool on its own, does it hold correctly?
without the view model?
nah its just like floting in ur screen thats why i added the view model
I guess the tool being held in hand wouldn't affect the viewbob script.
Did you originally do this with the flashlight model? Did it work then?
nope i didn't do the flashlight
wait
ill save everything a model and try in a new place
it still does it in a diffrent place
ima try another thing like a flashlight
Trying another thing might be good.
** You are now Level 5! **
yeah its still glitchy maybe the script does it
Are you sure you followed the tutorial exactly? Like if you followed it in a new place from scratch?
I'm surprised it's doing that when it worked in 2 month old code for him.
Look at this comment
Did you just take his script? or did you follow along while he was making the script?
just took it
Follow the tutorial for the code instead of taking it.
That comment said the code he linked wasn't the same as what's in the tutorial
hey so what does math.cos do
same like math.sin?
Different wave
cos starts at 1, sin starts at 0
cos: 1, 0, 1
sin: 0, 1, 0
This is a gross simplification of a complex mathematical concept, but for the purposes of viewbobbing, it produces a nice, smooth, repeating wave, since time increases and sin & cos repeat
9
Go into desmos do look up cos and sim wave
I’m in 8
Just advanced
Cos starts at top on mathematical wave
Sine starts at middle
Oh was it the middle? Been so long since I took Trig.
I don’t know much about implementing this into scripting
But I know some trig
That pic implies sine starts at the origin, or 0
Yeah pretty sure sine starts at 0, cosine starts at 1
no sine starts at 0, cosine 1
Sorry I'm super off topic in this thread.
I'll stop until OP updates me after he tries following the tutorial for the code.
What I meant by middle is middle of the range
see it as a circle
sctipt:FixLine(x)
is that where is the wrong part?
That's a joke
No Its a joke
Ig try changing ur settings
which one
i tried it its just the same
Hmm. That's a tough one.
Things would be different if you made this yourself, as you'd probably encounter the issue much earlier in the process, fixing it then rather than needing to debug a script made for different things in a different environment
Well now we're at a sort of complex issue that you don't know how to handle because you took something you didn't understand.
Try changing all settings to 0. I want to identify what's happening.
What's the offset of the viewmodel set to
Don't have time for that.
Set all settings in the script to 0
alr
everything at 0
if i change the smoothnes to 60 it goes back to glitching
i think its just that script is bad or smt
Did you try reducing the smooth to like... 5?
But what about the viewmodel? Did you re-enable the first person?
wym reenable
Like that first person script you were using
im not using any first person scrip im in a new place
So when you zoom in so you're in first person, does the low smoothing of 5 change anything
nope it just makes it less smooth
it still glitches?
Yep that makes sense. Try 95 or 90.
alr
its just more glitchy
and if u lower it its less smooth and 0 frezz
welp
ig u can't make everything perfect
ill just leave it like that and pay somone to make me a new one later
Inside the script
i tried changing everything it would still glitch
can anyone give me a script that makes another part collision off if u touch this part
like if i touch a part another part collision becomes off*
We do not make scripts. Look at the post guidelines
alr its fine and i already made it
** You are now Level 6! **
yo guys
if game:GetService("UserInputService").TouchPan then
local button = script.Parent.Sprint.Mobile
if button then
button.Frame.Visible = false
end
end
this script
it disables the button for mobile
how do i change it to pc
like disables button for pc
i want to know how to like select the pc players only
