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 » Building Helpers
Home Search
 

Re: How do I make a block sticky?

Previous Thread :: Next Thread 
ruraltechdeck101 is not online. ruraltechdeck101
Joined: 24 Dec 2009
Total Posts: 3850
29 Aug 2013 01:53 PM
So when your walking it stops you?
Report Abuse
iLGB is not online. iLGB
Joined: 20 May 2013
Total Posts: 1814
29 Aug 2013 02:11 PM
You have to put a script into a block.

I'm Fantabulous.
Report Abuse
ruraltechdeck101 is not online. ruraltechdeck101
Joined: 24 Dec 2009
Total Posts: 3850
29 Aug 2013 02:44 PM
What script?
Report Abuse
ruraltechdeck101 is not online. ruraltechdeck101
Joined: 24 Dec 2009
Total Posts: 3850
29 Aug 2013 03:45 PM
bump
Report Abuse
ruraltechdeck101 is not online. ruraltechdeck101
Joined: 24 Dec 2009
Total Posts: 3850
29 Aug 2013 05:07 PM
bump
Report Abuse
lopez9830 is not online. lopez9830
Joined: 16 Jun 2011
Total Posts: 1478
29 Aug 2013 07:38 PM
Mess with the blocks friction
Report Abuse
ruraltechdeck101 is not online. ruraltechdeck101
Joined: 24 Dec 2009
Total Posts: 3850
29 Aug 2013 07:49 PM
uhh Ill try
Report Abuse
Amiracle56 is not online. Amiracle56
Joined: 23 Aug 2010
Total Posts: 88
29 Aug 2013 10:23 PM
Well to give the effect that the block is sticky, I would make it so that on touch it would make your walkspeed lower. If you need the script for this (warning: I am kind of a beginner scripter, but I think I can do it) then just ask through a PM or this forum even though this is a building forum.
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
30 Aug 2013 06:52 AM
Here try this, put this in a scrpt, then put the script inside your block.


lal = script.Parent

db = false

lal.Touched:connect(function(hit)
if (hit.Parent:findFirstChild("Humanoid") ~= nil) and not db then
db = true
hit.Parent.Humanoid.WalkSpeed = 0
hit.Parent.Torso.Anchored = true
db = false
end
end)

lal.TouchEnded:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
hit.Parent.Torso.Anchored = false
hit.Parent.Humanoid.WalkSpeed = 16
end
end)
Report Abuse
ruraltechdeck101 is not online. ruraltechdeck101
Joined: 24 Dec 2009
Total Posts: 3850
30 Aug 2013 11:32 AM
Infocus, it worked, but now how do I make it so the player can move? The point of the sticky brick was to not bounce a player back after sliding into it on ice. I want the brick to just stop the player and not bounce them back but then they can move around and keep going.
Report Abuse
ruraltechdeck101 is not online. ruraltechdeck101
Joined: 24 Dec 2009
Total Posts: 3850
30 Aug 2013 08:39 PM
Bump.
Report Abuse
tummey2 is not online. tummey2
Joined: 04 Feb 2009
Total Posts: 1802
30 Aug 2013 09:28 PM
You could weld the torso to the wall and then destroy the weld after the player's stopped moving.
Report Abuse
0wning247 is not online. 0wning247
Joined: 23 Nov 2010
Total Posts: 268
30 Aug 2013 10:35 PM
You need to script it. For that go to scripting help.
Report Abuse
ruraltechdeck101 is not online. ruraltechdeck101
Joined: 24 Dec 2009
Total Posts: 3850
31 Aug 2013 01:32 PM
So I would do onTouch a weld is created and then wait .1 and destroy weld?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Building Helpers
   
 
   
  • 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