Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Draggable Part System Like Work At A Pizza Place?

I have been trying forever to do this. Don't say this is not a request site and try it yourself, because guess what, I DID TRY IT! No tutorials worked out so I have no code to show. That is why I came here. Please can someone show me how to do this?

1 comment

0

Wdym draggable parts?

1 answer

You're talking about a placement system.

Make a local script

local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()

local AdjustPizza = false

local PizzaPart = game.Workspace.Part

if Player.Character then
local Character = Player.Character

local XPos = Mouse.X
local YPos = Mouse.Y
local ZPos = Mouse.Z

local AllTogether = Vector3.new(XPos, 2, ZPos)

	Mouse.Button1Down:Connect(function()
		if XPos and ZPos and YPos == PizzaPart.Position and (Character.Torso.Position - PizzaPart.Position).magnitude <= 30 then
		AdjustPizza = true
	end
	end)
	
	if AdjustPizza then
		print("Player can now adjust where the pizza should be")
		PizzaPart.Position = AllTogether
	end
end

3 comments

0

Message me again if you want a more advanced version, since i am a PRO in making placement systems. Also if you want to make a bloxburg editing system i will answer too since i have done it too.

0

Also remember it wont work unless if you are 30 studs close or less to the pizza thingy.

0

And if you want to make it server-sided like all my other placement systems, use a remote event and use 'AllTogether' as parameter.

This discussion is preserved as it was. New answers, comments, and votes are closed.