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
 

Need something to prevent trampoline delay

Previous Thread :: Next Thread 
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
01 Apr 2015 07:33 PM
@cod

local scripts only run when it is a descendant of the player either directly or indirectly (for example, as a descendent of the player's character or a descendant of the playergui/backpack), but aren't ran by the server

which would mean less lag

but what i would do is anchor the trampoline part, and adjust the velocity on the y axis as some other guy said
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 07:33 PM
what do i use for the absolute value
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
01 Apr 2015 07:35 PM
by absolute value, she meant the hierarchy of the trampoline part that causes you to bounce

for example,
game.Workspace.Trampoline.BouncyPart
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 07:43 PM
doesn't seem to work.
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 07:45 PM
did this

local me = game.Players.LocalPlayer;
local all = true;
game.Workspace.Trampoline.Touched:connect(function(p)
if all and game.Players:GetPlayerFromCharacter(p.Parent) == me then
all = false;
p.Parent.Torso.Velocity=Vector3.new(0,140,0)
wait(0.01);
all = true;
end
end)
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
01 Apr 2015 07:49 PM
do you have FE on

is that in a local script that is in starterpack or startegui
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 07:51 PM
fe?

and the script is in startergui
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
01 Apr 2015 07:52 PM
FE is short for filtering enabled which prevents local scripts from physically changing the properties of parts in workspace for example

and it should be a local script in startergui/starterpack

if FE were on your script wouldn't work
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 07:53 PM
how do i check for FE
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
01 Apr 2015 07:54 PM
click workspace in your explorer, and you should see a property named "FilteringEnabled"

if you want that local script to work, you will need to uncheck that box

Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 07:56 PM
its already unchecked
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
01 Apr 2015 07:59 PM
are you positive that the code is in a LOCAL script

http://wiki.roblox.com/index.php?title=API:Class/LocalScript
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 08:00 PM
it is
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
01 Apr 2015 08:01 PM
did the script output any errors to the console
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 08:02 PM
oh wait

Trampoline is not a valid member of Workspace

and

Workspace.Put in Workspace:9: attempt to index local 'sl' (a nil value)

not sure what i did wrong
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 08:04 PM
I fixed the "Trampoline is not a valid member of Workspace" i think

but idk what Workspace.Put in Workspace:9: attempt to index local 'sl' (a nil value)
means
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 08:05 PM
YES! THAT FIXED IT!

Thank you so much guys, it has no delay now.

My god, all the stress is gone now.

THANK YOU!!
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 08:10 PM
it seems to only work for one trampoline model tho
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
01 Apr 2015 08:12 PM
If only people listened in the first place, huh?
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 08:13 PM
@lunate

at first I didn't know what to do with it.



also, how can I fix the localscript only applying to one of the models?
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 08:31 PM
b
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
01 Apr 2015 08:41 PM
pls
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
02 Apr 2015 06:02 AM
b
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
02 Apr 2015 06:07 AM
Blek make more scripts or learn how to use tables and :GetChildren()
Report Abuse
Codmius is not online. Codmius
Joined: 27 Oct 2013
Total Posts: 8277
02 Apr 2015 06:29 AM
.
Report Abuse
Previous Thread :: Next Thread 
Page 2 of 2Go to page: 1, [2] Prev
 
 
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