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
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 8277 |
|
|
| 01 Apr 2015 07:33 PM |
| what do i use for the absolute value |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 8277 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 8277 |
|
|
| 01 Apr 2015 07:51 PM |
fe?
and the script is in startergui |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 8277 |
|
| |
|
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
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 8277 |
|
| |
|
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
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 8277 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 8277 |
|
| |
|
Codmius
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 8277 |
|
| |
|
Codmius
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 8277 |
|
| |
|
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
|
  |
| Joined: 27 Oct 2013 |
| Total Posts: 8277 |
|
| |
|