Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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()
0
It's likely anchored. DeceptiveCaster 3761 — 4y
0
It is anchored antoniorigo4 117 — 4y
0
I don't like the fact it is floating and is unreachable by the player antoniorigo4 117 — 4y
0
So then unanchor it? DeceptiveCaster 3761 — 4y
View all comments (6 more)
0
I will not unanchor it. Due to a feature in the van. antoniorigo4 117 — 4y
0
How do you even expect it to float without unanchoring?! Techyfied 114 — 4y
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. DeceptiveCaster 3761 — 4y
0
Would i need to weld the other parts with the primarypart antoniorigo4 117 — 4y
1
No. CFrame retains welds. DeceptiveCaster 3761 — 4y
0
Alright then :D antoniorigo4 117 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

You need to add weld to your model Also unanchor the model because it stays still on the air If you don't know how to weld you can watch this video: https://www.youtube.com/watch?v=LEy0po6sLso

Ad

Answer this question