#Help me on my obey
1 messages · Page 1 of 1 (latest)

bro
PLEASE
local hoverPart = script.Parent
local hoverHeight = 5 -- Height above the ground when hovering
local hoverForce = 2000 -- Adjust the strength of the hover effect
local hoveringPlayers = {}
-- Apply hover force
local function applyHoverForce(character)
local hrp = character:FindFirstChild("HumanoidRootPart")
if hrp and not hoveringPlayers[character] then
local attachment = Instance.new("Attachment")
attachment.Name = "HoverAttachment"
attachment.Parent = hrp
local vf = Instance.new("VectorForce")
vf.Name = "HoverForce"
vf.Attachment0 = attachment
vf.Force = Vector3.new(0, hoverForce, 0) -- Force going upwards
vf.ApplyAtCenterOfMass = true
vf.RelativeTo = Enum.ActuatorRelativeTo.World
vf.Parent = hrp
hoveringPlayers[character] = { attachment = attachment, force = vf }
end
end
-- Remove hover force
local function removeHoverForce(character)
local data = hoveringPlayers[character]
if data then
if data.attachment then data.attachment:Destroy() end
if data.force then data.force:Destroy() end
hoveringPlayers[character] = nil
end
end
-- Detect when a player enters the part
hoverPart.Touched:Connect(function(hit)
local character = hit:FindFirstAncestorWhichIsA("Model")
if character and character:FindFirstChildOfClass("Humanoid") then
applyHoverForce(character)
end
end)
-- Detect when a player leaves the part
hoverPart.TouchEnded:Connect(function(hit)
local character = hit:FindFirstAncestorWhichIsA("Model")
if character and character:FindFirstChildOfClass("Humanoid") then
removeHoverForce(character)
end
end)
THIS ISNT WORKING
WHY
check the output
i said check the output
find any errors related to the code
no errors i just dont know how to make it automaticly hover me
no idea why its not working?
** You are now Level 1! **
its not working cause this only applies FORCE onto the player.
basically gravity change
and not hovering
bru theres a free model for that stuff gng
idk what its called tho