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

How do I make a resizable part with fe on???

So I'm trying to make a resizable part WITH filtering enabled on. In startergui, I have a screen gui, and in that screen gui i have a handles object, and in the handles object I have a local script with the following code...

local handles, origin = script.Parent, 0
handles.Adornee = game.Workspace.Part
 
handles.MouseDrag:connect(function(norm, dist)
	local delta = (math.floor(dist - origin / handles.Adornee.ResizeIncrement + .5) * handles.Adornee.ResizeIncrement)
	game.ReplicatedStorage.Resize:FireServer(game.Workspace.Part, norm, delta)
end)
 
handles.MouseButton1Down:connect(function()
	origin = 0 
end)

now in a script in serverscriptservice i have the following code...

remote = game:GetService("ReplicatedStorage"):WaitForChild("Resize")

remote.OnServerEvent:connect(function(plr, part, id, delta)
-- ????????????????????
end)

Now where you see the question marks, I'm kind of confused as to what code needs to be there to actually resize the part. Help!!!!!!!!!??????

1 comment

0

ignore this

1 answer

✓ Accepted answer

#What you could do Just use the Resize function for base parts.


#Final Product

remote = game:GetService("ReplicatedStorage"):WaitForChild("Resize") --Server Code

remote.OnServerEvent:connect(function(plr, part, id, delta)
	part:Resize(id, delta)
end)


Hope it helps!

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