I want to create a plugin that'll help you position parts and do other stuff more easier than the way studio has What I want this script to do is to let you set the value and then change the position of the part to what you set
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local playergui = player.PlayerGui
local screen = game.ReplicatedStorage.ScreenGui
local x = screen.Xie
local y = screen.Yie
local z = screen.Zie
screen:Clone().Parent = playergui
placepart = function(key)
local part = Instance.new("Part", workspace)
part.Name = "CreatedPart"
local setPosition = Instance.new("Vector3Value", part)
setPosition.Name = "PartPosition"
-- Set Position Values --
setPosition.Value.X = x.Text --Here is the problem error "X cannot be assigned to"
setPosition.Value.Y = y.Text --Here is the problem
setPosition.Value.Z = z.Text -- Here is the problem
part.Position = Vector3.new(setPosition.Value.X,setPosition.Value.Y,setPosition.Value.Z)
if key == "x" or key == "X" then
game.ReplicatedStorage.ScreenGui:Clone().Parent = playergui
end
end
mouse.KeyDown:Connect(placepart)
Hopefully you can answer my question :)

6 comments
I know to use UserInputService but I'm more used to KeyDown
But the thing is that I want the person who uses the plugin to insert the X Y Z values
Oh nvm but thanks for the answer
The bad thing is that its not setting the position that I type
I tweaked some of the code for it to work
Hmm its not fully correct and it doesn't work but you helped a lot thanks :)