I'm making my own SFOTH sword. It's a cloud sword and when someone touches it, it will float them up into the air.
Here's the script that makes it do that (some lines are completely useless, that was just me being desperate to make it work):
script.Parent.Handle.Touched:Connect(function(OtherPart)
if OtherPart.Parent:FindFirstChild("Humanoid") then
local T = OtherPart.Parent.Torso
local Smoke = game.ServerStorage.Smoke:Clone()
Smoke.Parent = T
local TweenInfo1 = TweenInfo.new(
4,
Enum.EasingStyle.Quad,
Enum.EasingDirection.In,
0,
false,
0
)
local H = T.Parent.Head
H.Anchored = true
local Tween = game:GetService("TweenService"):Create(T.Parent.Head, TweenInfo1, {Position = Vector3.new(H.Position.X, H.Position.Y + 60, H.Position.Z)})
local Po = H.Position
H.Position = Po
Tween:Play()
H.Position = Po
wait(4)
Smoke:Destroy()
H.Anchored = false
end
end)
It works the first time when I touch a player. but the next time it sends them to a position around 30 studs away and launches them up from there. Any help?

2 comments
:(((((
Wow you've certainly tried a lot of stuff.