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

Re: Anchors player without actually anchoring or even welding..

Previous Thread :: Next Thread 
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
30 Apr 2014 06:47 PM
I made this script and whenever the part appears, it freezes the character into place, dont ask why I made this.

repeat wait() until game.Players.LocalPlayer
plyr = game.Players.LocalPlayer
char = plyr.Character

while char:FindFirstChild("Humanoid").Health > 0 do
wait(math.random(15,60))
poop = Instance.new("Part",game.Workspace)
poop.BrickColor = BrickColor.new("Reddish brown")
poop.Anchored = false
poop.CFrame = CFrame.new(char.Torso.Position + Vector3.new(0,1,0))
poop.CanCollide = true
poop.FormFactor = "Custom"
poop.Transparency = 0
mat = math.random(1,2)
if mat == 1 then
poop.Material = "CorrodedMetal"
elseif mat == 2 then
poop.Material = "Grass"
end
poop.Size = Vector3.new(math.random(0.2,1.5),math.random(0.2,1.5),math.random(0.2,1.5))
--game.Workspace.BindableFunctions["RemoveBrick(part)"]:Invoke(poop)
end


Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
30 Apr 2014 06:50 PM
Well it's like impossible to anchor something without welding or anchoring.. unless you like added a force pushing it down..which you didn't.

Anyways, are you asking for help or just shoring the script? If the latter then go to Scripters.
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
30 Apr 2014 06:50 PM
I need to know how to make it stop freezing your character.
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
30 Apr 2014 06:53 PM
The script isn't doing anything TO freeze the character. So... uhm.. idk.
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
30 Apr 2014 06:53 PM
bump :c
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
30 Apr 2014 06:54 PM
Is it because I spawned it inside the Torso? I wanted it to spawn at his.. moon.. but I havent learned lookVector yet.
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
30 Apr 2014 06:55 PM
Unless the poop is somehow interferring.. if so then like move it one back on the z axis instead of the y so it won't get cloned and posiitoned into the charaacter.
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
30 Apr 2014 06:55 PM
You see, I was going to do that, but it would be better if I learned lookVector to do that so that it always spawns behind him.
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
30 Apr 2014 06:57 PM
Okay well then learn it..

~ http://wiki.roblox.com/index.php?title=CFraming#lookVector ~
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
30 Apr 2014 07:09 PM
If you want to stop the character from moving, without anchoring or welding, you could remove their control. Or easier, set their Walkspeed to 0. But they can still jump XD
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
30 Apr 2014 07:42 PM
I DONT want them to freeze. I want them to walk normally. -_-
Report Abuse
warspyking is not online. warspyking
Joined: 15 Nov 2011
Total Posts: 13947
30 Apr 2014 07:44 PM
Then why do you say in the title you want them anchored...
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
30 Apr 2014 07:45 PM
its what the script does.


here

repeat wait() until game.Players.LocalPlayer
plyr = game.Players.LocalPlayer
char = plyr.Character

while char:FindFirstChild("Humanoid").Health > 0 do
wait(math.random(15,60))
poop = Instance.new("Part",game.Workspace)
poop.BrickColor = BrickColor.new("Reddish brown")
poop.Anchored = true
poop.CFrame = CFrame.new(char.Torso.Position + Vector3.new(0,1,0))
poop.CanCollide = false
poop.FormFactor = "Custom"
poop.Transparency = 0
mat = math.random(1,2)
if mat == 1 then
poop.Material = "CorrodedMetal"
elseif mat == 2 then
poop.Material = "Grass"
end
poop.Size = Vector3.new(math.random(0.2,1.5),math.random(0.2,1.5),math.random(0.2,1.5))
--game.Workspace.BindableFunctions["RemoveBrick(part)"]:Invoke(poop)
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting 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