Hello. I’m trying to make an ability where a player throws a potion and on impact, explodes into a ring where anybody that steps inside will be damaged. However, I have no idea how to make the potion look like it’s being thrown into the air. Specifically, I want it to make an arc. Is there any way to do this with exclusively scripting? (For League of Legends players, it’s similar to a Twitch Q.)
You could unanchor the potion model (if it is), parent it to the Workspace after the last or second-to-last-keyframe for the throwing animation is reached, then set its Velocity property to at least a high amount. If this is not the result you want, you can use Body Movers.
yep, very easy (this will create a perfect arc and the grenade will fall exactly where your mouse is). Use this concept:
local forwardSpeed = 125
local upSpeed = 50
local hrp = char:WaitForChild("HumanoidRootPart")
local vector = mouse.Hit.p - hrp.Position
grenadeProjectile.Velocity = (vector.Unit * Vector3.new(1, 0, 1) * forwardSpeed * (vector.Magnitude / 100) ) + Vector3.new(0, upSpeed, 0)
Quick question, is mouse.Hit.p deprecated or not?
I dont think so, but if your worried, just use mouse.Hit.Position
Use tween:
– Add tween for arched throw
local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
local goal = {CFrame = workspace:WaitForChild(“Water”).CFrame + Vector3.new(0, 0, 0)}
local tween = TweenService:Create(coinClone, tweenInfo, goal)
tween:Play()