#Tool Power
27 messages · Page 1 of 1 (latest)
Do you mean when you click just on the screen or on something?
yes, I found out a way to do that but the model doesn't appear in front of me when I click. It appears where it was before I put it into ReplicatedStorage.
is it the same script as above?
This is the new script
local player = game.Players.LocalPlayer
local replicatedStorage = game:GetService("ReplicatedStorage")
local model = replicatedStorage.Cero
local spawnDelay = 0.75
tool.Activated:Connect(function()
wait(spawnDelay)
local character = player.Character
if character then
local modelClone = model:Clone()
modelClone.Parent = workspace
modelClone:SetPrimaryPartCFrame(character.HumanoidRootPart.CFrame * CFrame.new(0, 0, -5))
end
end)```
Better thx
yw
So the script is cloning The model "Cero" and parenting it to the workspace and changing the position(Cframe) to the HumanoidRootParts Cframe.
Are there any erros?
Ok
it says Model:SetPrimaryPartCFrame() failed because no PrimaryPart has been set, or the PrimaryPart no longer exists. Please set Model.PrimaryPart before using this.
Oh it basically is saying that your missing an pirmarypart
You could try to use cframe instead?
Try to position the model to the humanoidrootpart *5
I don't think models has cframe?
do they
i dont think so
Maybe try use position
ok
Set the position of the model to what you want