You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear! How do I tween a bullet out of a turret
-
What is the issue? Include screenshots / videos if possible! so i have a bullet that i clone from replicated storage and parent to workspace. and when it click a person i want it to tween to his torso and i want him to take damage the damage part is done but the bullet wont tween
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub? yes
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Heres an image of what happens when i try to tween it
- the yellow thing is the bullet
below is the code i used to tween the bullet
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local remoteEvent = ReplicatedStorage:WaitForChild("IDK FOR NOW") -- remote event dont ask about the name
local TweenPart = ReplicatedStorage:WaitForChild("Bullet")
local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new(
1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0
)
local function damage(player, humanoid)
local TweenGoals = {
Position = humanoid.Torso.Position;
}
print(humanoid.Torso.Position)
print(player.Name.." Fired event")
humanoid.Health -= 1
local bullet = TweenPart:Clone()
bullet.Anchored = true
bullet.Parent = game.Workspace
bullet.Position = game.Workspace.Nozzle.Position
local Tween = TweenService:Create(TweenPart,Info,TweenGoals)
Tween:Play()
wait(1)
bullet:Destroy()
end
remoteEvent.OnServerEvent:Connect(damage)
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.