![]() If you find this confusing with changing properties, remember that you should just reference the object that possesses the property, not the property itself, so that you get a reference and not a value passed to the variable. Humanoid.-].Value = Humanoid.-].Value + Scale Learn to use variables to shorten your code! All your declarations that start with .Humanoid could be shortened to just a single word, such as Humanoid, with a variable assignment.Į.g: local Humanoid = .Humanoid ![]() I know another script could possibly handle the scaling but this seems a bit hacky and there must be another option. >= 6Īlright so what I want is to know if there’s a more effective version of this script that changes all of the values of the scales instead of putting a seperate line in for each change, and I want to be able to scale the head a bit bigger or else the head will look unusually small if scaled to the same as the other values. MouseButton1Down:Connect(function(clicked) Script.Parent:TweenSize(UDim2.Sorry for the vague title but a more accurate one would be stupidly long local Scale = 0.1 If input.Ke圜ode = Enum.Ke圜ode.LeftShift then Local UIS = game:GetService("UserInputService") I am trying to make a pretty simple shift to sprint script, however there is one small issue, When you are pressing shift but not moving your stamina still goes down, I want it to stop using stamina when you aren’t moving (if you are still holding shift I want the effects applied when you start moving) local player =
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |