I have planned to make something, a GUI that once clicked, shoots something. The only thing I want to make right now is a simple textbutton that says "click to shoot a ball", after that, It shoots a ball forward, and that's it.
This is the script.
LocalScript In StarterGui > ScreenGui > Textbutton
user = script.Parent.Parent.Parent
script.Parent.TextButton.MouseButton1Click:connect(function()
game.ReplicatedStorage.Events.TEST_SummonBal:FireServer(user)
print("oh nice you shot a ball") --Just to make sure the FireServer worked.
end)
Script in ServerScriptService
game.ReplicatedStorage.Events.TEST_SummonBal.OnServerEvent:Connect(function(user)
local player = user.Character
local Root = player:FindFirstChild("HumanoidRootPart")
local Bullet = game.ReplicatedStorage.Weapons.BasicBullet:Clone()
local MoveScript = game.ServerStorage.MoveScript:clone() --Movescript is Disabled, by the way.
Bullet.Parent = game.Workspace
MoveScript.Parent = Bullet --To make the Moving Part Script happen.
Bullet.Position = Root.Position
MoveScript.Disabled = false
wait(3)
Bullet:Destroy()
end)
--Sidenote: "Bullet" can't collide with the player.
It all seems to work, but one thing. I don't know how to make the "MoveScript", Which must, err...
You guys remember pokemon advanced?, The attacks worked in a way that they moved forward from the player, Here's a video example of that https://youtu.be/kefQj5vew6o?t=218 (Notice Persian's PayDay attack)
That's what I want the movescript to do, However, I don't know how to make it.
You can give me a hand, right?
If you're going to be those persons and right out just post the script, AT LEAST Explain me how it works, I won't learn anything if you don't teach me.

2 comments
Firstly, you don't need to put 'user' in the FireServer() parameter in the local script. OnServerEvent automatically gets the player that fired the event. Secondly, :connect is deprecated, you should use :Connect instead. Lastly, you should try to code the script yourself and post your attempt if you fail.
About the third one: I Don't know how, I don't know how to make ANYTHING of the script, detecting the player's "front", disabling gravity, making it move forward, nothing, That's why I asked for help.