generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: help with resizable part

Previous Thread :: Next Thread 
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
01 Sep 2016 08:07 PM
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. #################
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
01 Sep 2016 08:33 PM
b


0
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
01 Sep 2016 09:28 PM
b :P
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
02 Sep 2016 06:15 PM
yo anyone??????????
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
02 Sep 2016 06:59 PM
bu


0
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
02 Sep 2016 07:20 PM
b


Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
02 Sep 2016 08:54 PM
please help!
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
02 Sep 2016 10:14 PM
bumpety bump


Report Abuse
litalela is not online. litalela
Joined: 30 Mar 2010
Total Posts: 6267
02 Sep 2016 10:15 PM
why do you need to fire server

everything should be done locally since its a gui

unless im misunderstanding what you're doing


Report Abuse
AbstractCode is not online. AbstractCode
Joined: 26 Aug 2016
Total Posts: 654
02 Sep 2016 10:25 PM
He needs the remote so the part's new size will replicate to other clients.

@OP

Your parameters are fine as long as they're defined. Resize the part in the serverScript with part.Size = newsize, etc. That's a pseudocode BTW.

You can use the values the local script sent on the server, and manipulate the part with that data.
Report Abuse
litalela is not online. litalela
Joined: 30 Mar 2010
Total Posts: 6267
02 Sep 2016 10:26 PM
oh its a part i thought he was resizing guis

that must be my sign to go to sleep


Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
02 Sep 2016 10:46 PM
I'm dumb, and still kind of new to fe. Could someone please post the exact code that would need to be in the serverscript...?


Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
02 Sep 2016 11:17 PM
B
Report Abuse
AbstractCode is not online. AbstractCode
Joined: 26 Aug 2016
Total Posts: 654
03 Sep 2016 09:03 AM
FE requires that you handle all the events that you want replicated to other clients on the server, and only handle things on the client if it can only be done on the client. This includes animations, GUIs, and camera manipulation. Much more to it but that's the really basic gist.
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
03 Sep 2016 12:13 PM
i understand that, but I don't completely understand the code needed to make a resizable part in general. I was wondering if you could show me the exact code that would need to be in the serverscript.
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
03 Sep 2016 02:18 PM
b
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
03 Sep 2016 04:12 PM
b
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
03 Sep 2016 05:38 PM
B


Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
03 Sep 2016 09:31 PM
b help


Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
03 Sep 2016 10:32 PM
bbbbbbbbbbbb


Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
03 Sep 2016 10:47 PM
bumpety bump bumpy bump.


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image