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!
Im need like part spawns nearby humanoid and smooth to mouse.Hit
its work but not that i want -
What is the issue? Include screenshots / videos if possible!
https://gyazo.com/a7859477e807499e8039c5858bdc81b2
So fast -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried linear velocity,i didnt found solution
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!
If u didnt understand ask
local SpawnPart = {}
function SpawnPart.KnockBackSkill(CFram:CFrame,Size,Speed,Mouse)
local SpawnPartModule = require(game.ReplicatedStorage:WaitForChild("Modules"):WaitForChild("RockModule"))
local TweenS = game:GetService("TweenService")
local Player = game.Players.LocalPlayer.Character.HumanoidRootPart
local Hum = game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart")
local Humanoid = game.Players.LocalPlayer.Character.Humanoid
local Part = Instance.new("Part")
Part.CFrame = Mouse
Part.Anchored = false
Part.CanCollide = false
Part.Parent = workspace
Part.Size = Vector3.new(Size,Size,Size)
local Tween = TweenS:Create(Part,TweenInfo.new(3),{CFrame = Part.CFrame * CFrame.new(0,0,-10)})
Part.CFrame = CFram.CFrame * CFrame.new(0,0,-3)
Tween:Play()
Part.Touched:Connect(function(hit)
local HumThatTouched = hit.Parent:FindFirstChild("Humanoid")
if HumThatTouched then
if hit == Hum then return end
-- SpawnPartModule.New(Part,10,5,4,5)
end
end)
end
return SpawnPart
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.