NOTE: This is a regular/Server Script not a Local Script
I have this inside a GUI button...
local Gui = script.Parent
local Player = Gui.Parent.Parent.Parent
local Char = Player.Character
local save = Player:FindFirstChild("Save")
local part = save:FindFirstChild("Part")
function onClicked()
if save ~= nil then
while wait() do
if part ~= nil then
local loadpart = Instance.new("Part",game.Workspace)
loadpart.Anchored = true
loadpart.CFrame = CFrame.new(Vector3.new(part.pos.X.Value,part.pos.Y.Value,part.pos.Z.Value))
part:remove()
end
end
end
end
Gui.MouseButton1Click:connect(onClicked)
Outlines ****** I Have a String value called Save inside the Player****** ****** I have A string value called part inside save****** ****** I have a String Value called pos inside part****** ****** I have 3 IntValues called X, Y, and Z inside pos******
I dont know why this scripts not working.... Ive tryed almost everything...

1 comment
Thanks! This helped alot!