Model Placing tool working weirdly

  1. What do you want to achieve? Keep it simple and clear!
    A Model placing tool

  2. What is the issue? Include screenshots / videos if possible!
    It is working fine but when the model is place down, the position is not accurate to the script I wrote sometime when I change the numbers from 0,-2.75,-5.5 to like 0,-3.75,-5.5 expecting it to go lower but it goes higher or when I change it the other way around from 0,-2.75,-5.5 to 0,-1.75,-5.5 it also gone higher. Idk If I’m doing this right or not

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Searching but got no solution yet

here is the script

script.Parent.Activated:Connect(function()

local character = script.Parent.Parent or script.Parent.Parent.Parent.Character

local ply = game.Players:GetPlayerFromCharacter(character)

local bricks = ply:FindFirstChild("Bricks")

if deb == false then

if bricks.Value >= 35 then

deb = true

local HumRP = script.Parent.Parent:FindFirstChild("HumanoidRootPart") or script.Parent.Parent.Parent.Character:FindFirstChild("HumanoidRootPart")

local Hum = script.Parent.Parent:FindFirstChild("Humanoid") or script.Parent.Parent.Parent.Character:FindFirstChild("Humanoid")

local Track = Hum:LoadAnimation(Animation)

Hum.WalkSpeed = 0

HumRP.Anchored = true

Track:Play()

Particle.Enabled = true

Sound:Play()

wait(2)

Track:Stop()

Sound:Stop()

Hum.WalkSpeed = 16

HumRP.Anchored = false

Particle.Enabled = false

local Pos = HumRP.CFrame

local Clone = game.ReplicatedStorage.Builds.Speed:Clone()

Clone.Parent = game.Workspace.Build

local WhiteParticle = game.ReplicatedStorage.Particle.White:Clone()

WhiteParticle.Parent = Clone

Sound2:Play()

Clone:MoveTo(Pos * Vector3.new(0,-2.75,-5.5))

bricks.Value = bricks.Value - 35

wait(0.3)

WhiteParticle.Enabled = false

deb = false

end

end

end)

The model is suppose to go to the same position of the grey outline thing, and I make sure in the script the model position have the same number as the grey outline

1 Like

Send the line of script where the model clones into workspace

It’s in the script above, the line that say

local Clone = game.ReplicatedStorage.Builds.Speed:Clone()

Clone.Parent = game.Workspace.Build

image
Try to use CFrame instead of this line