Basically I need you to help me by telling me what I should include in this system:Please
local player = game.Players.LocalPlayer
local uis = game:GetService("UserInputService")
local char = player.Character
local animacion = script:WaitForChild("Animation")
local humanoid = char:WaitForChild("Humanoid")
local parteprincipal = char:FindFirstChild("HumanoidRootPart")
local value = true
local activar = humanoid:LoadAnimation(animacion)
uis.InputBegan:Connect(function(key)
if key.KeyCode == Enum.KeyCode.E then
if value then
value = false
activar:Play()
value = true
end
end
end)
To be more exact, I want that when the player presses the e key, an animation is played and also changes the position of the player towards him just when the animation ends (using a displacement effect). I already have the animation and I included the scrolling to it but if you tell me that it is better to do it without scrolling and the script takes care of scrolling, no problem
I think taht the easiest way of doing this would be like making the animation stay in the same place, but the HumanoidRootPart are moves every tot second air tweens to a certain position
Please, I know that this is the case. I know them very well. but you always get to my subject by speaking in a way as if I understand you or as if I were a professional programmer. I would ask you to give me an example but since you never help me, don’t give it to me. I beg you please DO NOT COMMENT MORE ON MY TOPICS
Hey there’s no need to be mean! I’m not a Programmer either, I don’t have any idea of how to use TweenService either, but basically you would make the animation be an animation that wouldn’t make sense while not moving, something like a walking animation but that doesn’t move, after that you would use TweenService, which basically makes things move or change transparency etc. Smoother, making the character go ahead, you can find more information in the documentation
And also I’m only trying to help, I can’t script this things for you one because I don’t k ow how, and two because the DevForum doesn’t allow yaht
Here in the category it says “script support” clearly the category was added for something and you can’t comment on a topic without experience in the given category but come on, it doesn’t matter, I’m just begging you, don’t comment on these types of topics
Do you know what an example is?:Phrase, action or object that is used to explain, illustrate or clarify something.
? If you were looking for the former tahn you would post thsi in #help-and-feedback:creations-feedback and for the latter look on the internet or on the DevForum
please do not pay attention to @Dede_4242 please he is simply saying things that he does not know or understand just help me according to what the topic says please
no I’m not asking you to write me the code, I’m just asking you to tell me more or less how I would do it and an example of a theme or scripts if you don’t understand me I can’t explain more
in a nutshell:
I make a displacement system which, obviously, when the animation ends, returns to its original position. I need you to tell me how I would do it (the change of position and with a twenservice, that is, with displacement animation (I already did the expressions of the animation what I need is the displacement
Then I think you would only need to create the effective animation and not need to use TweenService or make the animation not move and move it with TweenServiec, even thought it would make everything more complex without any need to make it more complex
friend, what I want is that when the player presses the E key, an animation is activated and the Humanoid Root Part moves so that it seems to slide (a displacement system) please