Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My model is floating, how do I make it so it doesn't float?

My model is from a required module also uploaded to roblox and this happens https://i.imgur.com/tYDNzlJ.png

Module ID is 5939559857

Main script:

--Without this script the van may not function as intended!
local icecream = script.Main.Icecream
local detector = script.Main.Van.Dispenser.Button.ClickDetector
detector.MouseClick:Connect(function(plr)
	local clone = icecream:Clone()
	clone.Handle.Anchored = false
	clone.Parent = plr.Backpack
end)

MainModule:

local module = {}
local main = function()
	script:WaitForChild("Vanfunctions")
	local dog = "dog"
	script.Vanfunctions.Disabled = false
	script.Vanfunctions.Parent = workspace
end
return main

How the module was required

ServerScript:

wait(2)
local req = require(5939559857)
wait(1)
req()

10 comments

0

It's likely anchored.

0

It is anchored

0

I don't like the fact it is floating and is unreachable by the player

0

So then unanchor it?

0

I will not unanchor it. Due to a feature in the van.

0

How do you even expect it to float without unanchoring?!

1

Okay, so if you want the player to reach it, set the Y value of the CFrame of the PrimaryPart to be low enough for the player to reach. You'll need a CFrame literal, perhaps the new() constructor, since Y is read-only.

0

Would i need to weld the other parts with the primarypart

1

No. CFrame retains welds.

0

Alright then :D

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.