I've got a script that puts a part with a cloud mesh under the player's foot when they press Q. In test servers, and in the real game, the part will glitch and show up above, or below the player. EXAMPLE
Any idea why this could be happening? Is it an FE related issue? I've tried using Position and CFrame, and it doesn't help.
Local Script:
wait(2)
local Player = game.Players.LocalPlayer
local char = Player.Character
local mouse = Player:GetMouse()
local stam = Player.Stats.Stamina
Skilluse = 0
UsedMoon = 0
function MoonWalk(key)
local Key = key:lower()
if key == "q" and Skilluse == 0 and UsedMoon == 0 and stam.Value >= 100 and Player.Stats.StaminaXPMAX.Value >= 50 then
Skilluse = 1 UsedMoon = 1
script.MoonWalkEvent:FireServer()
wait(0.5)
Skilluse = 0 UsedMoon = 0
end
end
function OnEquipped(mouse)
mouse.KeyDown:Connect(MoonWalk)
Player.PlayerGui.MainHUD.SixPowerSkills.Visible = true
end
script.Parent.Unequipped:Connect(function(mouse)
Player.PlayerGui.MainHUD.SixPowerSkills.Visible = false
end)
script.Parent.Equipped:Connect(OnEquipped)
Server Script:
function MoonWalk(Player)
local stam = Player.Stats.Stamina
Player.Stats.StaminaXP.Value = Player.Stats.StaminaXP.Value + 5
stam.Value = stam.Value - 100
local Cloud = script.Parent.Cloud:Clone()
Cloud.Parent = Player.Character
Cloud.CFrame = Player.Character:FindFirstChild("Right Leg").CFrame
Cloud.Position = Player.Character:FindFirstChild("Right Leg").Position
game.ServerScriptService.SuperFastRemove:Clone().Parent = Cloud
local Grow = script.Parent.CloudGrow:Clone()
Grow.Parent = Cloud
Grow.Disabled = false
local BV = Instance.new("BodyVelocity")
BV.maxForce = Vector3.new(math.huge, math.huge, math.huge)
BV.velocity = Vector3.new(0,30,0)
BV.Parent = Player.Character:FindFirstChild("Torso")
Player.Character.Torso.Geppo:Play()
game.ServerScriptService["ULTRA REMOVE"]:Clone().Parent = BV
end
script.Parent.MoonWalkEvent.OnServerEvent:Connect(MoonWalk)
Thanks for reading.

1 comment
That method produces the same effect as before. Doesn't fix anything, it's just right above the head rather than above and to the right a little bit